Kodi Community Forum
[RELEASE] Weather Plus Addon - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Weather Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=155)
+---- Thread: [RELEASE] Weather Plus Addon (/showthread.php?tid=95329)



[RELEASE] Weather Plus Addon - brightsr - 2011-02-25

Poll : Which weather provider is the best for you?

Weather Plus was originally developed by Nuka1195.
Since it was not compatible with Dharma, I've fixed and been updating this.

This thread is a kind of extension of Nuka1195's thread : http://forum.xbmc.org/showthread.php?tid=52034

[WIKI]

Introduction

How to Install and Use
Compatible Skins
FAQ
Properties for skinners


[Localization]

Localization of strings in Weather Plus can be achieved by translating strings.xml of XBMC, skin, and Weather Plus.

(Weather Plus) You can translate this latest strings.xml in English of Weather Plus into your language and sharing that here is always appreciated.

(Skin) These strings below can be found and translated in Skin's strings.xml.
Code:
Pressure
Visibility

(XBMC) A lot of strings in XBMC's strings.xml is being translated, and here are strings used in Weather Plus or other weather addons.
Code:
<string id="11">Monday</string>
  <string id="12">Tuesday</string>
  <string id="13">Wednesday</string>
  <string id="14">Thursday</string>
  <string id="15">Friday</string>
  <string id="16">Saturday</string>
  <string id="17">Sunday</string>
Code:
<string id="21">January</string>
  <string id="22">February</string>
  <string id="23">March</string>
  <string id="24">April</string>
  <string id="25">May</string>
  <string id="26">June</string>
  <string id="27">July</string>
  <string id="28">August</string>
  <string id="29">September</string>
  <string id="30">October</string>
  <string id="31">November</string>
  <string id="32">December</string>
Code:
<string id="41">Mon</string>
  <string id="42">Tue</string>
  <string id="43">Wed</string>
  <string id="44">Thu</string>
  <string id="45">Fri</string>
  <string id="46">Sat</string>
  <string id="47">Sun</string>
Code:
<string id="51">Jan</string>
  <string id="52">Feb</string>
  <string id="53">Mar</string>
  <string id="54">Apr</string>
  <string id="55">May</string>
  <string id="56">Jun</string>
  <string id="57">Jul</string>
  <string id="58">Aug</string>
  <string id="59">Sep</string>
  <string id="60">Oct</string>
  <string id="61">Nov</string>
  <string id="62">Dec</string>
Code:
<string id="71">N</string>
  <string id="72">NNE</string>
  <string id="73">NE</string>
  <string id="74">ENE</string>
  <string id="75">E</string>
  <string id="76">ESE</string>
  <string id="77">SE</string>
  <string id="78">SSE</string>
  <string id="79">S</string>
  <string id="80">SSW</string>
  <string id="81">SW</string>
  <string id="82">WSW</string>
  <string id="83">W</string>
  <string id="84">WNW</string>
  <string id="85">NW</string>
  <string id="86">NNW</string>
  <string id="87">VAR</string>
Code:
<string id="370">Thunderstorms</string>
  <string id="371">Partly</string>
  <string id="372">Mostly</string>
  <string id="373">Sunny</string>
  <string id="374">Cloudy</string>
  <string id="375">Snow</string>
  <string id="376">Rain</string>
  <string id="377">Light</string>
  <string id="378">AM</string>
  <string id="379">PM</string>
  <string id="380">Showers</string>
  <string id="381">Few</string>
  <string id="382">Scattered</string>
  <string id="383">Wind</string>
  <string id="384">Strong</string>
  <string id="385">Fair</string>
  <string id="386">Clear</string>
  <string id="387">Clouds</string>
  <string id="388">Early</string>
  <string id="389">Shower</string>
  <string id="390">Flurries</string>
  <string id="391">Low</string>
  <string id="392">Medium</string>
  <string id="393">High</string>
  <string id="394">Fog</string>
  <string id="395">Haze</string>
  <string id="396">Select location</string>
  <string id="397">Refresh time</string>
  <string id="398">Temperature units</string>
  <string id="399">Speed units</string>
  <string id="400">Weather</string>
  <string id="401">Temp</string>
  <string id="402">Feels like</string>
  <string id="403">UV index</string>
  <string id="404">Wind</string>
  <string id="405">Dew point</string>
  <string id="406">Humidity</string>
