From 0eb1c09dfef041d18f417697a0818db612ff559a Mon Sep 17 00:00:00 2001 From: Jens Lody Date: Thu, 17 Oct 2013 17:43:37 +0200 Subject: [PATCH] (Hopefully) use correct values for condidtion-code; !Yahoo's weater-api description is obviously wrong --- src/extension.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/extension.js b/src/extension.js index 9a5ec69..98df1c6 100644 --- a/src/extension.js +++ b/src/extension.js @@ -744,7 +744,10 @@ const WeatherMenuButton = new Lang.Class({ // scattered thunderstorms return ['weather-storm']; case 39: + // The API-description differs from the use by !Yahoo, see: // http://developer.yahoo.com/forum/YDN-Documentation/Yahoo-Weather-API-Wrong-Condition-Code/1290534174000-1122fc3d-da6d-34a2-9fb9-d0863e6c5bc6 + // guessed as isolated showers + return ['weather-showers-isolated', 'weather-showers']; case 40: // scattered showers return ['weather-showers-scattered', 'weather-showers']; @@ -903,10 +906,13 @@ const WeatherMenuButton = new Lang.Class({ // isolated thunderstorms return _('Isolated thunderstorms'); case 38: - // scattered thunderstorms - case 39: // scattered thunderstorms return _('Scattered thunderstorms'); + case 39: + // The API-description differs from the use by !Yahoo, see: + // http://developer.yahoo.com/forum/YDN-Documentation/Yahoo-Weather-API-Wrong-Condition-Code/1290534174000-1122fc3d-da6d-34a2-9fb9-d0863e6c5bc6 + // guessed as isolated showers + return _('Isolated showers'); case 40: // scattered showers return _('Scattered showers');