diff options
| author | D Delmar Davis <don@suspectdevices.com> | 2023-08-10 18:53:34 -0700 |
|---|---|---|
| committer | D Delmar Davis <don@suspectdevices.com> | 2023-08-10 18:53:34 -0700 |
| commit | 07cbc0a0d045853cc615ca917a6f5e64871a94ff (patch) | |
| tree | d5de2c0a4b4912ac2a54695cdb330441187664d7 /readtemp.py | |
| parent | 08b5f829846905b9f2f04cc1063b2bdd40cea905 (diff) | |
minor cleanup
Diffstat (limited to 'readtemp.py')
| -rwxr-xr-x | readtemp.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/readtemp.py b/readtemp.py index 6075fef..82469a9 100755 --- a/readtemp.py +++ b/readtemp.py @@ -1,7 +1,7 @@ #!/usr/bin/python #-------------------------------------------------------------------readtemp.py # -# detect i2c temperature sensor read it and put its data where node_exporter +# detect i2c temperature sensor, read it, and put its data where node_exporter # will send it to prometheus. # # (C) D Delmar Davis 2023 @@ -62,8 +62,6 @@ for tempsensorid in i2c.scan(): if (i_can_has_temperature): tmpfile =os.path.join(tempfile.gettempdir(),'temp.prom') - - #file = open('/var/lib/prometheus/node-exporter/temp.prom', 'w') file = open(tmpfile, 'w') sys.stdout = file print("# HELP home_temperature_farenheit Temperature read off of external sensor.") |
