motioneye-project / motioneye

A web frontend for the motion daemon.
GNU General Public License v3.0
3.99k stars 655 forks source link

External motion trigger #235

Open Redferne opened 8 years ago

Redferne commented 8 years ago

Would like to request this feature for a http request and/or trigger file. So that we can get a doorbell to automatically capture the visitor.

ryanhoetger commented 8 years ago

+1 I'm currently looking for a way to easily do this as a poor man's Ring

chrisf4lc0n commented 7 years ago

OK guys bare with me on that one:

  1. You need to have enabled Still Images.
  2. Make Images File Name: Images/%T%d-%m-%y
  3. Install ssmtp and configure it. (just Google it).
  4. Install mpack. (Google it again).
  5. To you doorbell activating script you will need to add the following:
    d=`date +%d-%m-%y`
    t=`date +%T
    mpack -s "Somebody is at the door" /PATH/TO/YOUR/Images/$t$d.jpg your@email

    That script assumes that there will be motion detected prior and during pressing the doorbell button! EDIT: Just make sure the recording is set for at least 10 seconds before and after the motion gets detected. EDIT 2: Only possible with motion installed on another system like Raspbian, otherwise look https://github.com/ccrisan/motioneye/issues/366

chrisf4lc0n commented 7 years ago

You can also refer to: https://github.com/ccrisan/motioneye/issues/94

jorgekramer commented 6 years ago

Returning to the initial issue:

I would like to trigger a snapshot via http-request (and then download the still-image to display it in my Home-Automation-System (FHEM)). Is there a way to do this?

ccrisan commented 6 years ago

@jorgekramer you could simply use the Snapshot URL.

xxorde commented 5 years ago

@jorgekramer you could simply use the Snapshot URL.

@ccrisan I see its possible to get a still image via the Snapshot URL. But like @Redferne I need to trigger motioneye to take a snapshot, like a virtual push on the snapshot button. Than the image is saved by motioneye.

I have a doorbell (doorbird) and it can send an http(s) request whenever someone rings the bell or motion is detected. It would be great if I could give it an API-URL that than triggers a snapshot or recording.

Is there such an URL already? Maybe we can use the manual snapshot function (action = 'record_start';). If not, would it be a lot of work to implement?

salzrat commented 8 months ago

I have the same situation. Actually I would really love to get the Doorbird motion sensor to trigger a video recording. The motioneye internal motion detection is just too hard to get working reliably, as it relies on image data alone. The Doorbird has a hardware motion detector so that would work much better...