From 8893cfa8a172ede6ad93d792bc62bf1790810f3c Mon Sep 17 00:00:00 2001 From: kaliko Date: Mon, 29 May 2017 13:50:38 +0200 Subject: [PATCH] Add missing apiid in URL --- plugins/weather/openweather_ | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/weather/openweather_ b/plugins/weather/openweather_ index 45b9610d..cce41ab5 100755 --- a/plugins/weather/openweather_ +++ b/plugins/weather/openweather_ @@ -16,9 +16,10 @@ ## From Oct 9 2015 OpenWeather needs you to register and get an APIKEY # include this key by setting 'env.apikey' in munin plugin config, i.e.: # [openweather_*] -# env.apikey XYZ +# env.owapikey XYZ query_string=$(printf '%s' "${0#*_}" | tr '_' '=') +query_string="$query_string&appid=$owapikey" plugin_name=$( basename $0 ) OWAPI=$( curl -s "http://api.openweathermap.org/data/2.5/weather?mode=xml&${query_string}")