@H102: Thx. I tried your config. It didnt change much however
@opus:
I set up my rrd4j.cfg file to look like this:
Sensors.def=GAUGE,60,U,U,60
Sensors.archives=AVERAGE,0.5,1,480:AVERAGE,0.5,4,360:AVERAGE,0.5,14,644:AVERAGE,0.5,60,720:AVERAGE,0.5,720,730:AVERAGE,0.5,10080,520
Sensors.items=SonoffB13_T1,SonoffB13_T2,SonoffB13_T3,SonoffB13_T4,SonoffB13_T5,SonoffTH01_T,SonoffTH01_H,OctoprintPrinterBedTempTarget,OctoprintPrinterBedTemp,OctoprintPrinterHotEndTempTarget,Oc$
after reboot the config is loaded.
According to the logfile it should write a value every minute:
2018-07-22 10:05:00.135 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'SonoffTH01_T' with state '34.5' in rrd4j database
2018-07-22 10:06:00.137 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'SonoffTH01_T' with state '34.4' in rrd4j database
2018-07-22 10:07:00.125 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'SonoffTH01_T' with state '34.4' in rrd4j database
2018-07-22 10:08:00.119 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'SonoffTH01_T' with state '34.4' in rrd4j database
2018-07-22 10:09:00.098 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'SonoffTH01_T' with state '34.5' in rrd4j database
2018-07-22 10:10:00.143 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'SonoffTH01_T' with state '34.3' in rrd4j database
2018-07-22 10:11:00.107 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'SonoffTH01_T' with state '34.4' in rrd4j database
2018-07-22 10:12:00.184 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'SonoffTH01_T' with state '34.4' in rrd4j database
2018-07-22 10:13:00.116 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'SonoffTH01_T' with state '34.3' in rrd4j database
2018-07-22 10:14:00.163 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'SonoffTH01_T' with state '34.4' in rrd4j database
but when I look at it through the REST API I only see an entry every 4 minutes now:
{"time":1532245440000,"state":"34.2999999999999971578290569595992565155029296875"},
{"time":1532245680000,"state":"34.32499999999999573674358543939888477325439453125"},
{"time":1532245920000,"state":"34.2999999999999971578290569595992565155029296875"},
{"time":1532246160000,"state":"34.3250000000000028421709430404007434844970703125"},
{"time":1532246400000,"state":"34.39999999999999857891452847979962825775146484375"},
{"time":1532246640000,"state":"34.5"},
{"time":1532246880000,"state":"34.42500000000000426325641456060111522674560546875"},
{"time":1532247120000,"state":"34.39999999999999857891452847979962825775146484375"},
I cannot tell, is this behaviour maybe normal? I mean, thinking about storage, it would be clever to not store every value if it is identical to the one before.