diff options
| author | jwansek <eddie.atten.ea29@gmail.com> | 2026-01-03 19:17:57 +0000 |
|---|---|---|
| committer | jwansek <eddie.atten.ea29@gmail.com> | 2026-01-03 19:17:57 +0000 |
| commit | a9db62f4ffe4eceab7b46d68b7f716c4b8fbe252 (patch) | |
| tree | e9ff8092858e666be49eac7239dde4efdee5623b /upsmartmonitor.py | |
| parent | 1ad26728e8b0e7c539729b0176fd3ef8eb34bd87 (diff) | |
| download | UPSMartMonitor-master.tar.gz UPSMartMonitor-master.zip | |
Diffstat (limited to 'upsmartmonitor.py')
| -rw-r--r-- | upsmartmonitor.py | 10 |
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) |
