Hello,
I’ve got some problems to figure out how it works to display a simple Temperature chart.
rrd4j.persist file
// Configuration file for "rrd4j" persistence module
// 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
everyMinute : "0 * * * * ?"
everyHour : "0 0 * * * ?"
everyDay : "0 0 0 * * ?"
default = everyUpdate
}
Items {
// let's only store temperature values in rrd
temperatura : strategy = everyChange
}
How you can see, it show the value, but not in real time, and some value are lost.
Example: in the photo the temperature is set to 19.0° , after it is changed al lot of time (the sensor is not accurate), and some value, like the 19.0°, doesn’t appears in the graph. How can I solve it? I try to set refresh in the sitemap file at lower or higher value but it seems doesn’t change.
I don’t think you can - it sounds like one minute is as granular as you can get with rrd4j. So you may need to pick another persistence service if you require more a granular time series.
ok, so I have understand that with rrd4j I can only store data at least 1 minute. If I want store data like every second, how can I do, also using other persistence?
because I need to put this temperature sensor in a controlled temperature room, and I need a graph very accurate that acquires data as fast as possible.
Okok, I know that temperature doesn’t change so fast, but if the temperature in the room goes down 20° (for example) I will notice it only after a minute, too late for the circumstance.