diff --git a/screenshotter/config.yaml b/screenshotter/config.yaml index 31e817e..e3120e2 100644 --- a/screenshotter/config.yaml +++ b/screenshotter/config.yaml @@ -1,6 +1,6 @@ --- name: Screenshotter -version: 1.0.1.1 +version: 1.0.1.2 #image: ghcr.io/maxwinterstein/homeassistant-addon-toogoodtogo-ha-mqtt-bridge-{arch} slug: screenshotter description: Screenshot images for E-Paper pricetags diff --git a/screenshotter/rootfs/app/app.py b/screenshotter/rootfs/app/app.py index 12cbc10..e7fe888 100644 --- a/screenshotter/rootfs/app/app.py +++ b/screenshotter/rootfs/app/app.py @@ -54,7 +54,7 @@ while True: for entry in driver.get_log('browser'): print(entry) image = Image.open(file_name) - image = image.rotate(rotate, expand=True) + image = image.rotate(int(rotate), expand=True) file_name = f'{image_path}/{task["name"]}.png' image.save(file_name) task["next_execution"] = now + datetime.timedelta(minutes=task["period_minutes"])