If you make the feed interval 1 hour, you can send the data as often as you want, only the last datapoint will be stored.
For the second part it depends on what the data says -
If it’s rain in the last hour, then “Power to kWh/d” may work???
If it’s cumulative rainfall for the day, then just have another feed with an interval of 1 day, and send the data to that as often as you want and the last datapoint will be stored, which should be the total rainfall just before midnight.
and how do i make sure the value it stores is the last before the hour number changes ?
that is where openweather map resets the rain during the last hour number
if i have those at just before hour number changes ie at minute 59 and sec 59 then i can just add the last 24 numbers to get the days total rain… and then add the last 30 to get the months rain
If you specify 1 hour feed interval, then there is one ‘slot’ for each hour, if you send data it gets put into the current valid slot, overwriting any data that was there previously. If you send the data every 60 seconds, the data stored in the 1 hour slot will be overwritten 60 times, but should end up being the data sent in the last 60 seconds of the hour.
ERROR: Feed could not be created, could not write meta data file fopen(/srv/mergerfs/Data/Emoncms/docker-compose-lamp/emoncmsdata/phpfina/80005.meta): Failed to open stream: No such file or directory
and i just did a chmod 777 just to be sure (know its not right)
I can’t help you with Docker, I use the standard EmonSD (Linux ISO + EmonCMS) on a Raspberry Pi2.
Looking at LSOF shows nothing, which is odd.
“pi” is the main user on a standard install and owns a lot of processes.
There is also “emonhub”, “mysql” and “www-data” users and an MQTT process run by “root”.
I vaguely seem to recall that the “emonhub” process does the actual writing to phpfina files.
But there are a lot if mysqld instances.
yep… that would be nice as i’m a noob still and just learning
i did once try the emoncms docker image but never got it going as far i could get an webpage served, so i found the current stack and copied over the files from a rented server