J'utilise des cameras Yi ants xiaomi. J'ai activé les rtsp avec le hack > https://github.com/fritz-smh/yi-hack
Le flux vidéo marche nickel.
Le hack permet d'avoir une retour via un get sur une URL lorsque le motion a enregistré une vidéo.
j'ai donc testé quelques commandes mais rien ne fonctionneknow if a motion have been detected in the last minute, you can check the url http://ip/motion (GET). It can give :
when no motion is detected : an empty content
when motion is detected : a file path to the video file from the root of the http server
Code : Tout sélectionner
curl -i -su login:pass -H "Accept: application/json" -X GET http://192.168.1.110/motion
Code : Tout sélectionner
HTTP/1.1 200 Ok
Server:
Date: Thu, 15 Mar 2018 12:05:11 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 1
Last-Modified: Tue, 01 Jan 1980 00:00:00 GMT
Connection: close
Merci