If I select mapdb service, I do get a chart. A horizontal line, obviously. Below is my REST querry.
.rrd files DO get updated. but it would seem they only have 1 point.
I’m very confused, help!
#### Curl
curl -X GET --header "Accept: application/json" "https://192.168.12.44:8443/rest/persistence/items/item_camara_int_temp_77"
#### Request URL
https://192.168.12.44:8443/rest/persistence/items/item_camara_int_temp_77
#### Response Body
# configure specific rrd properties for given items in this file.
# please refer to the documentation available at
# https://www.openhab.org/addons/persistence/rrd4j/
#
# default_numeric and default_other are internally defined defnames and are used as
# defaults when no other defname applies
#<defname>.def=[ABSOLUTE|COUNTER|DERIVE|GAUGE],<heartbeat>,[<min>|U],[<max>|U],<step>
#<defname>.archives=[AVERAGE|MIN|MAX|LAST|FIRST|TOTAL],<xff>,<steps>,<rows>
#<defname>.items=<comma separated list of items for this defname>
That COULD be due to your REST query with the default 24 houre timeframe. If you use that before more then one value has been saved to the archive 2 ( the one that covers 24 houres with one value every 4 minutes) you will get only one point.
However, as @vzorglub posted, show us your rrd4j.persist file. You might be missing the MANDATORY everyMinute strategy.
@vzorglub: Common failure, I always mix up .cfg and .persist file:rofl:
what got me confused was that the previous queries were without service specified, and it defaulted to mapdb, that’s why I always got 1 datapoint, and indeed that was being updated on every change
so, for anyone reading this: if rrd4j is NOT the default service, you have to manually add it to REST query using serviceid parameter