summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2019-12-20 13:57:17 +1030
committerDaniel Jones <admin@danieljon.es>2019-12-20 13:57:17 +1030
commit89e917d502e6a6f1042643296507336b660c17d9 (patch)
treeea5bfde1eb1eb538c434993b8f7fa8d680a57de9 /config.h
parent4ad3def0c8701852f29fe64b5551aaadabc63d60 (diff)
downloadbinstatus-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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.h b/config.h
index 099aa22..4db0606 100644
--- a/config.h
+++ b/config.h
@@ -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