Token TV Clock Operations
- Type: Runbook
- Status: Current
- Scope: Vega's Token TV service and SmallTV-Ultra clock
- Canonical sources:
modules/services/token-tv.nix;hosts/vega/default.nix;modules/services/backrest.nix; pinned token-tv.nix module and transport; hardware issue #267- Last verified: Source commit
fba6c2f6a69eb87f0a209073b2604dcbbb6dd7e3(2026-10-14); installed CLI help and original-settings backup presence checked read-only on Vega; restore/restart commands were not executed for documentation- Review triggers: Clock address/reservation or firmware changes; Token TV input, service options, state/config paths, credentials or restore API changes
The clock has a user-confirmed DHCP reservation at 192.168.8.139. Vega
publishes the LCARS image; its dashboard is http://10.10.0.2:8787 on Nebula.
An address change only needs a config edit and service restart. No firmware
change or NixOS rebuild is needed.
Address change or service restart
Run these steps on Vega as nimmo (connect with ssh vega). Edit
~/.config/token-tv/config.json and set device_url to the clock's URL,
currently http://192.168.8.139. Keep device_api set to "ultra" for this
stock SmallTV-Ultra clock, and preserve the existing account configuration.
sudo systemctl restart token-tv
systemctl is-active token-tv
Check the Nebula dashboard and confirm the physical clock receives an updated LCARS frame. If repeated failures have exhausted the three-start/five-minute limit, correct the configuration, then run:
sudo systemctl reset-failed token-tv
sudo systemctl restart token-tv
For diagnosis, use journalctl -u token-tv -n 30 --no-pager. A missing config
or clock URL skips startup; malformed/unreadable JSON fails it. Undo an
incorrect URL edit and restart to recover from an address-change mistake.
Reinstalling or replacing the serving computer
Restore the NixOS service configuration, the user's
~/.config/token-tv/config.json, and /var/lib/token-tv. The state directory
is included in Vega's service-data backup paths and contains
display-original.json, the original clock album settings. Preserve ownership
by the service user and mode 0700 on the state directory. Re-establish Codex
and Antigravity logins and the OpenCode Go credential through their existing
CLI/SOPS mechanisms; Token TV's config contains account metadata, not provider
secrets. Follow Backup Verification and Partial Restore
for restoring files, then use the restart and frame checks above. Configure
the new serving host's network access explicitly if moving away from Vega, and
stop the old publisher before starting another host against the same clock.
Returning to the previous photo display
Stop the publisher before restoring, so it cannot immediately overwrite the restored album settings. On Vega, as the service user:
sudo systemctl stop token-tv
token-tv run --config ~/.config/token-tv/config.json --state-dir /var/lib/token-tv --restore-display
This restores the saved album settings from display-original.json. Existing
album photos are preserved by the Ultra adapter. Select the previous theme
and image manually in the clock web UI at http://192.168.8.139: this firmware
has no confirmed read API for backing up that selection. Confirm the desired
photo/theme is visible. Leave Token TV stopped while using the former display;
a normal service stop does not disable startup at the next boot. Restart the
service when you want LCARS publishing again.