With this API command curl.exe -X PUT --header “Content-Type: text/plain” --header “Accept: application/json” "http://192.168.158.170:8080/rest/items/SmartMeter_Einspeiser/state " -d 8.7 -v I can pass a value to an item in the OPEN HAB environment without any problems.
I read in some forum entries that it is possible to enter a date with the API variant. Background: This value comes from the provider via email days later and I don’t want to falsify the historical days and view´s in the open hab environent.
What is the syntax for the API variant, how I can send the specific date with this value ?
This behaviour is not changeable, it’s a limitation of RRD4J.
You might have a look on InfluxDB as an alternative, but you need to setup a InfluxDB sever yourself.
Changing old data for rrd4j via openHAB is not possible. The reason is simply the way data is stored in rrd4j. This persistence uses “archives” to store data for different timeranges (for example: the last day, the last 7 days, the last xx days…). Each data request is fetched from that archive that covers the whole requested timeframe.
In other words for a specific timepoint there migth be data in more then one archive. ( data for now-4 hours would be in the archive of the last day, the last seven days…).
Changing such a datapoint correctly later is rather “complicated”.I had posted a way to change indivdual datapoints “by hand” in a rather old post. However setting all affected archives correctly that way remains “complicated”. Old post