aboutsummaryrefslogtreecommitdiffstats
path: root/upsmartmonitor.py
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2026-01-03 19:17:57 +0000
committerjwansek <eddie.atten.ea29@gmail.com>2026-01-03 19:17:57 +0000
commita9db62f4ffe4eceab7b46d68b7f716c4b8fbe252 (patch)
treee9ff8092858e666be49eac7239dde4efdee5623b /upsmartmonitor.py
parent1ad26728e8b0e7c539729b0176fd3ef8eb34bd87 (diff)
downloadUPSMartMonitor-a9db62f4ffe4eceab7b46d68b7f716c4b8fbe252.tar.gz
UPSMartMonitor-a9db62f4ffe4eceab7b46d68b7f716c4b8fbe252.zip
Removed debugging commentsHEADmaster
Diffstat (limited to 'upsmartmonitor.py')
-rw-r--r--upsmartmonitor.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/upsmartmonitor.py b/upsmartmonitor.py
index db8d622..70f61f3 100644
--- a/upsmartmonitor.py
+++ b/upsmartmonitor.py
@@ -87,14 +87,14 @@ def influx_write(fields):
)
def main():
- # focus_upsmart()
+ focus_upsmart()
with tempfile.TemporaryDirectory() as td:
- # fp = os.path.join(td, "upsmart.png")
- # subprocess.run(["gnome-screenshot", "--file=%s" % fp, "-w"])
+ fp = os.path.join(td, "upsmart.png")
+ subprocess.run(["gnome-screenshot", "--file=%s" % fp, "-w"])
- fields = read_image("upsmart.jpg")
- # fields = read_image(fp)
+ # fields = read_image("upsmart.jpg")
+ fields = read_image(fp)
print(json.dumps(fields, indent = 4))
influx_write(fields)