Browse Source

added cpu temp

Fabian Peter Hammerle 6 years ago
parent
commit
f700edf136
1 changed files with 6 additions and 0 deletions
  1. 6 0
      config

+ 6 - 0
config

@@ -18,6 +18,7 @@ order += "run_watch VPN"
 order += "wireless _first_"
 order += "ethernet _first_"
 order += "battery 0"
+order += "cpu_temperature 0"
 order += "load"
 order += "tztime local"
 
@@ -52,6 +53,11 @@ load {
         format = "%1min"
 }
 
+cpu_temperature 0 {
+        format = "%degrees°C"
+        path = "/sys/devices/platform/coretemp.0/hwmon/hwmon1/temp1_input"
+}
+
 disk "/" {
         format = "%avail"
 }