do things

This commit is contained in:
Schrottkatze 2024-09-26 19:15:58 +02:00
parent b4dfef1d6d
commit f903d1b45e
Signed by: schrottkatze
SSH key fingerprint: SHA256:hXb3t1vINBFCiDCmhRABHX5ocdbLiKyCdKI4HK2Rbbc
11 changed files with 47 additions and 26 deletions

View file

@ -26,7 +26,7 @@
)
(box
:halign "end"
(label :text "right")
(label :text "${iceData.speed}km/h")
)
)
(box
@ -42,3 +42,9 @@
)
)
)
(defpoll iceData
:interval "2s"
:initial ""
`(iw dev wlp4s0 link | grep "WIFIonICE" > /dev/null) && curl https://iceportal.de/api1/rs/status`
)

View file

@ -22,6 +22,7 @@
)
(box
(progress
:class { traveldings_data.live ? "traveldings_live" : "traveldings_disconnected" }
:value {traveldings_data.progress * 100}
:orientation "horizontal"
)
@ -29,20 +30,6 @@
)
)
(defwindow traveldingsWindow
:monitor 0
:stacking "overlay"
:exclusive "false"
:geometry (geometry
:x "0%"
:y "6.6%"
:width "30%"
:height "20%"
:anchor "bottom center")
(box
:class "traveldingsWindow"
(label :text "TODO"))
)
(deflisten traveldings_data
:initial "null"