motioneye-project / motioneyeos

A Video Surveillance OS For Single-board Computers
Other
7.85k stars 897 forks source link

Motion detection notification coming in despite gap set #1777

Open ForFizq opened 5 years ago

ForFizq commented 5 years ago

I have set up push notifications to pushbullet with a simple script.

!/bin/bash

API="KEY" MSG="MOTION"

curl -u $API: https://api.pushbullet.com/v2/pushes -d type=note -d title="MOTION DETECTED" -d body="$MSG"

This is saved as a pushover.py and i execute it from the motioneyeos interface as Run a command whenever a motion event is detected: /data/pushover.py

This works great. When I move in front of my camera, my phone immediately gets a notification and this is great.

The thing is that this camera will be mounted in my garage, which means that every time I go in there to work, or do something, I don't want notifications coming in constantly.

To avoid this I use the setting motion gap, and set it to a large number such as 600 seconds. In theory, this would mean that when motion is detected, I will get one notification, and only after 600 seconds of silence will any more motion result in another notification.

My problem is that I don't have this behavior, but instead when I stand in front of my camera (and dance, and do big movements), the notifications keep coming in a good pace. I get many notifications in a short time (5 notifications / minute)

This is driving me crazy, does anyone have any idea what could be happening ?

ForFizq commented 5 years ago

It looks like this behavior is only happening when I set a maximum movie length. For example 30seconds, and every time a new movie is created, the notification command will be triggered, despite the motion gap of 600 seconds.