Now I have different items that I are displayed in a chart, several are not displayed.
Here is one sample for each of them:
WORKS
// Persistence Groups
Group gMyOpenhab // for Items that are exposed to IFTTT
Group gChart // for Items to persist for charting
Group gHistory // for Items to preserve their history
//Group gRestore // for Items to restore on startup (currently everything so commented out)
// To choose a proper chart period in a sitemap
// mappings=[0=“Tag”, 1=“Woche”, 2=“Monat”, 3=“Jahr”]
Number chart_period “Graph Zeitraum”
// Wetter
Group gChartWeather “Wetterdaten”
Number Temperature “Temperature Outside” (gChart, gChartWeather) { channel=“yahooweather:weather:munich:temperature” }
// rrd4j.persist file: I use rrd4j for historic data. Because of limitations of rrd4j data must be saved at least every minute for charting or else you end up
// with blank charts and previousState and historicState do not appear to work.
Strategies {
// for rrd charts, we need a cron strategy
everyMinute : “0 * * * * ?”
// influxdb.persist file: I use InfluxDB along with Grafana for generating complex and attractive charts. See the InfluxDB+Grafana tutorial28 for details.
// persistence strategies have a name and a definition and are referred to in the “Items” section
Strategies {
default = everyChange
}
Items {
gChart* : strategy = everyUpdate
}
// mapdb.persist file: I only use MapDB for restoreOnStartup and restoreOnStartup applies to all Items
Strategies {
default = everyUpdate
}
Items {
// persist all items on every change and restore them from the db at startup
* : strategy = everyChange, restoreOnStartup
}
Now when I stored everything in rrd4j all charts work.
So obviously the chart didnt work with influxdb, but I checked the data was written to influxdb.
Is there any config I need to do to tell the charts to use influxdb?