hi, i need help
I am using rrd4j:
1- paiper UI>add-ons>persistances>install rrdj4
2- paiper UI>configuration>system>persistence>rrdj4(Default Service)
3- :etc/openhab2/things: mqtt.things file :
Bridge mqtt:broker:mosquitto "MQTT Broker" [ host="192.168.2.169", secure=false, username="", password="", clientID="openHAB2" ]
{
Thing topic livingroom "Livingroom Things" {
Channels:
Type number : temperature "Temperature" [ stateTopic="topicName/temperature" ]
Type number : humidity "Humidity" [ stateTopic="topicName/humidity" ]
Type number : operateur "Operateur" [ stateTopic="topicName/v" ]
}
}
4- :etc/openhab2/items: mqtt.items file :
Number home_temp "temperature smt [%.1f °C]" <temperature> { channel="mqtt:topic:mosquitto:livingroom:temperature" }
Number home_humi "humidity smt [%.1f %%]" <humidity> { channel="mqtt:topic:mosquitto:livingroom:humidity" }
Number home_ope "ope1 smt" <motion>{ channel="mqtt:topic:mosquitto:livingroom:operateur" }
5- etc/openhab2/sitemaps: mqtt.sitemap file :
sitemap mqtt label="DPI"
{
Frame label="Temperature"
{
Text item=home_temp
Text item=home_humi
Text item=home_ope
}
Frame label="Temperature"
{
Chart item=home_temp period=h refresh=30
}
}
6- etc/openhab2/persistence: rrd4j.persist file :
Strategies {
everyMinute : "0 * * * * ?"
default = everyChange
}
Items {
home_temp : strategy = everyUpdate, everyMinute
}
7-etc/openhab2/services: rrd4j.cfg file :
# configure specific rrd properties for given items in this file.
# please refer to the documentation available at
# https://www.openhab.org/addons/persistence/rrd4j/
#
# default_numeric and default_other are internally defined defnames and are used as
# defaults when no other defname applies
DHT11.def=GAUGE,600,U,U,60
DHT11.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
DHT11.items=home_temp
mqtt-persistence.cfg file:
# Name of the broker as defined in mqtt.cfg
broker=192.168.2.169
# The MQTT topic to which the persistence messages should be sent.
topic=topicName/temperature
# A string representing the persistence message content.
message=%1$s, %3$s
8- the problem : :’(
2019-05-28 22:14:50.235 [WARN ] [thome.ui.internal.chart.ChartServlet] - Chart generation failed: null