I’m working to get my water meter reading into EmonCMS. I’ve got a python script that will send the usage in gallons every few seconds. I’d like to log this to 3 feeds: One for the raw usage value, one that accumulates into lifetime usage, and one that accumulates into daytime usage.
This is my current process list. What I can’t figure out is where the -2112 value in step 4 is coming from. Shouldn’t the reset in step 3 reset to 0 (what the process list starts with)?
I think it has to do with my attempt to reset the daily_use feed to 0 at midnight…how should I be going about doing that?