motioneye-project / motioneye

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

URL to enable / disable Motion notifications ? #1223

Open Oliv59 opened 5 years ago

Oliv59 commented 5 years ago

Hello there,

Slightly different from the other topics i found, i don't want to enable or disable the motion detection, but just the detection notifications (email, and run a command). Of course, without losing all inside setup of those functionalities, to be able to reactivate them still by a simple URL calling, if that's possible ? Thanks, Olivier.

corvy commented 5 years ago

I wonder the same. I want to be able to enable "away" mode from Home Assistant for instance when there is no more movement in the living-room or the alarm is turned on then I want notifications on the camera to be enabled.

aredon commented 5 years ago

You'll have to write your own script for this. You could do a simple apache web page to toggle a file or a database entry to determine on or off.

Then have your end command script check before doing anything. Motioneye doesn't provide this functionality.

I have a home detection script I've been using on mine to turn motion detection on and off (and thus also notifications).

corvy commented 5 years ago

Yes I ended up using the same way, disable motion on motioneye but keep the camera doing motion detection over MQTT so I could continue to use the camera as a motion detection sensor even when turned off on motioneye.