Code:
<string id="434">From %s at %i %s</string> <!--From <wind dir.> at <speed> <unit>-->
Code:
<string id="1396">Drifting</string>
  <string id="1397">and</string>
  <string id="1398">Freezing</string>
  <string id="1399">Late</string>
  <string id="1400">Isolated</string>
  <string id="1401">Thundershowers</string>
  <string id="1402">Thunder</string>
  <string id="1403">Sun</string>
  <string id="1404">Heavy</string>
  <string id="1405">in</string>
  <string id="1406">the</string>
  <string id="1407">Vicinity</string>
  <string id="1408">Ice</string>
  <string id="1409">Crystals</string>
  <string id="1410">Calm</string>
  <string id="1411">with</string>
  <string id="1412">windy</string>
  <string id="1413">drizzle</string>
  <string id="1414">Thunderstorm</string>
  <string id="1415">Drizzle</string>
  <string id="1416">Foggy</string>
  <string id="1417">Grains</string>
  <string id="1418">T-Storms</string>
  <string id="1419">T-Showers</string>
  <string id="1420">Moderate</string>
  <string id="1421">Very High</string>
  <string id="1422">Windy</string>
  <string id="1423">Mist</string>

[Useful Links]

Weather FanArt Pack : http://forum.xbmc.org/showthread.php?tid=41650
[Tutorial] Using Weather Fanart : http://forum.xbmc.org/showthread.php?tid=62261&highlight=weather


If you really love it,

Image




[Change Log]

v.3.0.1 (Eden-pre)
- Added : [Accuweather.com] Chance of precipitation

v.2.8.1 (Dharma)
- Added : [Accuweather.com] Chance of precipitation
- Fixed : [Accuweather.com] Current temperatures were not converted to F

* Download links:
v.3.0.1 (Eden-pre)
v.3.0.1 (Eden-pre before Nov. 16th) -only addon.xml changed. the others are same as v.2.8.1.
v.2.8.1 (Dharma)

v.3.0.0 (v.2.8.0)
- Added : Multi-threading supported
- Added : [Video] Bulgaria - Meteotv.bg
- Added : [Video] Poland - TVN
- Added : [Video] Ireland - TV3
- Added : [Video] Germany - ZDF.de
- Added : [Video] Spain - tve
- Added : [Video] Belgium - RTL.be, Deredactie.be
- Added : [Video] Netherlands - Weer.nl
- Added : [Video] Romania - Antenna 1
- Added : [Video] Hungary - RTL Klub
- Added : [Translator] Google Translation
- Added : [Accuweather.com] "Auto" language option
- Added : [Accuweather.com] Hourly forcast - Wind direction translation (by Google)
- Added : [Accuweather.com] 10 day forcast - Wind speed & direction with Translation (by Google)
- Added : [Accuweather.com] Weekend forecast - Wind, UVindex, Sunrise & Sunset time
- Added : [NOAA.gov] Hourly forecast - Feels Like, Condition Icon, Outlook (generated by script)
- Added : [NOAA.gov] US Severe weather alert
- Added : [NOAA.gov] Weekend forecast
- Added : [Dharma] Window(Weather).Property(Update) - Last updated time
- Fixed : [NOAA.gov] Extended forecast - Gust speed issue
- Fixed : [Weather.com] Current.FanartCode
- Fixed : [Weather.com] Duplicated alerts, Alert color issue
- Fixed : [Video] ABC 4 (Hawaii)
- Fixed : Static image of map was not shown
- Fixed : Local maps of South America, Australia, New Zealand
- Fixed : Location name was not refreshed
- Fixed : Minor bugs

* If you have a nightly build compiled before nov. 16, install from zip file of v.2.8.0, and if you need to turn on auto update, change version 2.8.0 to 3.0.0 in addon.xml. Eden-pre version does not support nightly builds before weather core removal anymore.

v.2.7.2
- Version changed for eden-pre repo

