Even after implementing an integrator I’m still having an issue with incorrect results via an API call. Oddly enough, if I restart the IoTaWatt I receive the correct results – for a while. Then it’s back to the incorrect results where it remains frozen until I restart the box again.
This query:
(http://dubner.us:8082/query?select=[Solar.wh,Imported.wh,Exported.wh,Usage.wh]&begin=2022-08-07T00:00:00&end=2022-08-07T23:59:59&group=d&format=csv)
produces this result:
20814, 4885, 13586, 9220
but less than a minute later and after restarting IoTaWatt it returns:
20870, 4885, 16539, 9227
The third parameter, Exported power, was “frozen” for an unknown period of time. In the first returned results, it became obvious to me that Exported was bogus because Solar + Imported should equal Exported + Usage and it wasn’t so. After a restart they were approximately equal.
So I’m wondering if there’s something wrong with the format of my query. I’m interested in a single day’s results and I’ve entered today’s date with a timestamp for begin and end parameters but have tried others.
Incidentally, this is another pared down example and the full query has an additional 3 parameters that are always correct – no freezing. I believe Solar and Usage (the first and fourth in this example) are always correct too but I’m not 100% certain. The second parameter, Imported, was actually the original cause of this posting but I think it has been solid since using an integrator.
Thanks for any light you can shed on this.