diff --git a/eww_desktop/scripts/weather b/eww_desktop/scripts/weather index 35b5ac5..a835246 100755 --- a/eww_desktop/scripts/weather +++ b/eww_desktop/scripts/weather @@ -15,8 +15,8 @@ fi # If you dunno, head to openweathermap.org, and make and account #(completely free I swear, and then get your API Key and your City ID) # I wish I was smart enough to do it like Elena, but this is the top I could do lol -KEY="{key}" -ID="{location}" +KEY=$(cat $HOME/.ssh/weather-key) +ID=$(cat $HOME/.ssh/location) UNIT="{metric}" #Options are 'metric' and 'imperial' weather=$(curl -sf "http://api.openweathermap.org/data/2.5/weather?APPID="$KEY"&q="$ID"&units="$UNIT"") #echo $weather