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

Timeout #7

Closed BOMAMI closed 5 years ago

BOMAMI commented 5 years ago

graph Hi, thanks for this plugin. I'm trying to use the plugin to display a website that runs locally on an arduino mega. This website shows the temperature history of my heating system. So far, this has worked only once. I think it's because the screenshot is done too fast. On a normal browser, it takes about 10 seconds for the counts to be displayed. Setting Timeout to 10 seconds did not work. According to the log, the snapshot is already generated one second after the call. Could a proper waiting time help here?

werthdavid commented 5 years ago

Ok I guess after loading all network resources the page does some rendering (PWA). The timeout only affects the time until all resources are loaded. I'll have to add another flag for a render-timeout

werthdavid commented 5 years ago

Please try the new option: renderTimeout

werthdavid commented 5 years ago

published in 1.4.0

BOMAMI commented 5 years ago

Hi werthdavid, thanks for your support I tryed the new renderTimout and so far it works! Image-1

Thank you very much! regards

werthdavid commented 5 years ago

Cool, glad I could help!