Hello Jürgen,
thanks for your continous help, but sadly it still does not work.
I missed deleting the rrd files and restarting, did it but still the same: no content in the rrd (via REST API).
I did not enter the service.pid in the rrd4j.cfg file, that was done most likely by some automatic process. Also after I deleted this line and made a restart of the RPi, it was entered again by some unknown process.
The rrd config was just a c&p from examples, changed it now to
temperatur.archives="AVERAGE,0.5,5,8928:AVERAGE,0.5,30,8784:AVERAGE,0.5,60,17520:MAX,0.5,1440,1825:MIN,0.5,1440,1825"
temperatur.def="GAUGE,120,10,40,60"
temperatur.items="HM_EG_HZ_Arbeit_Robert_vorne_an_Eingang_4_ActualTemperature"
to have some real values. The restriction to accept only temperature between 10 and 40 °C and discard the rest is because the sensor is indoor (near my working desk). I’ll quit working if temp drops below 10°C and also at high temperature…
Output in the OH2 log is now
2017-11-08 08:24:35.287 [DEBUG] [org.openhab.persistence.rrd4j ] - BundleEvent STARTING - org.openhab.persistence.rrd4j
2017-11-08 08:24:35.290 [DEBUG] [stence.rrd4j.internal.RRD4jActivator] - RRD4j persistence bundle has been started.
2017-11-08 08:24:35.319 [DEBUG] [org.openhab.persistence.rrd4j ] - BundleEvent STARTED - org.openhab.persistence.rrd4j
2017-11-08 08:24:35.362 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Created default_other = GAUGE heartbeat = 3600 min/max = NaN/NaN step = 1 6 archives(s) = [ MAX xff = 0.999 steps = 1 rows = 3600 MAX xff = 0.999 steps = 10 rows = 1440 MAX xff = 0.999 steps = 60 rows = 1440 MAX xff = 0.999 steps = 900 rows = 2880 MAX xff = 0.999 steps = 21600 rows = 1460 MAX xff = 0.999 steps = 86400 rows = 3650] 0 items(s) = []
2017-11-08 08:24:35.363 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Created default_numeric = GAUGE heartbeat = 60 min/max = NaN/NaN step = 60 6 archives(s) = [ AVERAGE xff = 0.5 steps = 1 rows = 480 AVERAGE xff = 0.5 steps = 4 rows = 360 AVERAGE xff = 0.5 steps = 14 rows = 644 AVERAGE xff = 0.5 steps = 60 rows = 720 AVERAGE xff = 0.5 steps = 720 rows = 730 AVERAGE xff = 0.5 steps = 10080 rows = 520] 0 items(s) = []
2017-11-08 08:24:35.364 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Created temperatur = GAUGE heartbeat = 120 min/max = 10.0/40.0 step = 60 5 archives(s) = [ AVERAGE xff = 0.5 steps = 5 rows = 8928 AVERAGE xff = 0.5 steps = 30 rows = 8784 AVERAGE xff = 0.5 steps = 60 rows = 17520 MAX xff = 0.5 steps = 1440 rows = 1825 MIN xff = 0.5 steps = 1440 rows = 1825] 1 items(s) = [HM_EG_HZ_Arbeit_Robert_vorne_an_Eingang_4_ActualTemperature ]
2017-11-08 08:24:35.376 [DEBUG] [org.openhab.persistence.rrd4j ] - ServiceEvent REGISTERED - {org.openhab.core.persistence.PersistenceService}={service.pid=org.openhab.rrd4j, temperatur.def=GAUGE,120,10,40,60, component.name=org.openhab.persistence.rrd4j, component.id=166, temperatur.archives=AVERAGE,0.5,5,8928:AVERAGE,0.5,30,8784:AVERAGE,0.5,60,17520:MAX,0.5,1440,1825:MIN,0.5,1440,1825, temperatur.items=HM_EG_HZ_Arbeit_Robert_vorne_an_Eingang_4_ActualTemperature, service.id=285, service.bundleid=194, service.scope=bundle} - org.openhab.persistence.rrd4j
2017-11-08 08:24:35.402 [DEBUG] [4j.internal.charts.RRD4jChartServlet] - Starting up rrd chart servlet at /rrdchart.png
2017-11-08 08:24:35.431 [DEBUG] [org.openhab.persistence.rrd4j ] - ServiceEvent REGISTERED - {javax.servlet.ServletContext}={osgi.web.symbolicname=org.openhab.persistence.rrd4j, osgi.web.version=1.10.0, osgi.web.contextpath=/, service.id=288, service.bundleid=194, service.scope=singleton} - org.openhab.persistence.rrd4j
2017-11-08 08:24:35.440 [DEBUG] [org.openhab.persistence.rrd4j ] - ServiceEvent REGISTERED - {org.openhab.ui.chart.ChartProvider}={component.name=org.openhab.persistence.rrd4j.chartservlet, component.id=167, service.id=287, service.bundleid=194, service.scope=bundle} - org.openhab.persistence.rrd4j
Some basic questions:
- what is the correct place for the rrd4j configuration? First or second one?
/etc/openhab2/services/rrd4j.cfg (this one does not have the service.pid inside)
/var/lib/openhab2/config/org/openhab/rrd4j.config (has the service.pid inside after a sudo reboot of the RPi automatically)
- I assume something is broken in the openhabian image and I’ll give it a second try from scratch.
- Couldn’t I dig deeper inside, e.g. is some process running and fetching every minute the value and tries to store it or similar? I would have expected in the logs at least every minute (or whatever step is configured) some output where the actual temperature is gathered…