dotfiles/de/home/.config/eww/modules/home/weather.yuck
2025-05-06 14:15:02 -07:00

16 lines
592 B
Text

(defpoll weather_status :initial "{'condition':'loading...','current_temp':'--','feels_temp':'--','min_temp':'--','max_temp':'--','humidity':'--','icon':' ','updated':'loading...'}"
:interval "3600s"
'scripts/home/hass_weather')
(defwidget weather [json]
(box
:class "weather"
:orientation "v"
:width 300
:height 125
:space-evenly true
"${json.condition} ${json.icon}"
"${json.current_temp}°F  / ${json.humidity}% "
" ${json.max_temp}°F  ${json.min_temp}°F"
(label
:text " ${json.updated}"
)))