Kodi Community Forum

Full Version: Question about next location weather
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi dudes,

i'm trying something but i really don't know if it's possible. So before i spend other few hours, maybe days Smile i thought it's time to ask here.

I would like to go through my weather locations from a panel container on home.

There is <control type="spincontrolex" id="3"> in MyWeather.xml

i thought i could try with:

<onclick>Control.Message(3,click,[MyWeather.xml])</onclick>

or

<onclick>Control.Message(3,click,[weather])</onclick>

or

SendClick(weather,3)

but no luck. Is there a way to force an onclick to the spincontrol from outside MyWeather.xml ?

Thanx
What about Weather.LocationNext / Weather.LocationPrevious and Weather.LocationSet? Do they also work only in MyWeather.xml?
The correct way is

PHP Code:
<onclick>Control.Message(3,click,weather)</onclick

but whether that will work or not I'm not sure.

EDIT: Weather.LocationNext works.
Thanx guys ! That was fast Smile
Hmmm sadly it only works if i enter weather window first and come back to home.
(2014-05-22, 21:14)butchabay Wrote: [ -> ]Hmmm sadly it only works if i enter weather window first and come back to home.

Hello Butch,

For Change Location I use

Code:
<onclick>skin.SetString(WeatherRefreshHome,On)</onclick>
<onclick>ActivateWindow(weather)</onclick>
<onclick>Weather.LocationNext</onclick>
<onclick>ActivateWindow(home)</onclick>
an reset in Window Home
Code:
<onload>skin.Reset(WeatherRefreshHome)</onload>
and the weather window in a group with a skin.string visible.

I see for a few second the Weather background, but it works well for me.

regards