NCO
(E. Gerland)
March 30, 2021, 9:11am
1
All,
I am using influxdb for persistence successfully (I assume) on my RPi4 8GB with SSD and openhabian running OH 3.0.1 stable.
When I access the rest / persistence (http://homer:8080/rest/persistence/items/Ind_Temp ) from a browser I can only see values of one day ago until now.
For the item above (Indoor Temperature), however, I can see graphs in habpanel many weeks back.
So my question is: Is there a limitation of the rest / persistence call by URL to a certain time period or should it theoretically reflect all the historic data?
rossko57
(Rossko57)
March 30, 2021, 9:38am
2
Which is your default persistence service? I’m thinking you are looking at rrd4j data, which falsely appears to have limited history because of the way its stored.
NCO
(E. Gerland)
March 30, 2021, 9:41am
3
My default is influxdb
and rrd4j is not installed (influxdb 3.1.0 is run from the addons directory)
rlkoshak
(Rich Koshak)
March 30, 2021, 3:11pm
4
As it says in the REST API Docs:
Start time of the data to return. Will default to 1 day before endtime. [yyyy-MM-dd’T’HH:mm:ss.SSSZ]
Did you supply Start time in your query?
1 Like
NCO
(E. Gerland)
March 30, 2021, 3:55pm
5
Thanks, Rich - No, just called the url above.
And checked https://www.openhab.org/docs/configuration/restdocs.html beforehand, but did not find the hint you just sent.
Which (other) docs do you refer to?
opus
(JĂĽrgen Baginski)
March 30, 2021, 4:01pm
6
Rich posted the sentence which is directly on the API Explorer (rest/persistence/items/itemname). No other docs needed!
NCO
(E. Gerland)
March 30, 2021, 4:30pm
8
Thank you, @opus and @rlkoshak
I did not even know this function!
OH3 always suprises me
That’s awesome.
I was talking about calling the url in the browser “normally” not with this great interface!
rlkoshak
(Rich Koshak)
March 30, 2021, 4:49pm
9
It’s mentioned in the docs as well. openHAB REST API | openHAB . In OH 2 it was a separately installable add-on.
NCO
(E. Gerland)
March 31, 2021, 5:04am
10
Thanks, Rich.
There is obviously still a lot for me to learn about OH3 (which really contains massive improvements