13 lines
498 B
Text
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"))
|