Update weather.sh
This commit is contained in:
parent
c5f9a1faee
commit
3bc692c204
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ api_key="a6c3cfde026d31b995612c6f169203a7"
|
|||
ipinfo_key="bd1acc5f04e870"
|
||||
user_ip=$(curl -s https://ifconfig.me/ip)
|
||||
|
||||
location_info=$(curl -s https://ipinfo.io/$user_ip?token=$ipinfo_key)
|
||||
location_info=$(curl -s "https://ipinfo.io/$user_ip?token=$ipinfo_key")
|
||||
lat=$(echo "$location_info" | jq -r '.loc' | cut -d ',' -f 1)
|
||||
lon=$(echo "$location_info" | jq -r '.loc' | cut -d ',' -f 2)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue