chore: move key out of file
This commit is contained in:
parent
584e4f31cc
commit
eb58378707
1 changed files with 2 additions and 2 deletions
|
|
@ -15,8 +15,8 @@ fi
|
||||||
# If you dunno, head to openweathermap.org, and make and account
|
# 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)
|
#(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
|
# I wish I was smart enough to do it like Elena, but this is the top I could do lol
|
||||||
KEY="{key}"
|
KEY=$(cat $HOME/.ssh/weather-key)
|
||||||
ID="{location}"
|
ID=$(cat $HOME/.ssh/location)
|
||||||
UNIT="{metric}" #Options are 'metric' and 'imperial'
|
UNIT="{metric}" #Options are 'metric' and 'imperial'
|
||||||
weather=$(curl -sf "http://api.openweathermap.org/data/2.5/weather?APPID="$KEY"&q="$ID"&units="$UNIT"")
|
weather=$(curl -sf "http://api.openweathermap.org/data/2.5/weather?APPID="$KEY"&q="$ID"&units="$UNIT"")
|
||||||
#echo $weather
|
#echo $weather
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue