added arduino settings support

This commit is contained in:
RLF
2024-01-15 23:50:49 -05:00
parent d77dc2f89f
commit 2fba66b6b1

View File

@@ -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 <kidacro@archamedis.net>
// 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