[Xfce4-commits] [panel-plugins/xfce4-weather-plugin] 01/03: Update URL for sunrise API to point to version 1.1 (bug #12333)
noreply at xfce.org
noreply at xfce.org
Mon Apr 25 02:26:40 CEST 2016
This is an automated email from the git hooks/post-receive script.
hjudt pushed a commit to branch master
in repository panel-plugins/xfce4-weather-plugin.
commit cda7c86ebe8bae99351abb7ff331f79b2e104fcf
Author: Harald Judt <h.judt at gmx.at>
Date: Wed Apr 20 09:29:01 2016 +0200
Update URL for sunrise API to point to version 1.1 (bug #12333)
This is only a small part of the patch uploaded by ToZ. It restores
functionality of the current version while not introducing any new
translation strings. Additionally, this commits updates the link
in the README.
---
README | 2 +-
panel-plugin/weather-parsers.c | 2 +-
panel-plugin/weather.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/README b/README
index fa42f00..a71566e 100644
--- a/README
+++ b/README
@@ -93,7 +93,7 @@ left open by the former:
* Service-specific documentation
http://api.met.no/weatherapi/locationforecastlts/1.2/documentation
- http://api.yr.no/weatherapi/sunrise/1.0/documentation
+ http://api.yr.no/weatherapi/sunrise/1.1/documentation
For more technical details you might need to study the XML schema
corresponding to the document in question.
diff --git a/panel-plugin/weather-parsers.c b/panel-plugin/weather-parsers.c
index acd7cf9..b5775db 100644
--- a/panel-plugin/weather-parsers.c
+++ b/panel-plugin/weather-parsers.c
@@ -458,7 +458,7 @@ parse_astro_time(xmlNode *cur_node)
/*
- * Look at http://api.yr.no/weatherapi/sunrise/1.0/schema for information
+ * Look at http://api.yr.no/weatherapi/sunrise/1.1/schema for information
* of elements and attributes to expect.
*/
gboolean
diff --git a/panel-plugin/weather.c b/panel-plugin/weather.c
index 4de36e3..dc41cbf 100644
--- a/panel-plugin/weather.c
+++ b/panel-plugin/weather.c
@@ -619,7 +619,7 @@ update_handler(plugin_data *data)
end_tm = *localtime(&end_t);
/* build url */
- url = g_strdup_printf("http://api.yr.no/weatherapi/sunrise/1.0/?"
+ url = g_strdup_printf("http://api.yr.no/weatherapi/sunrise/1.1/?"
"lat=%s;lon=%s;"
"from=%04d-%02d-%02d;"
"to=%04d-%02d-%02d",
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list