Kodi Community Forum

Full Version: Does Weather.Refresh only work in weather window?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to use a visible condition to hide the weather tab if no weather add-on has been set using !IsEmpty(Window(Weather).Property(Updated)) but to get it to show up the weather info would need to loaded. This is why I thought using
PHP Code:
<onload condition="IsEmpty(Window(Weather).Property(Updated))">Weather.Refresh</onload
would work but it doesn't.

Thanks.
Weather.IsFetched ?
!IsEmpty(Weather.Plugin) ?
I've given up on the idea as you need to access the weather window to set the default weather add-on.

(2014-03-02, 15:09)Jeroen Wrote: [ -> ]Weather.IsFetched ?
Wont ever be fetched unless weather window was accessed.
(2014-03-02, 16:06)nessus Wrote: [ -> ]!IsEmpty(Weather.Plugin) ?
Only work in weather window.
Weather.IsFetched is working fine in my skin, no need to access the weather window. Maybe you need to have a dummy label to trigger the weather loading, i.e. Weather.FanartCode.
Sorry I should have explained this is from a new install.
!IsEmpty(Weather.Plugin) is working fine. Confluence also uses it and you don't need to open the weather window.