diff --git a/plugins/weather/openweather_ b/plugins/weather/openweather_ index 45b9610d..ea232028 100755 --- a/plugins/weather/openweather_ +++ b/plugins/weather/openweather_ @@ -18,12 +18,11 @@ # [openweather_*] # env.apikey XYZ -query_string=$(printf '%s' "${0#*_}" | tr '_' '=') +location=$(printf '%s' "${0#*_}" | tr '_' '=') +query_string="${location}&appid=${apikey}" plugin_name=$( basename $0 ) OWAPI=$( curl -s "http://api.openweathermap.org/data/2.5/weather?mode=xml&${query_string}") -# API returns temp in K, we have to convert it in C -# &units=metric would change that ;-) KELVIN_BIAS=273 CITY=$( expr "$OWAPI" : '.*\