Good morning guys,
I am new to this community - so first a hello to all of you!
What do I want to accomplish?
I want to display a graph with temperature data in my HABPanel
What did I do so far?
- I installed the RRD4J Plugin:
- I defined my item to retrieve the temperature data from the Philips Hue Motion sensor:
Number hueMotionSensorTemperature "temperature [%.1f °C]" <temperature> { http="<[hueMotionSensorTemperature:60000:JS(getHueTemperature.js)]" }
This is working so far. I can display the data of this item in my HABPanel. It works with HTTP Binding and Javascript Transformation.
hueMotionSensorTemperature.url=http://192.168.178.7/api/myapikey/sensors/7
hueMotionSensorTemperature.updateInterval=60000
(function(i) {
var json = JSON.parse(i);
return parseInt(json["state"]["temperature"]) / 100;
})(input)
- I left my rrd4j.cfg in services folder empty, as I read comments that it is not required!
- I created the rrd4j.persist in the persistence folder and it contains:
Strategies {
everyMinute : "0 * * * * ?"
}
Items {
hueMotionSensorTemperature : strategy = everyChange, everyMinute
}
- I enabled logging and get log entries like:
2018-09-30 09:43:27.958 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'hueMotionSensorTemperature' with state '20.04' in rrd4j database
- The file hueMotionSensorTemperature.rrd in folder persistence/rrd4j exists and gets recreated if I delete it…
Where is the problem?
Independent if I use the default chart in HABPanel or the RRD4j one with the hueMotionSensorTemperature as input it just shows no data. I have no more ideas why and that is frustrating me…
Edit: and also by accessing the charts directly it isnt displaying any data:
Edit2: I guess I am a step closer: rrd4j is a liar! The log says it is storing data but if I query the service for my item it shows that there is no data. But why is no data saved?
Edit3: found a lot of posts from @opus @martinvw @finkm @rlkoshak and so on. Maybe you guys are having an idea here. Would appreciate it!
Hope to get some help in here!
Best,
Dirk