motioneye-project / motioneye

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

Motion detected push notification #2579

Open Saku241 opened 2 years ago

Saku241 commented 2 years ago

Hello ! I would like to know from scratch how can I make push notification on my phone with the picture taken from motion

Is it possible ? I would really like to know how Thx !

MichaIng commented 2 years ago

Many thanks for your request.

For a push notification, if you don't mean one send by browser while the motionEye web UI is opened, one would need a phone app and use a 3rd party service, e.g. Firebase Cloud Messaging. So I think this is out of our scope. But sending a push notification through the browser should work, while I'm not sure whether this is sufficient benefit.

Best replacement currently is the sendmail feature.

lowlyocean commented 2 years ago

@Saku241 I wonder if you can use webhook feature in motioneye to achieve "push notification" on your phone. I'm trying to do the same thing with a combination of endpoint in Node-RED and these Alexa nodes . Unfortunately the webhook feature seems to be broken as I reported in issue https://github.com/motioneye-project/motioneye/issues/2573

MichaIng commented 2 years ago

Webhook should work with development version: https://github.com/motioneye-project/motioneye/tree/dev#installation

Saku241 commented 2 years ago

I already achieve to get push notification with webhook and ifttt app but I was wondering to have a picture attached to the notification with the motion just like mail notification

MichaIng commented 2 years ago

Right, with the webhook feature no image can be transferred, unless you can do some custom scripting at the webhook server and images are uploaded to a server where the webhook has access to.