feat(status): a status page, for the phone of whoever looks after the box

Is the box up, and speech, and the brain; how many conversations,
turns, IR presses, and looks, today and all time. Counts and times
only: no transcripts.

- status/status.js: what the events and checks add up to, and the page
- status/status-server.js: the page, the box's events and heartbeat,
  and a TCP check of each part every 30 s; events kept in a file
- status/pdtv26-status.service and Makefile: sudo make install on the
  home server, answering only the private network
- checks: status (its tests)

Generated-by: Claude Opus 5.5
This commit is contained in:
dckc committed 2026-12-02 18:57:08 -06:00
1 parent 5cbea49349
commit 9b85deca8f
8 files changed
+517

No files matched your search

+2
View File
@@ -43,6 +43,7 @@
earcons = pkgs.callPackage ./box/earcons.nix { };
brain = pkgs.callPackage ./brain/brain.nix { src = self; };
brain-js = pkgs.callPackage ./brain/default.nix { };
status = pkgs.callPackage ./status/default.nix { };
});
# nix develop --command make test
@@ -63,6 +64,7 @@
brain-js = self.packages.${pkgs.stdenv.hostPlatform.system}.brain-js;
# The channel, its unit, and its instructions, put together.
brain = self.packages.${pkgs.stdenv.hostPlatform.system}.brain;
status = self.packages.${pkgs.stdenv.hostPlatform.system}.status;
# Doctests, and pyflakes for the names doctests don't reach.
box-py = pkgs.runCommand "box-py-doctests" { nativeBuildInputs = [ (python pkgs) ]; } ''
cd ${./box/body}