The branch, gotham has been updated
via 2ab6ca451fb77538f87e7267bc0586d33d94871c (commit)
from b9947027f5c6a53f2c7e58c1ea6b67dc1b56cc47 (commit)
- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commit;h=2ab6ca451fb77538f87e7267bc0586d33d94871c
commit 2ab6ca451fb77538f87e7267bc0586d33d94871c
Author: ronie <ronie>
Date: Thu May 15 11:46:13 2014 +0200
weather.wunderground 3.0.5
diff --git a/weather.wunderground/addon.xml b/weather.wunderground/addon.xml
index 7f96e75..fbb07ce 100644
--- a/weather.wunderground/addon.xml
+++ b/weather.wunderground/addon.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<addon id="weather.wunderground" name="Weather Underground" version="3.0.4"
provider-name="Team XBMC">
+<addon id="weather.wunderground" name="Weather Underground" version="3.0.5"
provider-name="Team XBMC">
<requires>
<import addon="xbmc.python" version="2.12.0"/>
<import addon="script.module.simplejson" version="3.3.0"/>
@@ -18,6 +18,7 @@
<summary lang="de">Wettervorhersage von
wunderground.com</summary>
<summary lang="el">Î ÏÏγνÏÏη καιÏÎ¿Ï Î±ÏÏ Ïο
wunderground.com</summary>
<summary lang="en">Weather forecast from
wunderground.com</summary>
+ <summary lang="en_NZ">Weather forecast from
wunderground.com</summary>
<summary lang="es">Predicción meteorológica de
wunderground.com</summary>
<summary lang="es_AR">Pronóstico meteorológico de
wunderground.com</summary>
<summary lang="es_MX">Pronóstico de wunderground.com</summary>
@@ -73,6 +74,7 @@
<description lang="de">Wettervorhersage bereitgestellt durch
Weather Underground (http://www.wunderground.com/)</description>
<description lang="el">Î ÏÏÏγνÏÏη καιÏοÏ
ÏαÏÎÏεÏαι αÏÏ Ïο Weather Underground
(http://www.wunderground.com/)</description>
<description lang="en">Weather forecast provided by Weather
Underground (http://www.wunderground.com/)</description>
+ <description lang="en_NZ">Weather forecast provided by Weather
Underground (http://www.wunderground.com/)</description>
<description lang="es">Predicción meteorológica proporcionada
por Weather Underground (http://www.wunderground.com/)</description>
<description lang="es_AR">Pronóstico meteorológico
proporcionado por Weather
Underground (http://www.wunderground.com/)</description>
<description lang="es_MX">Pronóstico del tiempo por Weather
Underground (http://www.wunderground.com/)</description>
@@ -127,6 +129,7 @@
<disclaimer lang="de">Mit Benutzung dieses Addons bestätigen
Sie die Nutzungsbedingungen, zu finden unter
http://www.wunderground.com/weather/api/d/terms.html</disclaimer>
<disclaimer lang="el">ΧÏήÏη αÏ
ÏÎ¿Ï ÏοÏ
ÏÏÏÏθεÏοÏ
ÏÏ
νεÏάγεÏαι Ïην αÏοδοÏή ÏÏν ÎÏÏν
ΧÏήÏÎ·Ï ÏÎ·Ï Î¥ÏηÏεÏÎ¯Î±Ï (Terms of Service) οι οÏοίοι
βÏίÏκονÏαι ÏÏο
http://www.wunderground.com/weather/api/d/terms.html</disclaimer>
<disclaimer lang="en">Use of this add-on implies that you have
agreed to the Terms of Service located at
http://www.wunderground.com/weather/api/d/terms.html</disclaimer>
+ <disclaimer lang="en_NZ">Use of this add-on implies that you
have agreed to the Terms of Service located at
http://www.wunderground.com/weather/api/d/terms.html</disclaimer>
<disclaimer lang="es">Al usar este complemento, aceptas los
términos de uso de
http://www.wunderground.com/weather/api/d/terms.html</disclaimer>
<disclaimer lang="es_AR">Al usar este complemento, aceptas los
términos de uso de
http://www.wunderground.com/weather/api/d/terms.html</disclaimer>
<disclaimer lang="es_MX">El uso de este add-on implica que
usted esta de acuerdo con los Términos de Servicio localizados en
http://www.wunderground.com/weather/api/d/terms.html</disclaimer>
@@ -171,10 +174,10 @@
<disclaimer lang="zh_TW">使ç¨éåéå å
件代表ä½
åæ http://www.wunderground.com/weather/api/d/terms.html æè¼ä¹ä½¿ç¨è
æ¢æ¬¾</disclaimer>
<language></language>
<platform>all</platform>
- <forum>http://forum.xbmc.org/showthread.php?tid=116668</forum>
-
<source>https://github.com/XBMC-Addons/weather.wunderground/</source>
<license>GNU GENERAL PUBLIC LICENSE Version 2</license>
+ <forum>http://forum.xbmc.org/showthread.php?tid=116668</forum>
<website></website>
<email></email>
+
<source>https://github.com/XBMC-Addons/weather.wunderground/</source>
</extension>
</addon>
diff --git a/weather.wunderground/changelog.txt
b/weather.wunderground/changelog.txt
index f9a51bb..77eeb34 100644
--- a/weather.wunderground/changelog.txt
+++ b/weather.wunderground/changelog.txt
@@ -1,3 +1,6 @@
+v3.0.5
+- fix crash due to api change
+
v3.0.4
- fixed wind was undefined in some cases
diff --git a/weather.wunderground/default.py b/weather.wunderground/default.py
index d998aea..2b77214 100644
--- a/weather.wunderground/default.py
+++ b/weather.wunderground/default.py
@@ -188,7 +188,7 @@ def parse_data(json):
def properties(data,loc,locid):
# standard properties
- weathercode = WEATHER_CODES[data['current_observation']['icon_url'][31:-4]]
+ weathercode =
WEATHER_CODES[os.path.splitext(os.path.basename(data['current_observation']['icon_url']))[0]]
set_property('Current.Location' , loc)
set_property('Current.Condition' ,
data['current_observation']['weather'])
set_property('Current.Temperature' ,
str(data['current_observation']['temp_c']))
@@ -201,7 +201,7 @@ def properties(data,loc,locid):
set_property('Current.OutlookIcon' , '%s.png' % weathercode) # xbmc
translates it to Current.ConditionIcon
set_property('Current.FanartCode' , weathercode)
for count, item in
enumerate(data['forecast']['simpleforecast']['forecastday']):
- weathercode = WEATHER_CODES[item['icon_url'][31:-4]]
+ weathercode =
WEATHER_CODES[os.path.splitext(os.path.basename(item['icon_url']))[0]]
set_property('Day%i.Title' % count, item['date']['weekday'])
set_property('Day%i.HighTemp' % count, str(item['high']['celsius']))
set_property('Day%i.LowTemp' % count, str(item['low']['celsius']))
@@ -307,7 +307,7 @@ def properties(data,loc,locid):
# daily properties
set_property('Daily.IsFetched', 'true')
for count, item in
enumerate(data['forecast']['simpleforecast']['forecastday']):
- weathercode = WEATHER_CODES[item['icon_url'][31:-4]]
+ weathercode =
WEATHER_CODES[os.path.splitext(os.path.basename(item['icon_url']))[0]]
set_property('Daily.%i.LongDay' % (count+1),
item['date']['weekday'])
set_property('Daily.%i.ShortDay' % (count+1),
item['date']['weekday_short'])
if DATEFORMAT[1] == 'd':
@@ -360,7 +360,7 @@ def properties(data,loc,locid):
count = 0
for item in data['forecast']['simpleforecast']['forecastday']:
if date(item['date']['year'], item['date']['month'],
item['date']['day']).isoweekday() in weekend:
- weathercode = WEATHER_CODES[item['icon_url'][31:-4]]
+ weathercode =
WEATHER_CODES[os.path.splitext(os.path.basename(item['icon_url']))[0]]
set_property('Weekend.%i.LongDay' % (count+1),
item['date']['weekday'])
set_property('Weekend.%i.ShortDay' % (count+1),
item['date']['weekday_short'])
if DATEFORMAT[1] == 'd':
@@ -434,7 +434,7 @@ def properties(data,loc,locid):
# 36 hour properties
set_property('36Hour.IsFetched', 'true')
for count, item in
enumerate(data['forecast']['txt_forecast']['forecastday']):
- weathercode = WEATHER_CODES[item['icon_url'][31:-4]]
+ weathercode =
WEATHER_CODES[os.path.splitext(os.path.basename(item['icon_url']))[0]]
if 'F' in TEMPUNIT:
try:
fcast = item['fcttext'].split('.')
@@ -480,7 +480,7 @@ def properties(data,loc,locid):
# hourly properties
set_property('Hourly.IsFetched', 'true')
for count, item in enumerate(data['hourly_forecast']):
- weathercode = WEATHER_CODES[item['icon_url'][31:-4]]
+ weathercode =
WEATHER_CODES[os.path.splitext(os.path.basename(item['icon_url']))[0]]
if TIMEFORMAT != '/':
set_property('Hourly.%i.Time' % (count+1),
item['FCTTIME']['civil'])
else:
diff --git a/weather.wunderground/resources/language/Croatian/strings.po
b/weather.wunderground/resources/language/Croatian/strings.po
index 90cfec7..8031b9f 100644
--- a/weather.wunderground/resources/language/Croatian/strings.po
+++ b/weather.wunderground/resources/language/Croatian/strings.po
@@ -66,7 +66,7 @@ msgstr "ID lokacije 3"
msgctxt "#32120"
msgid "Enable logging"
-msgstr "OmoguÄi prijave"
+msgstr "OmoguÄi zapisivanje"
msgctxt "#32121"
msgid "Weekend"
diff --git a/weather.wunderground/resources/language/French/strings.po
b/weather.wunderground/resources/language/French/strings.po
index c0764bd..c808a13 100644
--- a/weather.wunderground/resources/language/French/strings.po
+++ b/weather.wunderground/resources/language/French/strings.po
@@ -66,7 +66,7 @@ msgstr "Identifiant emplacement 3"
msgctxt "#32120"
msgid "Enable logging"
-msgstr "Activer le mode debug"
+msgstr "Activer la journalisation"
msgctxt "#32121"
msgid "Weekend"
diff --git a/weather.wunderground/resources/language/Russian/strings.po
b/weather.wunderground/resources/language/Russian/strings.po
index 0f3219d..e332d05 100644
--- a/weather.wunderground/resources/language/Russian/strings.po
+++ b/weather.wunderground/resources/language/Russian/strings.po
@@ -100,10 +100,22 @@ msgctxt "#32128"
msgid "Location 5"
msgstr "Ðоложение5"
+msgctxt "#32129"
+msgid "Location 4 display name"
+msgstr "Ðазвание меÑÑÐ¾Ð¿Ð¾Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ 4"
+
+msgctxt "#32130"
+msgid "Location 5 display name"
+msgstr "Ðазвание меÑÑÐ¾Ð¿Ð¾Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ 5"
+
msgctxt "#32131"
msgid "Location 4 id"
msgstr "Ðоложение 4 id"
+msgctxt "#32132"
+msgid "Location 5 id"
+msgstr "ID меÑÑÐ¾Ð¿Ð¾Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ 5"
+
msgctxt "#32501"
msgid "New Moon"
msgstr "ÐоволÑние"
-----------------------------------------------------------------------
Summary of changes:
weather.wunderground/addon.xml | 9 ++-
weather.wunderground/changelog.txt | 3 +
weather.wunderground/default.py | 12 ++--
.../resources/language/Croatian/strings.po | 2 +-
.../{Faroese => English (New Zealand)}/strings.po | 78 ++++++++++----------
.../resources/language/French/strings.po | 2 +-
.../resources/language/Russian/strings.po | 12 +++
7 files changed, 68 insertions(+), 50 deletions(-)
copy weather.wunderground/resources/language/{Faroese => English (New
Zealand)}/strings.po (69%)
hooks/post-receive
--
Scripts
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons