Thanks Udo… no, never heard or seen this file. (I have a look at what it does shortly.)
I installed openHAB based on the OH Getting started http://www.openhab.org/getting-started/ page.
It says, download .zip, install in /opt/openhab which I did. Downloaded the demo.zip, unzip. All good.
Looked at demo and started building my own max01.sitemap and max02.items.
I copied this section from demo.sitemap, without any changes to (the default) openhab.cfg
Frame label=“Somerset Weather” {
Text item=Weather_Temperature valuecolor=[Weather_LastUpdate==“Uninitialized”=“lightgray”,Weather_LastUpdate>90=“lightgray”,>25=“orange”,>15=“green”,>5=“orange”,<=5=“blue”] {
Frame {
Text item=Weather_Temp_Max valuecolor=[>25=“orange”,>15=“green”,>5=“orange”,<=5=“blue”]
Text item=Weather_Temp_Min valuecolor=[>25=“orange”,>15=“green”,>5=“orange”,<=5=“blue”]
/* Text item=Weather_Humidity /
/ Text item=Weather_Humidex /
Text item=Weather_LastUpdate visibility=[Weather_LastUpdate>30] valuecolor=[Weather_LastUpdate>120=“orange”, Weather_LastUpdate>300=“red”]
}
Frame {
Switch item=Weather_Chart_Period label=“Chart Period” mappings=[0=“Hour”, 1=“Day”, 2=“Week”]
Chart item=Weather_Chart period=h refresh=6000 visibility=[Weather_Chart_Period==0, Weather_Chart_Period==“Uninitialized”]
Chart item=Weather_Chart period=D refresh=30000 visibility=[Weather_Chart_Period==1]
Chart item=Weather_Chart period=W refresh=30000 visibility=[Weather_Chart_Period==2]
}
}
}
… and changed the URL in demo.items to:
Group Weather_Chart (Weather)
Number Weather_Temperature “Outside Temperature [%.1f °C]” (Weather_Chart) { http="<[https://query.yahooapis.com/v1/public/yql?q=select++from+weather.forecast+where+woeid%%3D1097507+and+u%%3D%%27C%%27:60000:XSLT(yahoo_weather_temperature.xsl)]" }
Number Weather_Humidity “Outside Humidity [%.1f %%]” (Weather) { http="<[http://weather.yahooapis.com/forecastrss?w%%3D638242&u%%3DC:60000:XSLT(yahoo_weather_humidity.xsl)]" }
basically changing the URL format and woeid
Since I do not have this in max01.files, I can only assume if not assert that the various .items and .sitemaps seem to work together. E.g what is defined in one file, is working for the other – or more clearly, what is defined in demo.items, seem to impact max01.items.
Is this assumption correct?
what I planned for today is remove all files (demo, default.) and only leave my max01. files and see what happens. Again, I assume the weather would not function any more.