dotfiles/de/home/.config/eww/modules/widgets/weather.yuck
2025-03-12 22:30:02 -07:00

13 lines
498 B
Text

(defpoll weather_status :interval "3600s"
'scripts/widgets/weather')
(defwidget weather [json]
(box
:class "weather"
:orientation "v"
:width 300
:height 125
:space-evenly true
"Eugene, OR | ${json.current_condition[0].weatherDesc[0].value}"
"${json.current_condition[0].temp_F}°F (feels like ${json.current_condition[0].FeelsLikeF}°F)"
"${json.weather[0].mintempF}°F / ${json.weather[0].maxtempF}°F"
"${json.current_condition[0].humidity}% humidity"))