One last question, I have a visual problem with the time periods of the graphics.
1- In the app I get all the graphics followed one below the other and although press the buttons (hour, week …) nothing happens since they are displayed all at the same time.
2- If I access by browser, all the graphics also appear one below the other but the time buttons do not appear
Hi,
I think you’ve got some errors with the mapping of the Switch in your sitemap
You shouldn’t see the switch visible on your browser screenshot.
nothing happens since they are displayed all at the same time.
What do you mean exactly? In the browser, you’d need to reload the page
The above code should give you sth like this, else you’re not persisting a group:
BTW, if someone reads this who can answer: Is there a way to clear the wrong data entry out of the RRD4J DB? (on 20th december one of my sensors recorded a temperature of 9999 °C, making the graph unreadable).
Ok, the problem was that he had not defined the item, IntervallTempus
Now, i have one graph, but to see another period of time I must press the button and refresh the page to change the graph, is it normal?
Regarding the graphic, for the moment it only records the value of kwh of a single room, so only one line comes out, in the future I will add more
I know the original problem has been solved.
But I see you´re suffering from the same as I with RRD4J is persisting value numbers with several decimals.
This is a snip from the tail log of one of my temperature sensores:
2018-05-29 22:50:14.817 [vent.ItemStateChangedEvent] - stort_bad_Temperature changed from 26.60 to 26.50
2018-05-29 22:50:20.149 [vent.ItemStateChangedEvent] - stort_bad_Temperature changed from 26.50 to 26.60
2018-05-29 22:51:29.810 [vent.ItemStateChangedEvent] - stort_bad_Temperature changed from 26.60 to 26.50
2018-05-29 22:51:35.181 [vent.ItemStateChangedEvent] - stort_bad_Temperature changed from 26.50 to 26.60
2018-05-29 22:52:55.505 [vent.ItemStateChangedEvent] - stort_bad_Temperature changed from 26.60 to 26.50
2018-05-29 22:53:06.210 [vent.ItemStateChangedEvent] - stort_bad_Temperature changed from 26.50 to 26.60
2018-05-29 22:53:11.672 [vent.ItemStateChangedEvent] - stort_bad_Temperature changed from 26.60 to 26.50
2018-05-29 23:11:03.208 [vent.ItemStateChangedEvent] - stort_bad_Temperature changed from 26.50 to 26.40
2018-05-29 23:11:08.554 [vent.ItemStateChangedEvent] - stort_bad_Temperature changed from 26.40 to 26.50
2018-05-29 23:11:13.888 [vent.ItemStateChangedEvent] - stort_bad_Temperature changed from 26.50 to 26.40
2018-05-29 23:11:19.371 [vent.ItemStateChangedEvent] - stort_bad_Temperature changed from 26.40 to 26.50
I wonder why rrd4j persists 2 decimals. I have even seen charts with 3 decimals. Any idea why? I just want 1 decimal, and thats it. I have set up once decimal in my items as well. But rrd4j seem to live on its own.
Also please note the temeprature readings in oppe right place on the screendump saying 26.5 degrees. Yet rrd4j persist 26.6.
//Stort Bad
Number stort_bad_Temperature "Temperatur stort bad [%.1f °C]" <cu_heating> (Temperatur) [ "CurrentTemperature" ] {ihc="13699860"}
Number stort_bad_Tempsetpunkt "Temperature setpunkt [%.1f °C]" <temperature> {ihc="7989780"}
Number stort_bad_fugt "Fugtighed stort bad [%.1f %%]" <Humidity> (Fugtighed) ["TargetHumidity"] {ihc="13699623"}
You item is setup to SHOW only one decimal digit ( %.1f), rrd4j does store the whole value.
did you ever check which correct value is stored (my gues for the actual value is something like 26.59999.
Honestly, I have no idea how to check this.
The temperature readings is read from my IHC controller, (Intelligent House Controle), which is showing 2 decimal digits as well. So I just assumed this was the case with OpenHab as well, as it (trail log) shows 2 decimal digits as well, (where 0 (zero) is the second).
My itmes are set to show only one, which make this even more suspect, cause Trail log shows two…
My question is what do I put for the archive options below in the rrd4j.cfg?
defname.def=[ABSOLUTE|COUNTER|DERIVE|GAUGE],heartbeat,[min|U],[max|U],step
defname.archives=[AVERAGE|MIN|MAX|LAST|FIRST|TOTAL],xff,steps,rows
defname.items=list of items for this defname
The strategy everyMinute (60 seconds) MUST be used, otherwise no data will be persisted (stored). Other strategies can be used too.
I do not know if you can tune the archives better from default for this particular use-case, probably.
jwiseman
(Mr. Wiseman (OH 4.2 Snapshot on Pi4))
53
This is done but I’m still confused on the archive logic; I’m not seeing anything about daily archiving. All archive examples are around minutes or hour logic.
I don’t think rrd4j works like that. You define each archive as a number of “boxes” and define the size/duraton of each box in minutes. Boxes x size = size or duration of archive. Each archive “starts” in history where the previous one finishes.
I think that isn’t correct, IMHO each archive ends at now, the beginning is computed by steps times rows.
I’m on the road now, will post my custom archive setting for daily values (I do save a value each minute).