[SOLVED] Some Charts work, others don't (rrd4j)

Hi,
Some time ago, I’ve made some charts. Now, I’d like to add similar charts, so I copied the code and only changed the names, but some charts do not work: there’s a) only a white question mark in a blue box or b) nothing to see (BasicUI: both desktop and iOS App). Where could be a mistake?

What doesn’t work:

.sitemaps:

Switch item=intervall_motion label="Bewegungssensoren" icon="chart" mappings=[0="Stunde", 1="Tag", 2="Woche", 3="Aus"]
Chart item=motion_chart period=h refresh=6000 visibility=[intervall_motion==0]
Chart item=motion_chart period=D refresh=30000 visibility=[intervall_motion==1]
Chart item=motion_chart period=W refresh=30000 visibility=[intervall_motion==2]

.items:

Number 		intervall_motion
Group       motion_chart  
Number 		door_bool										"Wohnungstür [%.0f]"  								<door>                  (motion_chart)								                    { mqtt="<[mosquitto:door:state:default]"}
Number 		door_bool2										"Wohnungstür [%.0f]"  								<door>                  (motion_chart)								                    { mqtt="<[mosquitto:door2:state:default]"}

.persist:

Strategies {
    everyMinute:"0/10 * * * * ?"
    everyHour : "0 0 * * * ?"
    everyDay  : "0 0 0 * * ?"
  default = everyUpdate
}

Items {
  * : strategy = everyChange, restoreOnStartup
}

What work:

.sitemaps:

Switch item=intervall_temp label="Temperatur" icon="chart" mappings=[0="Stunde", 1="Tag", 2="Woche", 3="Aus"]
Chart item=room_temperature period=h refresh=6000 visibility=[intervall_temp==0]
Chart item=room_temperature period=D refresh=30000 visibility=[intervall_temp==1]
Chart item=room_temperature period=W refresh=30000 visibility=[intervall_temp==2]

.items:

Number 		intervall_temp                                  
Group       room_temperature
Number		temp_bathroom									"Badezimmer [%.0f °C]"								<temperature>			(room_temperature)   											{ mqtt="<[mosquitto:bathroom/temperature:state:default]"}		

.persist:

Strategies {
    everyMinute:"0/10 * * * * ?"
    everyHour : "0 0 * * * ?"
    everyDay  : "0 0 0 * * ?"
  default = everyUpdate
}

Items {
  * : strategy = everyChange, restoreOnStartup
}

Any ideas ?

rrd4j only work reliably if you have the everyMinute strategy.
Change the persist to:

Strategies {
    everyMinute:"0 * * * * ?"
    everyHour : "0 0 * * * ?"
    everyDay  : "0 0 0 * * ?"
  default = everyUpdate
}

Items {
  * : strategy = everyMinute, everyChange, restoreOnStartup
}

And then RESTART oh

1 Like

Thanks for the fast answer. Found in the docs, that every label name of the items in the group has to have an unique name, I didn’t note that. Change it now, I will report.

Did it ! With the thoughts of @vzorglub, the charts can all be shown !
I changed “Wohnungstür [%.0f]” to “Wohnungstür2 [%.0f]” or any other unique name. Remember to use unique labels for all items in the group. Good luck !

Please mark the thread as solved. Thanks