[SOLVED] Demo house - Weather

On the thing configuration screen:

image

On the top right you should see something like SHOW MORE

This will give you access to more detailed channels like the max and min and forecasts

Thanks.

I can`t find SHOW MORE on my screen for some reason. Do I need to enable it somewhere ?

Sorry, but the yahoo weather binding is limited to these 3 channels, therefore you don’t have access to the max and min. (I don’t use the yahoo weather binding so I took a screen shot from another binding hoping there would more channels)
You need to use another weather binding, like the weather binding (generic-legacy) or the weather-underground binding

I thought that this rule is sorting temp min and max and that we are only getting Outside temp from binding rest of is done by this rule ? Maybe I`m wrong, correct me please.

when 
     Item Weather_Temperature changed or 
     Time cron "0 0 0 * * ?" or 
     System started 
then 
     val max = Weather_Temperature.maximumSince(now.withTimeAtStartOfDay) 
     val min = Weather_Temperature.minimumSince(now.withTimeAtStartOfDay) 
     if (max !== null && min !== null) { 
         postUpdate(Weather_Temp_Max, max.state) 
         postUpdate(Weather_Temp_Min, min.state) 
     } 
end

It you are saying that I should try another binding that not a problem I will try to change it to weather underground or weather binding. Which binding has the best reputation in community ? I heard about astro - is it worth looking into it?

Also to add - couple of days ago I was reading Outside temperature and also for some time I was showing Minimum temperature - see some graphics above were attaché previously. I can`t remember what I had to change as I was trying to fix Max temperature and this is when everything went wrong for me.

I have included this chart below from few days ago showing Out temp with Min temp

Capture

Hi. I`m wonder if there is any problem with this rule I have. For some reason I was able to read minimum + outside temperature for some time.

In order to use maximumSince you need to have persistence set up.
Did you set-up persistence?

Hi.

This is what I have currently inside persistence folder:

rrd4j.persistence file:

// persistence strategies have a name and a definition and are referred to in the "Items" section
Strategies {
	// for rrd charts, we need a cron strategy
	everyMinute : "0 * * * * ?"
}

Items {
	DemoSwitch,NoOfLights,Window_GF_Toilet,Heating* : strategy = everyChange, everyMinute, restoreOnStartup
		
	// let's only store temperature values in rrd
	Temperature*,Weather_Chart* : strategy = everyMinute, restoreOnStartup

}

Apart from this file I got other files like db4o, exec and logging. I can list the content if required ?

Capture22

rrd4j.persistence
not
rrd4j.persistance

Corrected spelling above.
So is my persistence set up correctly ? Should I publish other files as well ?

You need to change your items so that they belong to the group Temperature being persisted

Group Weather_Chart													(Weather)
Number Weather_Temperature 		"Outside Temperature [%.1f °C]"	<temperature> (Weather_Chart, Temperature) { http="<[http://weather.yahooapis.com/forecastrss?w=638242&u=c:60000:XSLT(yahoo_weather_temperature.xsl)]" }
Number Weather_Temp_Max 		"Todays Maximum [%.1f °C]"	<temperature> (Weather_Chart, Temperature)
Number Weather_Temp_Min 		"Todays Minimum [%.1f °C]"	<temperature> (Weather_Chart, Temperature)
Number Weather_Chart_Period		"Chart Period"
DateTime Weather_LastUpdate		"Last Update [%1$ta %1$tR]"	<clock>

/* NTP binding demo item */
DateTime		Date			"Date [%1$tA, %1$td.%1$tm.%1$tY]"	<calendar>	{ ntp="Europe/London:en_GB" }

Hi,

Just had a look on openhab logs, there is lots of errors related to persistence. Example below.

2018-04-19 22:15:00.033 [WARN ] [nce.extensions.PersistenceExtensions] - There is no default persistence service configured!
2018-04-19 22:15:00.038 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'null'
2018-04-19 22:15:09.464 [WARN ] [.core.transform.TransformationHelper] - Transformation 'org.eclipse.smarthome.transform.scale.internal.ScaleTransformationService@1c9b821' with value '20.346178107561505' failed: An error occurred while opening file.
2018-04-19 22:16:00.017 [WARN ] [nce.extensions.PersistenceExtensions] - There is no default persistence service configured!
2018-04-19 22:16:00.023 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'null'
2018-04-19 22:16:00.027 [WARN ] [nce.extensions.PersistenceExtensions] - There is no default persistence service configured!
2018-04-19 22:16:00.031 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'null'
2018-04-19 22:17:00.019 [WARN ] [nce.extensions.PersistenceExtensions] - There is no default persistence service configured!
2018-04-19 22:17:00.023 [WARN ] [nce.extensions.PersistenceExtensions] - There is no queryable persistence service registered with the id 'null'c

In the paperUI
In Configuration
In System
In Persistence set the default persistence service to rrdj4
Save (All the way at the bottom)
Your charts should show something
If they don’t restart openHAB

Thanks. I changed items group to as follow:

Group Weather_Chart													(Weather)
Number Weather_Temperature 		"Outside Temperature [%.1f °C]"	<temperature> (Weather_Chart, Temperature) { http="<[http://weather.yahooapis.com/forecastrss?w=638242
&u=c:60000:XSLT(yahoo_weather_temperature.xsl)]" }

Number Weather_Humidity 		"Outside Humidity [%.1f %%]"	<humidity> (Weather) { http="<[http://weather.yahooapis.com/forecastrss?w=638242
&u=c:60000:XSLT(yahoo_weather_humidity.xsl)]" }

Number Weather_Pressure 		"Outside Pressure [%.2f mb]"	<pressure> (Weather) { http="<[http://weather.yahooapis.com/forecastrss?w=638242
&u=c:60000:XSLT(yahoo_weather_pressure.xsl)]" }

Number Weather_Humidex		"Humidex [SCALE(humidex.scale):%s]" 			(Weather)
Number Weather_Temp_Max 		"Todays Maximum [%.1f °C]"	<temperature> (Weather_Chart, Temperature)
Number Weather_Temp_Min 		"Todays Minimum [%.1f °C]"	<temperature> (Weather_Chart, Temperature)
Number Weather_Chart_Period		"Chart Period"
DateTime Weather_LastUpdate		"Last Update [%1$ta %1$tR]"	<clock>

Also changed settings in paper ui / persistence to rrdj4. That didn’t changed anything on the graph so will be restarting openhab now - I will update you in few minutes.

Hi Vincent,
Great news - this seems to be working correctly now under Hour and Day section. Week section we should see tomorrow if updates correctly - many thanks.

Just one question - how to move up this box with key legend explaining tree colours - it looks like it moved down for some reason after restart. Is it something we can customise or is it default ? If I could move it to the left top of the graph that would be great.

Sorry but you can’t manipulate the chart presentation at all I am afraid