[Xfce4-commits] [panel-plugins/xfce4-weather-plugin] 01/03: Update http://api.yr.no URLs to https://api.met.no

noreply at xfce.org noreply at xfce.org
Wed Aug 31 22:01:38 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 ed692336446fe7b29c33cf03798236ad5744aa8a
Author: Harald Judt <h.judt at gmx.at>
Date:   Wed Aug 31 21:43:16 2016 +0200

    Update http://api.yr.no URLs to https://api.met.no
    
    https://www.slightfuture.com/devel/met-norway-api-endpoints
    
    Let's use the https protocol too, since libsoup supports it.
    This should improve security and privacy.
---
 panel-plugin/weather-parsers.c   | 2 +-
 panel-plugin/weather-translate.c | 2 +-
 panel-plugin/weather.c           | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/panel-plugin/weather-parsers.c b/panel-plugin/weather-parsers.c
index b5775db..74a05a6 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.1/schema for information
+ * Look at https://api.met.no/weatherapi/sunrise/1.1/schema for information
  * of elements and attributes to expect.
  */
 gboolean
diff --git a/panel-plugin/weather-translate.c b/panel-plugin/weather-translate.c
index 85ebeaa..65f8bb1 100644
--- a/panel-plugin/weather-translate.c
+++ b/panel-plugin/weather-translate.c
@@ -139,7 +139,7 @@ static const symbol_desc symbol_to_desc[] = {
  * try to match these with existing symbols, in order to be compatible
  * with existing icon themes and to maintain translation completeness.
  *
- * See http://api.met.no/weatherapi/weathericon/1.1/documentation
+ * See https://api.met.no/weatherapi/weathericon/1.1/documentation
  * for a list of symbols. For a list of symbols with descriptions,
  * see http://om.yr.no/forklaring/symbol.
  */
diff --git a/panel-plugin/weather.c b/panel-plugin/weather.c
index dc41cbf..8882135 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.1/?"
+        url = g_strdup_printf("https://api.met.no/weatherapi/sunrise/1.1/?"
                               "lat=%s;lon=%s;"
                               "from=%04d-%02d-%02d;"
                               "to=%04d-%02d-%02d",
@@ -646,7 +646,7 @@ update_handler(plugin_data *data)
 
         /* build url */
         url =
-            g_strdup_printf("http://api.yr.no/weatherapi"
+            g_strdup_printf("https://api.met.no/weatherapi"
                             "/locationforecastlts/1.2/?lat=%s;lon=%s;msl=%d",
                             data->lat, data->lon, data->msl);
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list