From 2fba66b6b16700e5c6271579e511e12cba3b11ba Mon Sep 17 00:00:00 2001 From: RLF Date: Mon, 15 Jan 2024 23:50:49 -0500 Subject: [PATCH] added arduino settings support --- uno-stats-monitor/unomond/unomond.conf | 40 ++++++++++++++++++++------ 1 file changed, 32 insertions(+), 8 deletions(-) diff --git a/uno-stats-monitor/unomond/unomond.conf b/uno-stats-monitor/unomond/unomond.conf index 31ee41e..b6c6574 100644 --- a/uno-stats-monitor/unomond/unomond.conf +++ b/uno-stats-monitor/unomond/unomond.conf @@ -1,17 +1,41 @@ -// Daemon config -delay = 10000; // in ms (1 second = 1000 ms) - do not set too low or the systat calls will return junk -tty = "/dev/ttyACM0"; // tty device to use (most common for arduino based boards on *nix) -logfile = ""; // logfile - leave undefined for console output (syslog is always used if possible for hard errors) -line_length = 16; // unused but will be needed -line_count = 2; // unused but will be needed +// UNO Monitor Daemon v.0.1.0 +// Kidacro +// https://kidacro.archamedis.net/git/kidacro/Arduino/src/branch/main/uno-stats-monitor +// unomond.conf - Configuration file + +// in ms (1 second = 1000 ms) - do not set too low or the systat calls *may* return junk +delay = 5000; + +// tty device to use (most common for arduino based boards on *nix) +tty = "/dev/ttyACM0"; + +// logfile - leave undefined for console output (syslog is always used if possible for hard errors) +logfile = ""; + +// # of charcaters of display +line_length = 16; + +// # of lines of display +line_count = 2; + +// LED brightness (1 to 15) +led_brightness = 1; + +// LED delay for dot display (keep at 3 or more) +led_delay = 3; + +// LCD delay between writing characters (keep at 5 or more) +lcd_delay = 5; // readings -cpu_temp_file = "/sys/class/hwmon/hwmon1/temp11_input"; // doesnt have to be cpu, any temperature reading in C will do +// doesnt have to be cpu, any temperature reading in C will do +cpu_temp_file = "/sys/class/hwmon/hwmon1/temp11_input"; cpu_fanspeed_file = "/sys/class/hwmon/hwmon1/temp11_input"; // drives (free space stats) // dev note: for a 16 line display, 3 drives will barely fit depending on the GB available so choose wisely -drive_free_space = [ "/", "/mnt/local", "/mnt/store" ] // list of mountpoints - NOT devices! +// list of mountpoints (or directories daemon user has access to) - NOT devices! +drive_free_space = [ "/", "/mnt/local", "/mnt/store" ] // IR command config // TODO: lookup xf86 and/or dbus commands for multimedia control