tjntomas / HADashboard-widgets

Widgets for HADashboard / Appdaemon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HAGraph does not update

tomaae opened this issue · comments

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

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

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.

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.