Skip to content

Motion events: tell the cloud when majestic sees movement, with frames - #3

Merged
keyldev merged 1 commit into
masterfrom
feat/motion-events
Oct 14, 2026
Merged

keyldev merged 1 commit into
masterfrom
feat/motion-events

Conversation

@keyldev

@keyldev keyldev commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator
  • Installs /usr/sbin/motion.sh, which only wakes the agent (SIGUSR1, pid checked against /proc//cmdline); a hook that was already there is kept and still called
  • Hook calls become episodes, posted signed to POST /nodes/{id}/events with a key derived from the device key and the coordinator's eventKey
  • When the cloud asks for frames, sends one a second from majestic's local /image.jpg until told to stop; cerberus snapshot and cerberus motion to check by hand
  • uninstall/clean put the original hook back; READMEs and the test suite cover it

- Installs /usr/sbin/motion.sh, which only wakes the agent (SIGUSR1, pid checked
  against /proc/<pid>/cmdline); a hook that was already there is kept and still called
- Hook calls become episodes, posted signed to POST /nodes/{id}/events with a key
  derived from the device key and the coordinator's eventKey
- When the cloud asks for frames, sends one a second from majestic's local
  /image.jpg until told to stop; `cerberus snapshot` and `cerberus motion` to check by hand
- uninstall/clean put the original hook back; READMEs and the test suite cover it
@keyldev
keyldev merged commit 7bbe772 into master Oct 14, 2026
7 checks passed
@keyldev
keyldev deleted the feat/motion-events branch October 14, 2026 15:12
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.

1 participant