Does Weather.Refresh only work in weather window? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12) +--- Thread: Does Weather.Refresh only work in weather window? (/showthread.php?tid=187922) |
Does Weather.Refresh only work in weather window? - Hitcher - 2014-03-02 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> Thanks. RE: Does Weather.Refresh only work in weather window? - Jeroen - 2014-03-02 Weather.IsFetched ? RE: Does Weather.Refresh only work in weather window? - nessus - 2014-03-02 !IsEmpty(Weather.Plugin) ? RE: Does Weather.Refresh only work in weather window? - Hitcher - 2014-03-02 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. RE: Does Weather.Refresh only work in weather window? - `Black - 2014-03-02 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. RE: Does Weather.Refresh only work in weather window? - Hitcher - 2014-03-02 Sorry I should have explained this is from a new install. RE: Does Weather.Refresh only work in weather window? - `Black - 2014-03-02 !IsEmpty(Weather.Plugin) is working fine. Confluence also uses it and you don't need to open the weather window. |