diff options
author | Daniel Jones <admin@danieljon.es> | 2019-12-20 13:57:17 +1030 |
---|---|---|
committer | Daniel Jones <admin@danieljon.es> | 2019-12-20 13:57:17 +1030 |
commit | 89e917d502e6a6f1042643296507336b660c17d9 (patch) | |
tree | ea5bfde1eb1eb538c434993b8f7fa8d680a57de9 /config.h | |
parent | 4ad3def0c8701852f29fe64b5551aaadabc63d60 (diff) | |
download | binstatus-89e917d502e6a6f1042643296507336b660c17d9.tar.gz binstatus-89e917d502e6a6f1042643296507336b660c17d9.zip |
added cpu temp output
support C and F, see comments in config.h. you need to set the right thermal zone directory.
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -16,6 +16,8 @@ #ifndef CONFIG_H #define CONFIG_H +#define SLEEPTIME 5 // number of seconds to sleep before each update +#define TEMPFILE "/sys/class/thermal/thermal_zone0/temp" #define MAXLENGTH 256 enum flag @@ -25,6 +27,7 @@ enum flag BINARYTIME = 1<<2, MILITARYTIME = 1<<3, SHOWMERIDIEM = 1<<4, + FARENHEIT = 1<<5, }; struct component @@ -42,6 +45,7 @@ static const struct component components[] ={ {currenttime, NORMALTIME|SHOWMERIDIEM}, {battery, NONE}, {charging, NONE}, + {cputemp, NONE}, }; #endif |