add basic clock functions (timer, alarm, date, current time)

This commit is contained in:
gabby committed 2026-10-05 05:30:15 +00:00
1 parent 780c9592ed
commit 07b0e2ff7e
28 files changed
+979 -8

No files matched your search

+9
View File
@@ -233,6 +233,15 @@ class DashboardHandler(BaseHTTPRequestHandler):
if path == "/api/approvals":
self._send(200, {"approvals": self.scheduler.pending_approvals()})
return
if path == "/api/timers":
self._send(
200,
{
"pending": self.scheduler.timers.pending(),
"fired": self.scheduler.timers.fired(),
},
)
return
self._send_error(404, "no such endpoint")
def do_POST(self):