Closed Timmeey closed 6 years ago
So far I've been unable to recreate this locally but I'm guessing that the websockets are timing out after some interval. We should put in the logic required to reconnect after any error.
I forgot to update this issue but commit https://github.com/hobinjk/gateway-prometheus-translator/commit/e43dd659e82305f47b74309018c7ddd6b18d38ad should have fixed this.
I started using the translator. First running it in a screen session, this seemed to work fine, so i used the install script and it also looked like it was working. When i checked the next day, there was no data. then i ran it again in a screen session to see what was going on.
When i came back later there again, was no data. So i checked the log output, and it just stopped doing anything. no error no nothing, this was the last line
{"messageType":"propertyStatus","data":{"level":43.31999969482422}}
I checked back with the graphs, it collected data for about 12,5h and then stopped.
Any idea what i could do to get more useful data/logs to debug this?
Maybe we could do a error log in the error callbacks, and most importantly put the whole main part into a loop, so it picks up again in case the WS fails for some reason