I upgraded to OH2 just a few days ago and everything seems to be running apart from the Persitence Service.
I tried to install the old RRD4J as this was running fine under 1.8.3 but I was not able to manage get this running again!
However, I have now installed the Influx DB und Windows and it seems to run somehow. For example I am able to store the example parameters “CPU” Value =0.64 and so on and I can also find the values in a list.
If I open my sitemap with a “Graph” the OH2 tries to access the Influx database, as I get some notifiaction about the request from OH2.
The one thing that is not working is the automated storage of the persisted values from OH.
The influxdb.cfg file looks like this:
url=http://192.168.2.200:8086
user=openhab
password=weroderwas
db=openhab
retentionPolicy=autogen
The influxdb.persist file looks like this:
Strategies {
everyHour : "0 0 * * * ?"
everyDay : "0 0 0 * * ?"
everyMinute : "0 * * * * ?"
// if no strategy is specified for an item entry below, the default list will be used
default = everyMinute
}
/*
Each line in this section defines for which item(s) which strategy(ies) should be applied.
You can list single items, use “" for all items or "groupitem” for all members of a group
item (excl. the group item itself).
*/
Items {
// persist all items once a day and on every change and restore them from the db at startup
rweTempWZ : strategy = everyMinute, everyChange, everyDay, restoreOnStartup
ESP82661T01 : strategy = everyMinute, everyChange, everyDay, restoreOnStartup
ESP82661T02 : strategy = everyMinute, everyChange, everyDay, restoreOnStartup
}
The three values above are shown on sitemaps, so it seems that there is a value behind and the variable is defined properly.
The influxdb.conf file stored in the same folder as the influx installation I have uncommented the following parameters only and maybe here is a part of the problem. As I am using a windows system, maybe the location for data and wal is not set correctly. (I just wonder, because if I go in the influx DB console, I can show the vlaues that I have stored before, so somewhere Influx seems to save data)
[meta]
Where the metadata/raft database is stored
dir = “/var/lib/influxdb/meta”
[data]
The directory where the TSM storage engine stores TSM files.
#dir = "/var/lib/influxdb/data"
dir = “c:\influx\data”
wal-dir = “/var/lib/influxdb/wal”
wal-dir = “c:\influx\wal”
[http]
Determines whether HTTP endpoint is enabled.
enabled = true
The bind address used by the HTTP service.
bind-address = “:8086”
Determines whether user authentication is enabled over HTTP/HTTPS.
auth-enabled = true
If anybody has influx running under windows communicating with OH2 I would be very happy about some feedback about the configuration files which are used, so that I can adopt.
Best regards,
Frank