grafana / grafana-kiosk

Kiosk Utility for Grafana
Apache License 2.0
362 stars 59 forks source link

Failure during network unavailability on windows #125

Open HannTheSolo opened 6 months ago

HannTheSolo commented 6 months ago

I'm starting .batch script during the startup of the Windows system. During the initial execution of the script, there might be moments when Windows takes a bit time to connect to the WIFI network and during these times, grafana-kiosk gets stuck on "Navigating to http://grafana.mydomain.com/d/dashboardid/dashbaord" because of network unavailability.

This is content of my .batch startup file. C:\Users\monitoring\Downloads\grafana-kiosk.windows.amd64.exe -URL="http://grafana.mydomain.com/d/8N649LA4z/my-dashboard" -login-method=local -username=monitoring -password=awesomepassword123 -kiosk-mode=full

Is there any solution to this ? I couldn't find any retry option in the docs. What can be done in such situation ? Please advise. I have tried to give 20-60 seconds of delay during the execution of the script but it sometimes fails as well and is not that consistent.

briangann commented 4 months ago

This can be fixed by using the new general config option PageLoadDelayMS

It defaults to 2000 (2 seconds) but could be set to any duration needed.

NOTE: this will be in v1.0.7 to be released this weekend (or you can build it from main the branch if needed sooner)