fix buggy
This commit is contained in:
parent
a788e8d2d1
commit
c001ea4bcb
2 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
name: Screenshotter
|
name: Screenshotter
|
||||||
version: 1.0.0.41
|
version: 1.0.1
|
||||||
#image: ghcr.io/maxwinterstein/homeassistant-addon-toogoodtogo-ha-mqtt-bridge-{arch}
|
#image: ghcr.io/maxwinterstein/homeassistant-addon-toogoodtogo-ha-mqtt-bridge-{arch}
|
||||||
slug: screenshotter
|
slug: screenshotter
|
||||||
description: Screenshot images for E-Paper pricetags
|
description: Screenshot images for E-Paper pricetags
|
||||||
|
|
|
@ -32,7 +32,7 @@ with open(config_file, "r") as stream:
|
||||||
|
|
||||||
tasks = []
|
tasks = []
|
||||||
|
|
||||||
for image in config.images:
|
for image in config["images"]:
|
||||||
image["next_execution"] = datetime.datetime.now()
|
image["next_execution"] = datetime.datetime.now()
|
||||||
tasks += [image]
|
tasks += [image]
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ while True:
|
||||||
continue
|
continue
|
||||||
driver = webdriver.Chrome(options=chrome_options, desired_capabilities=d)
|
driver = webdriver.Chrome(options=chrome_options, desired_capabilities=d)
|
||||||
driver.implicitly_wait(10)
|
driver.implicitly_wait(10)
|
||||||
driver.get(url + paths.get(display))
|
driver.get(task["url"])
|
||||||
# pause 3 second to let page loads
|
# pause 3 second to let page loads
|
||||||
time.sleep(wait)
|
time.sleep(wait)
|
||||||
# save screenshot
|
# save screenshot
|
||||||
|
|
Loading…
Reference in a new issue