chore: move key out of file

This commit is contained in:
Fabio Lenherr / DashieTM 2023-01-03 01:39:29 +01:00
parent 584e4f31cc
commit eb58378707

View file

@ -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