joro75 / Domoticz-Toyota-Plugin

A Domoticz plugin that provides devices for a Toyota car with connected services
MIT License
6 stars 1 forks source link

If a car has not moved during a day, no record is present in the month view of the distance device #24

Closed joro75 closed 2 years ago

joro75 commented 2 years ago

If a car has not moved during a day, no record is present in the month view of the distance device. For example the car is not used on thuesday, wednesday and thursday. Then only data is included for the other days. Also a sloped line is shown going from monday directly to friday. This then shows in the graph as if the car was at another distance on wednesday, than it was in reality.

The solution for this problem is also simple. Some caching is done for the distance, if the distance is not changed, then this caching is causing that no record is added for several days. To resolve this problem, the caching should be reduced in such a way that at least once a day, an update of the actual distance is forwarded to Domoticz, even if the value is the same as the previous value.