mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-09 22:19:45 +00:00
Added weather module
This commit is contained in:
parent
7026bc81aa
commit
08e1dfabba
1 changed files with 7 additions and 1 deletions
|
@ -4,7 +4,13 @@
|
|||
|
||||
get_weather()
|
||||
{
|
||||
LOCATION=$(geolocate)
|
||||
LOCATION=$(curl -s http://ip-api.com/json | \
|
||||
jq '.lat, .lon' | \
|
||||
while read -r LATITUDE; do
|
||||
read -r LONGITUDE
|
||||
echo "${LATITUDE}:${LONGITUDE}" | tr -d '"'
|
||||
done)
|
||||
|
||||
LANG="en"
|
||||
UNITS="Metric"
|
||||
API_KEY="756edce7e9d4c385ef9499a53492678c"
|
||||
|
|
Loading…
Reference in a new issue