New backup 2025-10-09 13:45:02
This commit is contained in:
parent
ed92060b26
commit
68c68da654
1 changed files with 12 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
(defpoll servers_status :initial '{"servers":[{"online": true,"kind":"Java","status":{"players":{"online":0,"max":0,"sample":null},"version":{"name":"version","protocol":0},"motd":"Message of the day","latency":0,"icon":""}}]}'
|
||||
:interval "21600s"
|
||||
'scripts/home/mcstatus')
|
||||
|
||||
(defvar reveal_mcstatus true)
|
||||
(defwidget mcstatus_revealer []
|
||||
(revealer-on-press
|
||||
|
@ -7,9 +11,14 @@
|
|||
:width 300
|
||||
:class "revealer-title"
|
||||
"Minecraft Servers ${reveal_mcstatus ? '' : ''}")
|
||||
(mcstatus)))
|
||||
(mcstatus :json servers_status)))
|
||||
|
||||
(defwidget mcstatus []
|
||||
(defwidget mcstatus [json]
|
||||
(box
|
||||
"test")
|
||||
(for server in json
|
||||
(label
|
||||
:text "${server.online}"
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue