From 27882a88e7c8c105800f4ed1359008793e697865 Mon Sep 17 00:00:00 2001 From: Johannes Kamprad Date: Sat, 30 Apr 2022 00:50:43 +0200 Subject: [PATCH] Update openweather fix script to be more easy to understand --- .config/i3/scripts/openweather | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.config/i3/scripts/openweather b/.config/i3/scripts/openweather index ad1f8c7..c51f9d3 100644 --- a/.config/i3/scripts/openweather +++ b/.config/i3/scripts/openweather @@ -8,12 +8,12 @@ Aborting."; exit 1; } command -v wget >/dev/null 2>&1 || { echo >&2 "Program 'wget' required but is not installed. Aborting."; exit 1; } -APIKEY="get your key first" -#ZIPCODE="1234" -#CITY_ID="Get your City ID first" -#URL="http://api.openweathermap.org/data/2.5/weather?id=${CITY_ID}&units=metric&APPID=${APIKEY}" -LAT="Find out your position with your latitude" -LON="and longitude" +# To use this script you need to create an API key here https://home.openweathermap.org +# You need to put your Open Weather APIKEY here: +APIKEY="keykeykey" +# And get your Latitute and Longitudes to put in here: +LAT="XX.XXXX" +LON="XX.XXXX" URL="http://api.openweathermap.org/data/2.5/onecall?lat=${LAT}&lon=${LON}&units=metric&exclude=minutely,hourly,daily&APPID=${APIKEY}" WEATHER_RESPONSE=$(wget -qO- "${URL}")