Charts cause sitemap to freeze until restart

Hi Guys,

Since OpenHAB 2.1.0 i have tried to implement charting on things like temperature etc but whenever I add charting to my sitemap after about 10 minutes the sitemap/web server stops responding until I restart the OpenHAB service. I have tried again when 2.2.0 was released and now again since upgrading to 2.3.0 but the same result. If I exclude the charting items on the site map I have no issues.

Here is an excerpt from my sitemap.

	Frame label="Weather" {
		Text item=Temperature icon=temperature label="Temperature" valuecolor=[>40="red",>30="orange",>12="green",<=12="blue"] {
			Frame {
				Text item=Temperature icon=temperature label="Temperature" valuecolor=[>40="red",>30="orange",>12="green",<=12="blue"] {
					Text label=Day icon=temperature
					Chart item=Temperature service="mysql" period=D refresh=300
                Text item=LocalWeather_Current_Temperature label="OW Temperature" valuecolor=[>40="red",>30="orange",>12="green",<=12="blue"]
				Text item=Condition icon=sun_clouds label="Condition"
				Text item=Humidity icon=humidity label=Humidity valuecolor=[>75="orange",>30="green",>5="blue",<=5="blue"]
				Text item=Pressure icon=pressure label=Pressure valuecolor=[>1100="orange",>1000="green",>900="blue",<=5="blue"]
				Text item=Wind_Direction icon=wind label="Wind Direction"
				Text item=Wind_Speed icon=wind label="Wind Speed"
				Text item=Station_Name icon=settings label="Station"
				}
			}
        }
  • Platform information:
    • OS: Windows 10
    • openHAB version: 2.3.0
    • MySQL for persistance

I can’t find a chart.

There are 3 opening breakets, but only 2 closing.

Sorry I have fixed the example from my sitemap above.

A refresh every 300 ms is certainly too much. Try with a higher value like 10000 (10 seconds).

1 Like

@Lolodomo Thankyou that was exactly the issue. I used an example for charting somewhere on this site some time ago and had just assumed it was seconds not milliseconds.