[Xfce4-commits] <xfce4-weather-plugin:master> Use yr.no api. may be good?
Colin Leroy
noreply at xfce.org
Wed Nov 16 22:34:02 CET 2011
Updating branch refs/heads/master
to 74d870f5e7445622acdc3eafae39fa7f12acf123 (commit)
from d776b317fd3b6523490ecc2159d693485d69c01c (commit)
commit 74d870f5e7445622acdc3eafae39fa7f12acf123
Author: Colin Leroy <colin at marv.colino.net>
Date: Mon Nov 14 23:20:14 2011 +0100
Use yr.no api. may be good?
panel-plugin/weather.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/panel-plugin/weather.c b/panel-plugin/weather.c
index cc5aa24..678536e 100644
--- a/panel-plugin/weather.c
+++ b/panel-plugin/weather.c
@@ -377,13 +377,11 @@ update_weatherdata (xfceweather_data *data)
}
/* build url */
- url = g_strdup_printf ("/weather/local/%s?cc=*&dayf=%d&unit=%c&link=xoap&prod=xoap&par=%s&key=%s",
- "FIXME", XML_WEATHER_DAYF_N,
- data->unit == METRIC ? 'm' : 'i',
- PARTNER_ID, LICENSE_KEY);
+ url = g_strdup_printf ("/weatherapi/locationforecastlts/1.1/?lat=%s;lon=%s",
+ data->lat, data->lon);
/* start receive thread */
- weather_http_receive_data ("xoap.weather.com", url, data->proxy_host,
+ weather_http_receive_data ("api.yr.no", url, data->proxy_host,
data->proxy_port, cb_update, data);
/* cleanup */
More information about the Xfce4-commits
mailing list