15 lines
456 B
Text
15 lines
456 B
Text
(defpoll weather_status :initial "{}"
|
|
:interval "3600s"
|
|
'scripts/widgets/weather')
|
|
(defwidget weather [json]
|
|
(box
|
|
:class "weather"
|
|
:orientation "v"
|
|
:width 300
|
|
:height 125
|
|
:space-evenly true
|
|
"Eugene, OR | ${json.condition}"
|
|
"${json.current_temp}°F (feels like ${json.feels_temp}°F)"
|
|
"${json.min_temp}°F / ${json.max_temp}°F"
|
|
"${json.humidity}% humidity"
|
|
"Updated: ${json.updated}"))
|