piframe-go/cmd/gui
2020-09-03 01:25:42 -04:00
..
gui.go Tweak string format, exit if config changes -- let monit and / or systemd restart if the config changes on disk out from under the running app ; will add save/exit button later to ensure that making changes via the config ui doesn't cause the app to restart after every change 2020-09-03 01:25:42 -04:00
README.md Basic config file load 2020-09-02 23:47:07 -04:00

gui

This is the main source code for the custom UI used by PiFrame. This is responsible for things like restart, WiFi config, ensuring the slide show is running and more.

Config

The GUI will work off a config similar to the following. Use the generate config option to generate a default configuration in /etc/default/pf.toml


[slideshow]
duration = "300s"

[hdmi]
# These are SYSTEMD.TIME formatted times
# You probably want to just adjust the actual times here
# See https://www.freedesktop.org/software/systemd/man/systemd.time.html
off = "*-*-* 00:00:00"
on = "*-*-* 06:00:00"

[albums]
root = "/tank/pictures"
selected = [
    "/",
    "/KemoNine"
]