aboutsummaryrefslogtreecommitdiff
path: root/fetchtemp.py.save
diff options
context:
space:
mode:
Diffstat (limited to 'fetchtemp.py.save')
-rw-r--r--fetchtemp.py.save8
1 files changed, 8 insertions, 0 deletions
diff --git a/fetchtemp.py.save b/fetchtemp.py.save
new file mode 100644
index 0000000..6297272
--- /dev/null
+++ b/fetchtemp.py.save
@@ -0,0 +1,8 @@
+
+with open('/var/lib/prometheus/node-exporter/temp.prom', 'r') as f:
+ for line in f.readlines():
+ if 'Xhome_temperature_farenheit' in ('X'+line) :
+ print(line)
+ else:
+ print("???", line, "???")
+