1
0
Fork 0

feat(eww): add weather widget

Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
Lucas Sta Maria 2024-01-29 00:00:09 -05:00
parent 7fb4d00fa2
commit e9cb27e509
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47

View file

@ -29,6 +29,7 @@
"scripts/songcardartist")
(defpoll songcard_button :interval "1s" "scripts/songcardplayrender")
(defpoll weather_text :interval "60s" "curl 'wttr.in/Boston?m&format=1'")
(defpoll wifi_label :interval "1s" "scripts/wifi")
(defpoll bluetooth_label :interval "1s" "scripts/bluetooth")
(defpoll volume_level :interval "1s" "scripts/volume")
@ -118,6 +119,7 @@
:space-evenly "false"
:spacing 10
(literal :content {autosus})
(weather)
(wifi)
(bluetooth)
(brightness)
@ -125,6 +127,10 @@
(power)
(timedate)))
;; Displays the current weather
(defwidget weather []
(label :text {weather_text}))
;; A widget that displays the current wifi SSID
(defwidget wifi []
(icon-module :icon "↑"