Using Openweathermap.extended in MQ5
#1
Pretty easy to get ronie's new weather addon working with MQ5.

Warning - this involves modding some skin files, so make sure you back them up first !!!

There are only three files to alter. Firstly, "Home.xml" - I just changed line 880 to read

Code:
<animation effect="slide" start="0,0" end="-75,0" condition="![StringCompare(Weather.Plugin,weather.openweathermap.extended) | StringCompare(Weather.Plugin,weather.worldweatheronline) | StringCompare(Weather.Plugin,weather.wunderground) | StringCompare(Weather.Plugin,weather.yahoo)]">Conditional</animation>

Basically, I changed the weather.ozweather to weather.openweathermap.extended.

You need to make the same change in "IncludesMenuWidgets.xml". Change line 38126 to read

Code:
<visible>StringCompare(Container(9000).ListItem.Property(id),weather) + Window.IsVisible(Home) + [StringCompare(Weather.Plugin,weather.openweathermap.extended) | StringCompare(Weather.Plugin,weather.worldweatheronline) | StringCompare(Weather.Plugin,weather.wunderground) | StringCompare(Weather.Plugin,weather.yahoo)]</visible>

Then again in "IncludesVariables.xml" Change lines 3289 & 3290 to read

Code:
    <value condition="[StringCompare(Weather.Plugin,weather.openweathermap.extended) | StringCompare(Weather.Plugin,weather.worldweatheronline) | StringCompare(Weather.Plugin,weather.wunderground) | StringCompare(Weather.Plugin,weather.yahoo)]">[COLOR=$VAR[value_headercolor]]$INFO[Weather.Temperature][/COLOR][COLOR=50FFFAF0] | [/COLOR]$INFO[Window(Weather).Property(Current.Condition)][COLOR=50FFFAF0] | [/COLOR]$INFO[System.Date][COLOR=50FFFAF0] | [/COLOR][COLOR=$VAR[value_headercolor]]$INFO[System.Time][/COLOR]</value>
    <value condition="![StringCompare(Weather.Plugin,weather.openweathermap.extended) | StringCompare(Weather.Plugin,weather.worldweatheronline) | StringCompare(Weather.Plugin,weather.wunderground) | StringCompare(Weather.Plugin,weather.yahoo)]">[COLOR=$VAR[value_headercolor]]$INFO[System.Time][/COLOR]</value>

Thanks to Wanilton for pointing out I had missed this part out !! Blush

Reload your skin/restart XBMC and your weather should work properly.

Note though that maps don't work - I'll look into that later and see if I can work out what needs changing.
Learning Linux the hard way !!
Reply
#2
Thank you sir! Gonna give this a shot when I get home!
Reply
#3
thanks @black_eagle - i did the above edits and have posted the two files to my dropbox here for those that are weary about editing skin files.
first_time_user (wiki) | free content (wiki) | forum rules (wiki) | PVR (wiki) | Debug Log (wiki)

IMPORTANT:
The official Kodi version does not contain any content what so ever. This means that you should provide your own content from a local or remote storage location, DVD, Blu-Ray or any other media carrier that you own. Additionally Kodi allows you to install third-party plugins that may provide access to content that is freely available on the official content provider website. The watching or listening of illegal or pirated content which would otherwise need to be paid for is not endorsed or approved by Team Kodi.
Reply
#4
@bry- Thanks mate, most helpful Smile

Will look at getting maps working over the weekend.
Learning Linux the hard way !!
Reply
#5
Need change 2 places more (lines 3290 and 3291) in IncludesVariables.xml file too.
MediaBrazil forum Website - Youtube Channel
MQ9-1.6.0.29 - 09.15.2023 - Aeon MQ Skin Team
MarcosQui Website Donate and support us.
Reply
#6
(2014-10-30, 19:18)Wanilton Wrote: Need change 2 places more (lines 3290 and 3291) in IncludesVariables.xml file too.

True. I had changed those but I must have closed that file in my text editor before I started this thread. My bad !! Blush

Without those two lines, you don't get the current conditions next to the clock on the main menu bar.

Updated 1st post.
Learning Linux the hard way !!
Reply
#7
Can anyone post the edited files again? Not totally sure how to edit the xml files to get openweathermap extended to work in MQ5. I keep geting script failed errors when trying to enter a location. Thanks.
Reply
#8
Script failed relates to the add-on it's self. Nothing to do with the skin.

You'll need to upload a log and post it in the openweathermap thread.
My fanart.tv & themoviedb.org accounts.

Image
Reply

Logout Mark Read Team Forum Stats Members Help
Using Openweathermap.extended in MQ50