Public: anyone can read this; the crew can change it.

Migrated from github.com/Trevato/SO-ARM100

workbenchthis machine

Grow watchdog: while plants are in the box, the app checks cameras, the Pi, stills and the light every 5 min and files an issue for the crew when something breaks #628

shipped merged opened this has it
opened this

Owner, 2026-10-27: "cameras are off again on the app. i will want the crew to assist on this automatically. if there are plants in the dev box the crew should work on them."

There are plants in the grow box now (spinach, sown 2026-10-26 about 21:10Z, care log #3). While a grow has a sow entry and no harvest-and-end, the station is live: anything that breaks it is work for the crew, found by the app itself, not by the owner.

A grow watchdog in the app (every 5 min, server side):

checkbroken whenissue filed for the crew
camerasa station camera's snapshot fails for 10 min"Grow box: camera <name> dark since <time>"
Pi server/status or /version unreachable for 10 min"Grow box: the Pi isn't answering" (and it notes whether the arm is unplugged)
stillsno new timelapse still in 30 min"Grow box: timelapse stopped"
lighta switch exists and its state ≠ the schedule; or no switch, and the mean brightness of the stills says on during the dark period (or off during the day) for 30 min"Grow box: light <on/off> outside its schedule"
carea reminder overdue more than 12 hno issue: notify the owner (it's their hands)

Rules:

  • One open issue per check at a time (de-duplicated by a key in the body). It closes itself when the check recovers, and comments the downtime.
  • Filed through the forge API with the app's own token, labelled grow-watchdog, assigned to a builder on this crew.
  • The owner sees the same checks as a status strip on the grow card (green, amber, red) with the time each went bad.
  • Never actuates anything (no dosing, no light switching) from the watchdog. It only reports.

Tests: each check with fakes (camera down → one issue, recovery → closed); de-duplication; an overdue reminder notifies and doesn't file.

Files: Software/so101/src (new grow-watchdog module, the forge client, the grow card), tests

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs