mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Revise PLAYWRIGHT_DRIVER_URL and connection instructions
Updated the PLAYWRIGHT_DRIVER_URL format in the README to include launch arguments and clarified instructions for connecting to Browserless Chrome.
This commit is contained in:
@@ -67,30 +67,17 @@ PGID: 0
|
||||
PUID: 0
|
||||
TZ: "Europe/London"
|
||||
BASE_URL: "https://changedetection.mydomain.com"
|
||||
PLAYWRIGHT_DRIVER_URL: "ws://db21ed7f-browserless-chrome:3000/chromium?headless=true&blockAds=true&stealth=true"
|
||||
PLAYWRIGHT_DRIVER_URL: "ws://db21ed7f-browserless-chrome:3000/chromium?headless=true&stealth=true&blockAds=true&launch={"args":["--no-sandbox","--disable-dev-shm-usage"]}"
|
||||
TIMEOUT: 60000
|
||||
```
|
||||
|
||||
### Connect to browserless Chrome (from @RhysMcW)
|
||||
|
||||
Install and start the Browserless Chrome add-on, then use the `PLAYWRIGHT_DRIVER_URL` option to connect to it. This option must be filled with the Browserless Chrome URL:
|
||||
In HA, use the File Editor add-on (or Filebrowser) and edit the Changedetection.io config file at `/homeassistant/addons_config/changedetection.io/config.yaml`.
|
||||
|
||||
Add the following line to the end of it:
|
||||
```yaml
|
||||
PLAYWRIGHT_DRIVER_URL: ws://db21ed7f-browserless-chrome:3000/chromium?headless=true&blockAds=true&stealth=true
|
||||
```
|
||||
|
||||
Remember to add a blank line at the end of the file too according to yaml requirements.
|
||||
Install and start the Browserless Chrome add-on, then use the `PLAYWRIGHT_DRIVER_URL` option to connect to it. This option must be filled with the Browserless Chrome URL: "ws://db21ed7f-browserless-chrome:3000/chromium?headless=true&stealth=true&blockAds=true&launch={"args":["--no-sandbox","--disable-dev-shm-usage"]}"
|
||||
|
||||
The `db21ed7f-browserless-chrome` hostname is displayed in the UI, on the Browserless Chromium addon page:
|
||||

|
||||
|
||||
You can also fetch it:
|
||||
* By using SSH and running `docker exec -i hassio_dns cat "/config/hosts"`
|
||||
* From the CLI in HA, using arp
|
||||
* You should also be able to use your HA IP address.
|
||||
|
||||
Then restart the Changedetection.io add-on - after that you can use the browser options in Changedetection.io.
|
||||
|
||||
## Installation
|
||||
|
||||
Reference in New Issue
Block a user