From a9db62f4ffe4eceab7b46d68b7f716c4b8fbe252 Mon Sep 17 00:00:00 2001 From: jwansek Date: Sat, 3 Jan 2026 19:17:57 +0000 Subject: Removed debugging comments --- upsmartmonitor.py | 10 +++++----- 1 file 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) -- cgit v1.2.3