Browse Source

Fixup groupings in toml parsing ; update example config

master
KemoNine 1 year ago
parent
commit
d335e1f85a
  1. 37
      cmd/gui/README.md
  2. 2
      config/config.go

37
cmd/gui/README.md

@ -10,18 +10,29 @@ The GUI uses a config similar to the following. To generate a default config, la
```
# Slideshow intervals
slideshow.slideinterval = "300s"
slideshow.restartinterval = "168h"
# 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
hdmi.off = "*-*-* 00:00:00"
hdmi.on = "*-*-* 06:00:00"
# Album configuration (DO NOT CHANGE albums.root )
albums.root = "/tank/pictures"
albums.selected = ["/", "/KemoNine"]
config-ui-only = false
[albums]
root = "/tank/pictures"
selected = ["/", "/KemoNine"]
[fan]
minspeed = 10.0
pollinginterval = "30s"
[fan.speeds]
100 = 55.0
25 = 45.0
50 = 50.0
75 = 52.0
[hdmi]
off = "*-*-* 00:00:00"
on = "*-*-* 06:00:00"
[slideshow]
restartinterval = "168h"
slideinterval = "300s"
```

2
config/config.go

@ -24,7 +24,7 @@ func LoadConfig(errFatalOnMissing bool) (*koanf.Koanf, *kfile.File) {
CONFIG_KEY_FAN_POLL_INTERVAL: DEFAULT_FAN_POLL_INTERVAL,
CONFIG_KEY_FAN_SPEEDS: DEFAULT_FAN_SPEEDS,
CONFIG_KEY_FAN_MIN_SPEED: DEFAULT_FAN_MIN_SPEED,
}, ""), nil)
}, "."), nil)
// Bring in /etc/defaults/pf.toml if it exists
configFileProvider := kfile.Provider(CONFIG_FILE_PATH)

Loading…
Cancel
Save