Commit 8e34b98b authored by David's avatar David

Updating README with graphical startup info

parent ae2c44fd
Pipeline #28 failed with stage
in 10 seconds
......@@ -4,14 +4,55 @@ A GUI application for my raspberry PI to show my name and other cool stuff.
## Notes
### GPIO access
Be sure to install wiringpi: `sudo apt install wiringpi`
### Graphics
To install the embedded (egl) version of javafx, you need [the overlay](https://chriswhocodes.com/) for java 8.
Specifically the "OpenJFX 8 nightly for armv6hf with libbrcm fix" version
After updating or anythinging the JDK on that guy, go to the `/usr/lib/jvm/<your java>/` and extract the zip
to get the right things into your system.
### Systemd init script
I use the `/etc/default/deskscreen` to contain the environment variables to configure my application.
```
[Unit]
Description=Desk Screen Application
[Service]
EnvironmentFile=/etc/default/deskscreen
# Has to run as root to enable framebuffer and touch input stuff
User=root
WorkingDirectory=/opt/deskscreen/data
ExecStart=/opt/deskscreen/jfx
SuccessExitStatus=143
TimeoutStopSec=10
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
```
### jfx app script
```
#!/bin/bash
# Is the magic JFX runtime jar to start things with a native GUI
# /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/ext/jfxrt.jar
# Application jarfile name
JARFILE=deskScreen-all.jar
exec java -Dglass.platform=Monocle \
-Dprism.verbose=true \
-cp /usr/lib/jvm/java-8-openjdk-armhf/jre/jre/lib/ext/jfxrt.jar:/opt/deskscreen/${JARFILE} is.kow.deskscreen.DeskScreenKt
```
### NWS Graphical forecast XML details
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment