simont77 / fakegato-history

Module to emulate Elgato Eve history
MIT License
167 stars 15 forks source link

Gaps in history #32

Closed honkmaster closed 6 years ago

honkmaster commented 6 years ago

In my setup I have integrated two components with fakegato-historysupport:

  1. homebridge-weather
  2. homebridge-dht

Sometimes I have gaps in my history inside the Eve app (see attached screenshot, sorry for the German). My server has been running constantly without errors. The log files are inconspicuous and the components have logged their data well. This is e.g. a log from the time where no history is available:

[2018-2-1 15:14:42] [Wetter] Fetched humidity 86 of type current for Wetter
[2018-2-1 15:14:42] [Wetter] Fetched temperature 4 of type current for Wetter
[2018-2-1 15:15:12] [DHT22] DHT Status: 0, Temperature: 17.6, Humidity: 53

Do you have any idea what causes this issue and how can I help?

img_7997

simont77 commented 6 years ago

which version of fakegato are you using? we are making many addition and fixes in the last few weeks. Are you using the standard history size on 4032 samples? Are you sure you are calling addEntry every time?

NorthernMan54 commented 6 years ago

One thing to keep in mind is that the data is cached in memory and if homebridge restarts, data is lost. And if the client has not been updated lately, data gaps will occur.

On Feb 1, 2018, at 2:26 PM, Tobias Tiemerding notifications@github.com wrote:

In my setup I have integrated two components with fakegato-historysupport:

homebridge-weather homebridge-dht Sometimes I have gaps in my history inside the Eve app (see attached screenshot). My server has been running constantly without errors. The log files are inconspicuous and the components have logged their data well. This is e.g. a log from the time where no history is available:

[2018-2-1 15:14:42] [Wetter] Fetched humidity 86 of type current for Wetter [2018-2-1 15:14:42] [Wetter] Fetched temperature 4 of type current for Wetter [2018-2-1 15:15:12] [DHT22] DHT Status: 0, Temperature: 17.6, Humidity: 53

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

honkmaster commented 6 years ago

I am only a user of those plugins not the developer. If I am looking right, they both use 4032 samples and at least homebridge-weather is using the latest version and calling addEntry every time.

simont77 commented 6 years ago

I see in the graph that points are not periodic (especially in the last part). Are you sure that your plugin is calling addEntry about every 10 min? @NebzHB had a similar problem with a “lazy sensor” that does not produce any event if the temperature variation is small. Now we added to fakegato an internal timer to produce in any case an entry every 10 min repeating the last one

honkmaster commented 6 years ago

Regarding the un-periodic entries forhomebridge-weather. Here you can define a polling interval, which is 10 minutes for my configuration, thus I would expect an update every 10 minutes. I have no idea... maybe @werthdavid can help. He is the developer of the plugin.

NorthernMan54 commented 6 years ago

I know DHT is updating regularly, as that one is mine.

Are you sure about the server not restarting?

On Feb 1, 2018, at 3:21 PM, Tobias Tiemerding notifications@github.com wrote:

Regarding the un-periodic entries maybe @werthdavid can help. He is the developer of homebridge-weather.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

simont77 commented 6 years ago

do you have the same holes also in DHT?

werthdavid commented 6 years ago

I'm pretty sure that homebridge-weather updates on a regular basis. Not 100% though since I have never verified it with the log-file.

simont77 commented 6 years ago

and do you have any problem?

Inviato da iPad

Il giorno 02 feb 2018, alle ore 07:08, David Werth notifications@github.com ha scritto:

I'm pretty sure that homebridge-weather updates on a regular basis. Not 100% though since I have never verified it with the log-file.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

werthdavid commented 6 years ago

I cant verify until Monday unfortunately..

honkmaster commented 6 years ago

I have the same holes in DHT. Could this issue also be related to #33, https://github.com/ebaauw/homebridge-hue/issues/277 and the recent update to the Eve app (3.1/943)?

simont77 commented 6 years ago

dont' think so, I have also update to Eve 3.1 with no issue, and DHT was deeply tested by @NorthernMan54. If your server is still up, try to delete all history, force close Eve and reload

NorthernMan54 commented 6 years ago

I think we can close this