-
Platform information:
- Hardware: RPi3
- OS: openhabian
- Java Runtime Environment: 1.8.0_152
- openHAB version: openHAB 2.3.0 Release Build
-
Issue of the topic:
My Charts only show a fraction of the data. The hourly chart seems to be fine but the daily chart is already missing the last 2 hours and the weekly charts only show about 1,25 days worth of data. The persistence service has been running for 2 days. I tried to delete all the storage files in hope that it would fix the problems … with no effect … I already had multiple days of data but with the same result.
I also reinstalled rrd4j …
here is a compilation of screenshots:
And here is my configuration:
home.items
Group gTH01_Sensors
Number SonoffTH01_T "Temperatur Serverraum [%.1f °C]" <temperature> (gTH01_Sensors) { mqtt="<[broker:tele/SonoffTH01/SENSOR:state:JSONPATH($.AM2301.Temperature)]" }
Number SonoffTH01_H "Feuchtigkeit Serverraum [%.1f %%rF]" <humidity> (gTH01_Sensors) { mqtt="<[broker:tele/SonoffTH01/SENSOR:state:JSONPATH($.AM2301.Humidity)]" }
home.sitemap
Text label="Chart TH10" icon="chart" {
Switch item=Day_Period label="Chart Period" icon="time" mappings=[0="Hour", 1="Day", 2="Week", 3="Month", 4="Year"]
Chart item=gTH01_Sensors period=h refresh=60000 visibility=[Day_Period==0]
Chart item=gTH01_Sensors period=D refresh=60000 visibility=[Day_Period==1]
Chart item=gTH01_Sensors period=W refresh=60000 visibility=[Day_Period==2]
Chart item=gTH01_Sensors period=M refresh=60000 visibility=[Day_Period==3]
Chart item=gTH01_Sensors period=Y refresh=60000 visibility=[Day_Period==4]
}
rrd4j.persist (already played around with this one … a lot!)
// persistence strategies have a name and a definition and are referred to in the "Items" section
Strategies {
// for rrd charts, we need a cron strategy
everyDay : "0 0 0 * * ?"
everyHour : "0 0 * * * ?"
everyMinute : "0 * * * * ?"
default = everyUpdate
}
/*
* 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
gTH01_Sensors*,gSonoffB_Sensors*: strategy = everyUpdate, everyMinute, everyHour, everyDay, restoreOnStartup
gOctoTemp*: strategy = everyUpdate, restoreOnStartup
gRSSI*: strategy = everyUpdate, everyMinute, restoreOnStartup
gReachable*: strategy = everyUpdate, everyMinute, restoreOnStartup
}
rrd4j.cfg (I configured it once, then read that it isn’t needed)
# please note that currently the first archive in each RRD defines the consolidation
# function (e.g. AVERAGE) used by OpenHAB, thus only one consolidation function is
# fully supported
#
# default_numeric and default_other are internally defined defnames and are used as
# defaults when no other defname applies
#Sensors.def=GAUGE,90,0,U,30
#Sensors.archives=AVERAGE,0.5,1,365:AVERAGE,0.5,7,365
#Sensors.items=SonoffB13_T1,SonoffB13_T2,SonoffB13_T3,SonoffB13_T4,SonoffB13_T5,SonoffTH01_T,SonoffTH01_H,OctoprintPrinterBedTempTarget,OctoprintPrinterBedTemp,OctoprintPrinterHotEndTempTarget,OctoprintPrinterHotEndTemp
I already rebooted openhab a couple of times …
Thank you for your help