New backup 2024-04-24 14:00:02
This commit is contained in:
parent
31b04e3b3c
commit
496b0e2142
1 changed files with 3 additions and 2 deletions
|
@ -7,8 +7,9 @@ current_f=$( jq -r '.current_condition.[].FeelsLikeF' <<< ${jweather} )
|
|||
high_f=$( jq -r '.weather.[0].maxtempF' <<< ${jweather} )
|
||||
low_f=$( jq -r '.weather.[0].mintempF' <<< ${jweather} )
|
||||
weather_desc=$( jq -r '.current_condition.[].weatherDesc.[].value' <<< ${jweather} )
|
||||
for d in 1..5;do
|
||||
date -d $( jq -r ".weather.[$d].date" <<< ${jweather} ) +'%A'
|
||||
for d in {1..2};do
|
||||
date -d $( jq -r --argjson d ${d} '.weather.[$d].date' <<< ${jweather} ) +'%A'
|
||||
# date -d $( jq -r ".weather.[$d].date" <<< ${jweather} )
|
||||
done
|
||||
|
||||
notify-send "Current: ${current_f}°F ${weather_desc}
|
||||
|
|
Loading…
Add table
Reference in a new issue