diff options
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) |
