aaa
This commit is contained in:
parent
bba33c032a
commit
160edc4797
2 changed files with 4 additions and 4 deletions
screenshotter
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
name: E-Paper Screenshotter
|
||||
version: 1.0.1.24
|
||||
version: 1.0.1.25
|
||||
#image: ghcr.io/maxwinterstein/homeassistant-addon-toogoodtogo-ha-mqtt-bridge-{arch}
|
||||
slug: screenshotter
|
||||
description: Screenshot images for E-Paper pricetags
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
from seleniumwire import webdriver
|
||||
from seleniumwire.webdriver.chrome.options import Options
|
||||
from seleniumwire.webdriver.common.desired_capabilities import DesiredCapabilities
|
||||
from selenium.webdriver import ChromeOptions
|
||||
from selenium.webdriver import DesiredCapabilities
|
||||
from PIL import Image
|
||||
import time, os
|
||||
import yaml
|
||||
|
@ -25,7 +25,7 @@ ha_language = os.environ.get("SCREEN_HA_LANGUAGE", default="en")
|
|||
d = DesiredCapabilities.CHROME
|
||||
d['loggingPrefs'] = {'browser': 'ALL'}
|
||||
# Open another headless browser with height extracted above
|
||||
chrome_options = Options()
|
||||
chrome_options = ChromeOptions()
|
||||
chrome_options.add_argument("--headless")
|
||||
chrome_options.add_argument('--no-sandbox')
|
||||
chrome_options.add_argument(f"--window-size={width},{height}")
|
||||
|
|
Loading…
Reference in a new issue