v.2.5.2
- Fixed : [NOAA.gov] Daily.%d.ShortWindDirection
- Fixed : [NOAA.gov] Daily forecast icon bug
- Fixed : [Accuweather.com] Fanart and Current animated icon
- Fixed : [Accuweather.com] European forecast video


- Wanilton - 2011-02-26

AeonMQ2, version 2.7.0 has support for Weather plus too..


- brightsr - 2011-02-26

Wanilton Wrote:AeonMQ2, version 2.7.0 has support for Weather plus too..

Thanks! lol


- kidtwisted - 2011-02-26

Hey brightsr Thanks for starting a new thread.
Gonna be a lot easier to keep track of the info on a front page and skin compatibility list is a big plus.Big Grin


- ronie - 2011-02-26

hmm...v1.1.15 doesn't want to play nice on my system:
http://pastebin.com/HjnMVWyt

care to have a look?

my weather location is set to 'Eindhoven'.


- Harro - 2011-02-26

If anyone wants the 60 seconds weather video of the Dallas/Fw area here it is

http://v.imwx.com/v/wxflash/dallas.flv


- schnitzelbrain - 2011-02-26

ronie Wrote:hmm...v1.1.15 doesn't want to play nice on my system:
http://pastebin.com/HjnMVWyt

care to have a look?

my weather location is set to 'Eindhoven'.


Code:
[LIST=1]
[*] NOTICE: Location : Europe
[*]17:52:07 T:2851408752 M:3854688256    INFO: -->Python script returned the following error<--
[*]17:52:07 T:2851408752 M:3854688256   ERROR: Error Type: exceptions.IndexError
[*]17:52:07 T:2851408752 M:3854688256   ERROR: Error Contents: list index out of range
[*]17:52:07 T:2851408752 M:3854688256   ERROR: Traceback (most recent call last):
[*]                                              File "/home/ronie/.xbmc/addons/weather.weatherplus/default.py", line 41, in ?
[*]                                                Main()
[*]                                               File  "/home/ronie/.xbmc/addons/weather.weatherplus/xbmcplugin_weather.py",  line 79, in __init__
[*]                                                self._fetch_36_forecast()
[*]                                               File  "/home/ronie/.xbmc/addons/weather.weatherplus/xbmcplugin_weather.py",  line 289, in _fetch_36_forecast
[*]                                                 alerts, alertsrss, alertsnotify, alertscolor, alertscount,  forecasts, extras, video, video_local =  self.WeatherClient.fetch_36_forecast( self.WEATHER_WINDOW.getProperty(  "Video" ) )
[*]                                               File  "/home/ronie/.xbmc/addons/weather.weatherplus/WeatherClient.py", line  972, in fetch_36_forecast
[*]                                                 video, video_local = self._create_video( parser.video_location,  parser.video_local_location, parser.video_local_number, video )
[*]                                               File  "/home/ronie/.xbmc/addons/weather.weatherplus/WeatherClient.py", line  1108, in _create_video
[*]                                                 url =  "http://brightcove.vo.llnwd.net/d14/unsecured/media/1612802193/1612802193_"  + video + "_" + video_[0][1] + ".mp4" +  "?videoId="+videoID[0]+"&pubId="+publisherID[0]+"&playerId="+playerID[0]
[*]                                            IndexError: list index out of range
[*]17:52:07 T:2851408752 M:3854688256    INFO: -->End of Python script error report<--
[/LIST]
I took that from your posted this error "list index out of range" exact the same what I have in Aeon MQ2.

Same Problems since update, not working exept of the standart 4 days.

Location is different, though- But also in europa


- TugboatBill - 2011-02-26

I installed the 1.1.15 and still got the minus errors. I changed it back to the stock weather system and went into weather - negatives looked ok. I then changed back to weather.com+ and now it works perfectly. Big Grin


- dnairb - 2011-02-27

This is one addon I used quite early on with Camelot. Thank you for developing it for Dharma - it works well. (1.1.15 on Dharma with modded Confluence)


- dnairb - 2011-02-27

I have discovered a minor issue with the GUI - due to user error mainly, but it may be fixable. It is regarding the use of remote left/right buttons when viewing Current Conditions, 36 Hour Forecast and Weekend Forecast:

