64 lines
2.2 KiB
Plaintext
64 lines
2.2 KiB
Plaintext
// 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 = 10000;
|
|
|
|
// 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 (0 to 15)
|
|
led_brightness = 0;
|
|
|
|
// 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
|
|
// 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
|
|
// 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
|
|
ircmd_P = "echo Power Pressed"; // P power
|
|
ircmd_M = "echo Mute Pressed"; // mute
|
|
ircmd_m = "echo Mode Pressed"; // mode
|
|
ircmd_p = "echo Back Pressed"; // back
|
|
ircmd_f = "echo Forward Pressed"; // forward
|
|
ircmd_e = "echo EQ Pressed"; // eq
|
|
ircmd_minus = "echo Volume Down Pressed"; // vol down
|
|
ircmd_plus = "echo Volume Down Pressed"; // vol up
|
|
ircmd_r = "echo Return Pressed"; // return
|
|
ircmd_u = "echo Usb Scan Pressed"; // usb scan
|
|
ircmd_0 = "echo 1 Pressed"; // number 1
|
|
ircmd_2 = "echo 2 Pressed"; // number 2
|
|
ircmd_3 = "echo 3 Pressed"; // number 3
|
|
ircmd_4 = "echo 4 Pressed"; // number 4
|
|
ircmd_5 = "echo 5 Pressed"; // number 5
|
|
ircmd_6 = "echo 6 Pressed"; // number 6
|
|
ircmd_7 = "echo 7 Pressed"; // number 7
|
|
ircmd_8 = "echo 8 Pressed"; // number 8
|
|
ircmd_9 = "echo 9 Pressed"; // number 9
|
|
ircmd_R = "echo Repeat Pressed"; // repeat
|
|
ircmd_Z = "echo Unknown Pressed"; // other button pressed
|