Page 1 of 1

update historic data via api

Posted: Wednesday 04 June 2025 22:20
by JanJaap
I had a problem with the plugin for one of my solarpanels. I have the data from the app and now want to load that via the json api as per instructions here:
https://wiki.domoticz.com/Domoticz_API/ ... ed_counter

So I compile the following URL:
http://<my ip>:8080/json.htm?type=command&param=udevice&idx=490&nvalue=0&svalue=5349003;26900;2025-05-22

Response in the browser:
Schermafbeelding 2025-06-04 221836.png
Schermafbeelding 2025-06-04 221836.png (2.78 KiB) Viewed 59 times
However no data added for May 22:
Schermafbeelding 2025-06-04 221931.png
Schermafbeelding 2025-06-04 221931.png (44.31 KiB) Viewed 59 times
What am I doing wrong? Tried for different date's, same result

Re: update historic data via api

Posted: Wednesday 04 June 2025 22:55
by waltervl
Is there already data for the 25th? Because then you will get 2 database entries for the same date in the meter_calendar table and that cause trouble. It will not over write the data it will add an entry and probably just use the first one it will find (the old one)