werthdavid / homebridge-website-to-camera

Homebridge plugin that displays a Website as virtual camera (intended for Google Maps Traffic)
MIT License
54 stars 7 forks source link

Feature Request: puppeteer.launch parameter #29

Closed palasinio closed 3 years ago

palasinio commented 3 years ago

Hi @werthdavid: Is it possible to you, to add arguments for puppeteer.launch in Screenshothelper.js? 1st: Add a config option (per webcam) to use "ignoreHTTPSErrors: true" i.e. for local websites with self signed certificates 2nd: use "--no-sandbox" only if current user is "root"

grafik

werthdavid commented 3 years ago

That should be no problem. I'll see when I can find some time

werthdavid commented 3 years ago

Please try it with homebridge-website-to-camera@1.6.0

palasinio commented 3 years ago

Perfect! HTTPS flag works as expected. Thank you very much! Just missing in GUI settings. I cannot see I f Chromium is in sandbox mode - but guess this is working, too. Maybe you like to implement an error picture if ssl error is thrown or website not found / reachable?

werthdavid commented 3 years ago

I'll look into that when I find time but I'll close this for now