Download the zip, then extract the PersistenceViewer directory to /etc/openhab2/html/. Also make sure the permissions are set so that the openhab account can read them (I think they are set to readable for all).
Is it intended that database files are created when selecting an item or a group, even if this item isn’t selected for persisting?
My setup.
rrd4j on OH 2.4 stable
For each item and group which are not persisted I see a .rrd file created at the moment it is clicked the first time in the Viewer.
Should I open an issue?
Yes, but since PersistenceViwer is only reading persistence data through the REST API, this sounds like an OH issue. Try sending the same commands through REST API to find a simple way to reproduce. I’ll help, but later tonight.
Sounds like rrd4j creates a table for everything it knows about.
PinPoint. Doing a REST for for Persistence/Items/{Itemname} created the .rrd! The question remains, is that an issue or intended? Since Kai is working on persistence for OH2, where to report it?
Small update, but something that has bugged me for a while… the data was not refreshing after changing the date range, so you had to click the Item name again to populate the data. This is now fixed, as well as adding some more characters to the Time column.
I have opdated my openhab to version 3. Now, the PersistanceViewer is not working anymore. Is there a plan to bring it to the level of OH3, would be great.
For some reason the timestamp for all my items is every 15 minutes
I’m using rrd4j with the default persistence, so every 1 minute & on change
Any idea what could be the reason for this?
How did you check that? Using the API Explorer/ REST API?
Which Version of openHAB are you using?
Note that the timesteps between readings in a rrd4j database is dependent on the requested timeframe. Asking for a longer timerframe will most probably give you results from an archive that holds consolidated readings (as setup in the used configutation).
Hi Jürgen, thx for your reply
I’m getting the 15min interval on items only with PersistenceViewer, so with the index.html file
If i use the REST API directly, i’m seeing values every minute
I’m running OH 3.1, it’s a clean recent install with default persistence
Timeframe i’m requesting is only 24h, so that should not be the reason
Not sure what is going on, i’m not that good with html
Ups, I missed that this was posted in a PersistenceViewer thread! I haven’t used it on OH3 (yet)!
Sorry for that.
I do recall having problems getting this viewer to use the correct timeframe.
If the API Explorer (the new name for the REST API) does show the minute values everything should be OK.
Edit:
As per the github page 1. By default, one month of persistence data will be retrieved, unless specific dates are entered in the Start and End date fields.
Which would explain what you are getting.