buildroot-camera-rpi icon indicating copy to clipboard operation
buildroot-camera-rpi copied to clipboard

ssh + motion detection

Open leonardpitzu opened this issue 7 years ago • 11 comments

not really a bug but a feature request - can you add (even if you don't build it but i will) ssh and motion detection via "motion"? i would do it but my know how is limited to routers and similar things (openwrt/lede - still buildroot but you're definetly faster at this than i am)

leonardpitzu avatar Dec 04 '17 18:12 leonardpitzu

i think i figured it out - have no idea though how to integrate motion into the game (aka homekit + motion detected shot pics)

leonardpitzu avatar Dec 04 '17 19:12 leonardpitzu

this might help. The trick is to create a plugin that exposes a motion sensor to homekit. If you put that in the same room as the camera it will show notifications with a current snapshot.

I use the hue motion sensor. I found software detection (i.e. motion) to cause too many false positives.

ssh is not added by default for security reasons.

moritzmhmk avatar Dec 06 '17 19:12 moritzmhmk

I have an issue which i also checked against your released image. Upon first booting the pi zero I can successfully pair it with HomeKit and all works as expected. If I do a power cycle it can’t detect the board any more and I have to reflag in order to get it to repair... any tips on how to debug it?

leonardpitzu avatar Dec 11 '17 20:12 leonardpitzu

Solved, dead sdcard. Never had such behavior due to dead sdcards...

leonardpitzu avatar Dec 12 '17 05:12 leonardpitzu

2leonardpitzu, can you tell me what did you do to use motion and how you paired it with HomeKit?

alexsalex avatar Jan 29 '18 23:01 alexsalex

took the buildroot, added motion and motioneye to it and a few plugins. it works as follows: motion connects to the camera and is responsible for motion detection. When motion is detected, motion (the app) saves a picture. Using homebridge plugins i've configured 2 things. First i capture the live stream motion (the app) delivers and issue notifications when a picture is saved. Given the limited powers of the pi zero i either miss detecting motion or live stream video at a decent resolution. So as i can't have both i skipped the project for now (also due to few spare time available for this) and am searching for a better solution.

leonardpitzu avatar Feb 07 '18 09:02 leonardpitzu

+1 on enabling ssh (or at least providing instructions for modifying the image for ssh access). Thanks for the built version; couldn't get ffmpeg installed on Rasbian Stretch (Desktop or Lite) on a Pi Zero W.

jeffvautin avatar Apr 15 '18 21:04 jeffvautin

for ssh it's very easy - follow the steps and after running make xconfig just enable ssh. Continue with the rest of the steps and in the end the image will have ssh.

leonardpitzu avatar Apr 16 '18 08:04 leonardpitzu

for ssh it's very easy - follow the steps and after running make xconfig just enable ssh. Continue with the rest of the steps and in the end the image will have ssh.

i have installed the latest img and it works! where can i activate the ssh?

cima37 avatar Aug 20 '19 02:08 cima37

Tried with placing an empty "ssh" file in the root of the boot volume. Without success. Andy idea?

andiweli avatar May 02 '21 14:05 andiweli

for ssh it's very easy - follow the steps and after running make xconfig just enable ssh. Continue with the rest of the steps and in the end the image will have ssh.

How did you enable SSH?

andiweli avatar May 02 '21 15:05 andiweli