motioneye-project/motioneye

Sending notifications via Pushover

Offen

#2.089 geöffnet am 05.04.2021

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Python (636 Forks)batch import
help wantedquestiontroubleshooting

Repository-Metriken

Stars
 (3.533 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 16T 14h) (33 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide