[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Pkg-xfce-devel] Bug#536289: Bug#536289: xfce4-weather-plugin 0.6.2-1 fails to get the weather from weather.com



Yves-Alexis Perez wrote...

> Yes. The thing is, the patch to include API key is too heavy for a
> stable update.

Do you really think a patch like


diff --git a/panel-plugin/weather.c b/panel-plugin/weather.c
index 75c3d3c..0eb9487 100644
--- a/panel-plugin/weather.c
+++ b/panel-plugin/weather.c
@@ -338,9 +338,10 @@ update_weatherdata (xfceweather_data *data)
     }
 
   /* build url */
-  url = g_strdup_printf ("/weather/local/%s?cc=*&dayf=%d&unit=%c",
+  url = g_strdup_printf ("/weather/local/%s?cc=*&dayf=%d&unit=%c&link=xoap&prod=xoap&par=%s&key=%s",
                          data->location_code, XML_WEATHER_DAYF_N,
-                         data->unit == METRIC ? 'm' : 'i');
+                         data->unit == METRIC ? 'm' : 'i',
+			 PARTNER_ID, LICENSE_KEY);
 
   /* start receive thread */
   weather_http_receive_data ("xoap.weather.com", url, data->proxy_host,
diff --git a/panel-plugin/weather.h b/panel-plugin/weather.h
index ef85749..f0adb47 100644
--- a/panel-plugin/weather.h
+++ b/panel-plugin/weather.h
@@ -22,6 +22,8 @@
 
 #include <libxfce4panel/xfce-panel-plugin.h>
 #include <libxfce4util/libxfce4util.h>
+#define PARTNER_ID       "1121946239"
+#define LICENSE_KEY      "3c4cd39ee5dec84f"
 
 G_BEGIN_DECLS
 

is too intrusive for a lenny point release?  That'd be rather sad.

    Christoph

For the records: Works for me.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-xfce-devel/attachments/20090710/586d550c/attachment.pgp>



Reply to: