motioneye-project/motioneye

Sending notifications via Pushover

Aperta

#2089 aperta il 5 apr 2021

 (1 commento) (0 reazioni) (0 assegnatari)Python (636 fork)batch import
help wantedquestiontroubleshooting

Metriche repository

Star
 (3533 stelle)
Metriche merge PR
 (Merge medio 16g 14h) (33 PR mergiate in 30 g)

Descrizione

motionEye version 0.42.1 Motion version 4.2.2

There is the following misunderstanding. When notifications is sending about motion detection, I use the following script

#! / usr / bin / python import sys, requests r = requests.post ("https://api.pushover.net/1/messages.json", data = {"token": "token", "user": "user", "message": "Motion detected!"}, files = {" attachment ": open (sys.argv [1]," rb ")})

It works when called from terminal (python pushover.py ) and notification comes But when used in a motionEye nothing happens

Guida contributor