I’m having a bit of a nightmare trying to get charts to work in Openhab on my Pi.
I have two ESP8266s logging temperature values via MQTT. I can list the values fine in my sitemap, but can’t display a chart.
Items:
Number Bathroom_Temp “Bathroom Temperature [%.1f °C]” (Temperature_Sensors) {mqtt="<[broker:hab/bathroom/temperature:state:default]"}
Sitemap:
Frame label=“All Rooms” {
Chart item=Temperature_Sensors period=1h refresh=30000
}
Persist:
Strategies {
everyMinute : "0 * * * * ?"
everyHour : "0 0 * * * ?"
everyDay : "0 0 0 * * ?"
default = everyChange
}
Items {
// persist everything when the value is updated, just a default, and restore them from database on startup
* : strategy = everyChange, restoreOnStartup
// next we define specific strategies of everyHour for anything in the Temperature group, and and every minute for Humidity
Temperature* : strategy = everyMinute
Humidity* : strategy = everyMinute
}
I can see the rrd files being created, but when I try to view the chart I see the following in openhab.log
203600153-05-30 01:38:37.641 [INFO ] [ui.internal.chart.ChartServlet] - Illegal argument in chart: {}
java.lang.IllegalArgumentException: Invalid RRD step specified: -6751202914410168260
One thing I find very strange is the date stamp in the log. The time is 21:05 at the moment, not 01:38. If I call date in Putty I get the correct date time.
Any ideas? I’d love to get the date right to rule that out first.