- Thread starter
- #71
Re: yrWeather Plugin
Ok to make life a little bit easier
use
<visible>string.equals(#yrWeather.forecastByHour,true)</visible>
and
<visible>string.equals(#yrWeather.forecastByDay,true)</visible>
Then i have a strategy for hour by hour the id's are as follows
Weekday = 300,
Time = 301,
Temp = 302,
Preciptation= 303,
Wind= 304,
WeatherIcon= 305,
Condition = 306,
if you then take the next hour the will have id as before but you add hour * 10 "notice hour iteriation starts from zero"
example
hour 2
Weekday = 310,
Time = 311,
hour 3
Weekday = 320,
Time = 321,
This way it's not limited to 4x3 screens
Fixed
Ok to make life a little bit easier
use
<visible>string.equals(#yrWeather.forecastByHour,true)</visible>
and
<visible>string.equals(#yrWeather.forecastByDay,true)</visible>
Then i have a strategy for hour by hour the id's are as follows
Weekday = 300,
Time = 301,
Temp = 302,
Preciptation= 303,
Wind= 304,
WeatherIcon= 305,
Condition = 306,
if you then take the next hour the will have id as before but you add hour * 10 "notice hour iteriation starts from zero"
example
hour 2
Weekday = 310,
Time = 311,
hour 3
Weekday = 320,
Time = 321,
This way it's not limited to 4x3 screens
#yrWeather.weatherIcon.nrBackdrops - now that you have #yrWeather.weatherIcon - all we need is a property such as #yrWeather.weatherIcon.no to expose the icon number to the skin. Then any skin can use <texture>\animations\Weather\#yrWeather.weatherIcon.no.jpg</texture> to display a backdrop that applies to the current hourly weather condition if they wish.
I can confirm all the skin properties work here on Basic Home or any window. The only minor issue I noticed is that#yrWeather.windSpeed does not have a space before the m/s like it does in all the wind speeds within yrWeather window.
Fixed