RRD is queryable, but not modifiable. Maybe rrd internally can handle some modifications, but openHAB persistence service currently does not support that.
Is it maybe possible to transfer the data including history to another persistence service and edit the data there?
Maybe from rrd4j to influxdb and than clean it up in influxdb?
Not for all items but for the ones which needs to cleaned up.
I’ve made myself a migration tool a while ago to copy data from one item to another, but it is able to work with different persistence services. You can also script this, first fetch data from rrd, then push it to influx. You can have both services running in paralel in openHAB, but one can be default, and other can be used as an optional data source (use serviceId i.e. when defining chart data series)
Thanks for your answer.
I managed now to install influxdb and grafana on my openhab raspberry pi.
Also i extracted the JSON format data of my item.
I can clean the data now local.
But i dont know how the re-import the clean data to influxdb and to a new openhab item.
And how to set the persistence service to influxdb only for this single item.
Hello, i installed the influxdb binding in Openhab 4 and created a new number item and linked it to the thing channel. I did not set up any semantic class but still the item is logged with rrd4j.
I also added the item to the influxdb binding config.
In grafana i can display all my openhab items.
Can someone help me with:
Seting up the persistence for this single item to influxdb only
Manually add the cleaned history data to influxdb (maybe over grafana?) as JSON or CSV
I installed influxdb and grafana using the build in routine in openhabian menu.
But i am not able to open the influxdb web ui.
Even if its enabled in the influxdb config.
using 192.168.0.xxx:8086 gives me 404 page not found.
Grafana UI can be open in the web ui.
Yes, of course. openHAB works perfect together with influx. (Although I prefer Grafana, as it is a more powerful application with many more possibilities)
I‘m not sure which version is installed by openhabian. Version 1.x has no UI. You need 2.x for UI.
I think, there are some requirements for influx 2.x; 64 bit OS, for example.
With 1.x you can also manually add data, but I think it’s only possible line by line and not with CSV.
Please check, which version you installed.
(I have 2.x in a docker container on my NAS)
There is a way to import mass data also into influx 1.8 database.
But 1.x is totally different to 2.x; both how to administrate it and also how to access it in OH.
(In both cases - 1.x and 2.x - you cannot import csv via grafana. grafana is only the app to present to data from the influx db in graphs and so on)