NA sees every campus; SSH from the admin laptop to every machine
Campuses set up from NA's install line tell NA where they are and learn nothing back (no campus ever shows another). NA alone reads each campus's key states every two seconds and keeps two pages in its Companion (added at the end, 98 and 99, since every other page is in use): CAMPUSES, a key per campus (its ALL key, purple when it stops answering), and CAMPUS, the tapped campus's status page drawn live in the same places, view only. Tried on NA with a test campus pointing at NA itself, then removed. tools/fleet.py: an Apple Remote Desktop command that turns on Remote Login, adds the laptop's key and reports each Mac to NA, and the laptop SSH shortcuts made from those reports (tried on NA Translation). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -260,6 +260,23 @@ device or MIDI link into its key). Never during the auto-fix hours or a recordin
|
||||
was there before and was taken off by someone is not added back (`discover-seen.json`). "Look now" adds what is new at
|
||||
once. Everything it makes is ordinary settings, changed on the page like North Attleboro's.
|
||||
|
||||
## Every campus on North Attleboro's deck (NA only)
|
||||
|
||||
Each campus set up from NA's install line tells NA's settings page where it is (`/api/campus/hello`) and learns
|
||||
nothing back: no campus ever shows another, and only NA (the hub: no "home" in `campuses.json`) does
|
||||
(`settings/campuses.py`). NA's settings page reads each campus's key states every two seconds (`/api/state`) and
|
||||
keeps two pages in NA's Companion, added at the end when no page is empty (today 98 and 99):
|
||||
|
||||
- **CAMPUSES (98):** one key per campus, its ALL key with its name ("WS / ALL OK"); purple "WS ?" when it stops answering. Tap NA: NA's status page. Tap another: the CAMPUS page showing it.
|
||||
- **CAMPUS (99):** the tapped campus's status page, same places, colours and words, live; view only (holds stay on that campus's own deck). Bottom-left goes back to CAMPUSES.
|
||||
|
||||
## SSH from the admin laptop to every machine
|
||||
|
||||
`python3 tools/fleet.py ard` prints a command for Apple Remote Desktop (Send UNIX Command, as root): on each Mac it
|
||||
turns Remote Login on, lets the logged-in user take the laptop's key (`~/.ssh/id_ed25519_waters`) and reports to
|
||||
NA's settings page (`/api/fleet/hello`). `python3 tools/fleet.py config` then writes `~/.ssh/config.d/waters`:
|
||||
`ssh na-translation`, `ssh ws-tracks`... A Mac where nobody is logged in is skipped (run it again later).
|
||||
|
||||
## One-time Companion setup
|
||||
|
||||
1. **Variables → Custom Variables:** add three variables. Leave the start values empty and "persist" off:
|
||||
|
||||
Reference in New Issue
Block a user