Skip to content

Installer: Camera tab with the camera actions and the media list - #255

Merged
ThomasPohl merged 1 commit into
mainfrom
feature/installer-camera-tab
Nov 15, 2026
Merged

ThomasPohl merged 1 commit into
mainfrom
feature/installer-camera-tab

Conversation

@ThomasPohl

Copy link
Copy Markdown
Owner

The camera actions (#135) and camlist were only reachable through the command line of the installer. The advanced view gets a fifth tab, Camera (web/camera.js), that sends the same console commands:

  • Photo and video: photo, video start, video stop; the hub's answer (or its reason, such as busy (SESSION)) is shown at the top of the tab.
  • Recordings on the camera: camlist as a table (type, camera time as the camera's wall clock, folder/number, mediaId), newest first, with the counts. A failed or truncated list and an unreachable camera are said in words.
  • Delete per recording and Erase the camera's SD card: a dialog asks first (erasing wants the word "erase" typed); the page then sends the command, takes the code from the hub's answer and sends … confirm <code>. A deleted recording leaves the table once its action is done.
  • Actions: the queue of actions with state and reason, newest first; read after every request and when a camera session ends.

Also in this PR, because the tab needs it: sendLine() writes one line at a time. The dock's status right after connecting and a command of another script could both ask for the port's writer, and the second one threw.

The activity log no longer prints one line per recording of a camlist.

Stacked on #254.

Tested in headless Chrome with a simulated hub (1300×900 and 420×800): every button, the table, cancel and confirm of a deletion, the typed word for erasing, the action list, the disabled state without a connection. Not tested on hardware; the line formats are taken from the firmware source (media_list.cpp, action_queue.cpp, hub_console.cpp), and the camera actions themselves are untested on a camera so far (see docs/camera-actions.md).


Generated by Claude Code

Photo, video start/stop, the media list of 'camlist' as a table, delete per
recording, erase the camera's SD card (both behind a dialog, then the hub's
confirmation code) and the queue of 'actions'.

sendLine() now writes one line at a time: two scripts sending right after
connecting both asked for the port's writer and the second one threw.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Csa4N778M5kZxErLfAfd7D
@ThomasPohl
ThomasPohl changed the base branch from feature/installer-auto-reconnect to main November 15, 2026 06:58
@ThomasPohl
ThomasPohl merged commit 3d21311 into main Nov 15, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants