13 lines
402 B
Bash
Executable file
13 lines
402 B
Bash
Executable file
#!/bin/bash
|
|
|
|
jweather=$( curl wttr.in/?format=j1 )
|
|
|
|
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} )
|
|
|
|
notify-send "${current_f}°F ${weather_desc}
|
|
High: ${high_f}
|
|
Low: ${low_f}
|
|
"
|