Rrd4j graph - some persisted items shown, some not

Hello! I was previously displaying temperature data with influxdb/grafana but with my new setup i wanted to try the standard habpanel widget. but i have trouble with displaying some of my persisted items:

rrd4j.persist:

Strategies {
   everyMinute          : "0 * * * * ?"
   everyFiveMinutes     : "0 */5 * * * ?"
   everyTenMinutes      : "0 */10 * * * ?"
   everyHour            : "0 0 * * * ?"
   everyDay             : "0 0 0 * * ?"
   beforeMidnight       : "0 59 23 * * ?"

// if no strategy is specified for an item entry below, the default list will be used
    default = everyChange
}
/*
* Each line in this section defines for which item(s) which strategy(ies) should be applied.
* You can list single items, use "*" for all items or "groupitem*" for all members of a group * item (excl. the group item itself).
*/
Items {
    WemosD1mini_Lux         :   strategy = everyMinute
    gSensors*               :   strategy = everyTenMinutes
}

items:

Group gSensors
Group gDWdata (gSensors)
Number DW_TempIst               "Raumtemperatur Ist [%.1f °C]"    (gDWdata) { channel="modbus:data:drexelweiss:dw_input200:dw_data200:number" }
Number DW_TempSoll              "Raumtemperatur Soll [%.1f °C]"   (gDWdata) { channel="modbus:data:drexelweiss:dw_holding5016:dw_data5016:number" }
Group gMija (gSensors)

Number Mijia1_Hum                   "Mija 1 Humidity"                   (gMija)     { channel="mqtt:topic:mosq:Mija1:humidity" }
Number Mijia1_Temp                  "Mija 1 Temperature"                (gMija)     { channel="mqtt:topic:mosq:Mija1:temperature" }
Number Mijia1_Batt                  "Mija 1 Battery"                    (gMija)     { channel="mqtt:topic:mosq:Mija1:battery" }

Number Mijia2_Hum                   "Mija 2 Humidity"                   (gMija)     { channel="mqtt:topic:mosq:Mija2:humidity" }
Number Mijia2_Temp                  "Mija 2 Temperature"                (gMija)     { channel="mqtt:topic:mosq:Mija2:temperature" }
Number Mijia2_Batt                  "Mija 2 Battery"                    (gMija)     { channel="mqtt:topic:mosq:Mija2:battery" }

Number Mijia3_Hum                   "Mija 3 Humidity"                   (gMija)     { channel="mqtt:topic:mosq:Mija3:humidity" }
Number Mijia3_Temp                  "Mija 3 Temperature"                (gMija)     { channel="mqtt:topic:mosq:Mija3:temperature" }
Number Mijia3_Batt                  "Mija 3 Battery"                    (gMija)     { channel="mqtt:topic:mosq:Mija3:battery" }

Number WemosD1mini_Lux              "Wemos D1 mini Lux"                 (gSonoff)   { channel="mqtt:topic:mosq:WemosD1mini1:lux" }

i see how the values are stored in the db:

2020-07-15 21:00:00.832 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'Mijia1_Temp' with state '24.0' in rrd4j database
2020-07-15 21:00:00.839 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'Mijia2_Batt' with state '97' in rrd4j database
2020-07-15 21:00:00.846 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'Mijia1_Hum' with state '62.4' in rrd4j database
2020-07-15 21:00:00.852 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'Mijia3_Temp' with state '24.2' in rrd4j database
2020-07-15 21:00:00.859 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'DW_TempIst' with state '24.289' in rrd4j database
2020-07-15 21:00:00.865 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'Mijia3_Batt' with state '100' in rrd4j database
2020-07-15 21:00:00.870 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'Mijia3_Hum' with state '56.0' in rrd4j database
2020-07-15 21:00:00.874 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'Mijia2_Hum' with state '71.0' in rrd4j database
2020-07-15 21:00:00.878 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'Mijia1_Batt' with state '11' in rrd4j database
2020-07-15 21:00:00.882 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'Mijia2_Temp' with state '23.7' in rrd4j database
2020-07-15 21:00:00.886 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'DW_TempSoll' with state '22.5' in rrd4j database
2020-07-15 21:00:00.901 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'WemosD1mini_Lux' with state '155' in rrd4j database
2020-07-15 21:01:00.906 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'WemosD1mini_Lux' with state '147' in rrd4j database
2020-07-15 21:02:00.913 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'WemosD1mini_Lux' with state '139' in rrd4j database
2020-07-15 21:03:00.919 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'WemosD1mini_Lux' with state '132' in rrd4j database
2020-07-15 21:04:00.926 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'WemosD1mini_Lux' with state '125' in rrd4j database
2020-07-15 21:05:00.930 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'WemosD1mini_Lux' with state '119' in rrd4j database
2020-07-15 21:06:00.936 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'WemosD1mini_Lux' with state '113' in rrd4j database
2020-07-15 21:07:00.942 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'WemosD1mini_Lux' with state '108' in rrd4j database
2020-07-15 21:08:00.949 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'WemosD1mini_Lux' with state '102' in rrd4j database
2020-07-15 21:09:00.955 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'WemosD1mini_Lux' with state '96' in rrd4j database
2020-07-15 21:10:00.966 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'WemosD1mini_Lux' with state '89' in rrd4j database
2020-07-15 21:10:00.973 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'Mijia1_Temp' with state '24.0' in rrd4j database
2020-07-15 21:10:00.981 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'Mijia2_Batt' with state '97' in rrd4j database
2020-07-15 21:10:00.987 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'Mijia1_Hum' with state '62.4' in rrd4j database
2020-07-15 21:10:00.994 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'Mijia3_Temp' with state '24.2' in rrd4j database
2020-07-15 21:10:01.001 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'DW_TempIst' with state '24.263' in rrd4j database
2020-07-15 21:10:01.008 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'Mijia3_Batt' with state '100' in rrd4j database
2020-07-15 21:10:01.015 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'Mijia3_Hum' with state '56.0' in rrd4j database
2020-07-15 21:10:01.022 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'Mijia2_Hum' with state '70.6' in rrd4j database
2020-07-15 21:10:01.029 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'Mijia1_Batt' with state '11' in rrd4j database
2020-07-15 21:10:01.035 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'Mijia2_Temp' with state '23.7' in rrd4j database
2020-07-15 21:10:01.041 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'DW_TempSoll' with state '22.5' in rrd4j database
2020-07-15 21:11:00.971 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Stored 'WemosD1mini_Lux' with state '81' in rrd4j database

but the only items i can get a graph for is the one with strategy : everyMinute…
WemosD1mini_Lux:
lux
Mijia1_Temp = empty:
mijia

what am i missing?

Hi Peter,

for Charts from your rrd4j persistence you need to state the desired persisted items with everyMinute.

That’s how to default charts and rrd4j persistence require it :wink:

Quote:

Technical constraints and details:

  • When using rrd4j persistence, the strategy everyMinute (60 seconds) has to be used. Otherwise no data will be persisted (stored) and the chart will not be drawn properly.

IMPORTANT

The strategy everyMinute (60 seconds) MUST be used, otherwise no data will be persisted (stored).

1 Like

Oh, sorry. i was right there on the rrd4j page.
thank you!!!