Current Conditions: "left" opens the settings pop-out thingy, "right" loses focus and navigation is impossible with remote.
36 Hour Forecast: Same as Current Conditions above
Hourly Forecast: "left" opens the settings pop-out thingy, "right" brings focus to the scrollbar, navigation OK with remote.
Weekend Forecast: Same as Current Conditions above
10 Day Forecast: Works OK - Same as Hourly forecast above


- htpc guy - 2011-02-27

How do you get weather related videos? I'm using Cirrus Extended.


- brightsr - 2011-02-27

schnitzelbrain Wrote:
Code:
[LIST=1]
[*] NOTICE: Location : Europe
[*]17:52:07 T:2851408752 M:3854688256    INFO: -->Python script returned the following error<--
[*]17:52:07 T:2851408752 M:3854688256   ERROR: Error Type: exceptions.IndexError
[*]17:52:07 T:2851408752 M:3854688256   ERROR: Error Contents: list index out of range
[*]17:52:07 T:2851408752 M:3854688256   ERROR: Traceback (most recent call last):
[*]                                              File "/home/ronie/.xbmc/addons/weather.weatherplus/default.py", line 41, in ?
[*]                                                Main()
[*]                                               File  "/home/ronie/.xbmc/addons/weather.weatherplus/xbmcplugin_weather.py",  line 79, in __init__
[*]                                                self._fetch_36_forecast()
[*]                                               File  "/home/ronie/.xbmc/addons/weather.weatherplus/xbmcplugin_weather.py",  line 289, in _fetch_36_forecast
[*]                                                 alerts, alertsrss, alertsnotify, alertscolor, alertscount,  forecasts, extras, video, video_local =  self.WeatherClient.fetch_36_forecast( self.WEATHER_WINDOW.getProperty(  "Video" ) )
[*]                                               File  "/home/ronie/.xbmc/addons/weather.weatherplus/WeatherClient.py", line  972, in fetch_36_forecast
[*]                                                 video, video_local = self._create_video( parser.video_location,  parser.video_local_location, parser.video_local_number, video )
[*]                                               File  "/home/ronie/.xbmc/addons/weather.weatherplus/WeatherClient.py", line  1108, in _create_video
[*]                                                 url =  "http://brightcove.vo.llnwd.net/d14/unsecured/media/1612802193/1612802193_"  + video + "_" + video_[0][1] + ".mp4" +  "?videoId="+videoID[0]+"&pubId="+publisherID[0]+"&playerId="+playerID[0]
[*]                                            IndexError: list index out of range
[*]17:52:07 T:2851408752 M:3854688256    INFO: -->End of Python script error report<--
[/LIST]
I took that from your posted this error "list index out of range" exact the same what I have in Aeon MQ2.

Same Problems since update, not working exept of the standart 4 days.

Location is different, though- But also in europa

It's due to accuweather.com.
I'm fixing and making it more stable.


- brightsr - 2011-02-27

[UPDATE] v.1.1.16

- Fixed : Europe Forecast Video of AccuWeather.com
- Fixed : Current Pressure


- brightsr - 2011-02-27

dnairb Wrote:I have discovered a minor issue with the GUI - due to user error mainly, but it may be fixable. It is regarding the use of remote left/right buttons when viewing Current Conditions, 36 Hour Forecast and Weekend Forecast:

Current Conditions: "left" opens the settings pop-out thingy, "right" loses focus and navigation is impossible with remote.
36 Hour Forecast: Same as Current Conditions above
Hourly Forecast: "left" opens the settings pop-out thingy, "right" brings focus to the scrollbar, navigation OK with remote.
Weekend Forecast: Same as Current Conditions above
10 Day Forecast: Works OK - Same as Hourly forecast above

Thanks for using this addon.
I knew those problems. But I don't know much about skin things.
Please ask on a skin help thread.


- brightsr - 2011-02-27

htpc guy Wrote:How do you get weather related videos? I'm using Cirrus Extended.

I don't know if Cirrus Extended is supporting weather videos.
Please ask on the skin's help thread.