Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
kowis-projects
deskscreen
Commits
8e34b98b
Commit
8e34b98b
authored
Jun 23, 2019
by
David
Browse files
Updating README with graphical startup info
parent
ae2c44fd
Pipeline
#28
failed with stage
in 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
8e34b98b
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment