Skip to content

Record eufy battery cameras only while motion is reported - #2

Open
danielehrhardt wants to merge 1 commit into
mainfrom
feat/eufy-event-recording
Open

danielehrhardt wants to merge 1 commit into
mainfrom
feat/eufy-event-recording

Conversation

@danielehrhardt

Copy link
Copy Markdown
Contributor

What

eufy battery and solar cameras in "Motion only" mode no longer keep the stream open around the clock. The recorder starts when eufy reports motion (motion, person, vehicle, pet, doorbell), keeps running until 20 s without a new event (3 min cap per clip) and stops again. The clip is kept and uploaded to the configured storage targets like any other motion recording.

Before this change, "Motion only" pulled the stream permanently and only threw away segments without motion, which keeps a battery camera awake all day.

Details

  • recordsOnEvent(camera) in cameras.ts: eufy + motion mode.
  • App.syncRecorder() leaves those cameras out of the recorder unless a clip is in progress; onEufyMotion starts and ends the clip.
  • Web UI: the recording mode descriptions for eufy cameras say what each mode does to the battery.
  • Test for recordsOnEvent; bun run typecheck and bun test (73) pass.

Tested

On a SoloCam S340: continuous test clip (68 s) recorded and uploaded to Google Drive; in motion mode the recorder stays idle with no ffmpeg process until an event arrives.

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