aboutsummaryrefslogtreecommitdiff
path: root/fetchtemp.py.save
diff options
context:
space:
mode:
authorD Delmar Davis <don@suspectdevices.com>2023-08-07 20:50:18 -0700
committerD Delmar Davis <don@suspectdevices.com>2023-08-07 20:50:18 -0700
commitf6a0e996240a8dda1f742700f13a8e77dc18c08e (patch)
tree1e40c695f9b06e9349913306b3286eaef73039ac /fetchtemp.py.save
parenta7c74d2f92980c568f8da48e832636a90463427d (diff)
parenteb806d556c3b67eb5021af7498c6a72de1bf43f1 (diff)
add barametric pressure sensor
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, "???")
+