Soo what i have been doing all the time with the programs i created is send data at a fixed interval for as much as this is possible and set the interval on the feeds to the same time value the data is being send at to emoncms.
Programming the emoncms_history component for home assitant it is possible to only send data when one of the values change. I intialy did this and just set the interval of a phpfina / fiwa feed to 10 seconds not knowing when data would arrive. Otherwise when i looked at realtime graph / widget it would not show a graph for the last X time selected in the graph and only update this (and perhpas other) graphs when new data had arrived.
I’m guessing but not sure that the phptimeseries should be used if not sending data at fixed interval ? is this correct ? also the webapps seem to expect a certain kind of feed type (can’t remember which one fina / fiwa) so if the phptimeseries assumption is correct i have 3 options …
- always send data at a fixed interval (configurable in home assistant) to emoncms and users can use whatever feed engine they like and realtime graphs would update reguarly webapps would be not a problem
- only send data if the data actually changed to emoncms and user should only use phptimeseries then and perhaps no webapps ?
- do i need a combination of both depending on the data to be send ?
assuming this is correct what option would be the best one ? From home assistant’s point of view it’s obviously send only data when data actually changed, but what is it from emoncms points of view / usuage?