tjntomas / HADashboard-widgets

Widgets for HADashboard / Appdaemon
MIT License
52 stars 26 forks source link

HAGraph does not update #16

Closed tomaae closed 2 years ago

tomaae commented 4 years ago

Graph does not update automatically, I have to refresh the kiosk page to get it updated.

tomaae commented 4 years ago

I think I know why. First api request on browser refresh looks like this /api/history/period/2020-03-12T20:29:09 Every other looks like this and gives 404 /api/history/period/3/12/2020T8:29:38%20PM

tomaae commented 4 years ago

self.LOCALE is no longer set or GetTimeDiff I have workarounded the issue by adding following line to basehagraph.js, line 438: self.LOCALE = 'sv'

Now I get no more JS errors and graph updates over time automatically.

tomaae commented 4 years ago

After few hours it fails again, this time with can’t establish a connection to the server at wss://<hostname>:8123/api/websocket basehagraph.js, line 371

No idea why, I dont see much to go by.