Après de multiples tentatives, j'ai réussi en utilisant ces commandes :
Désactiver détection de mouvement :
curl "http://<IP>/setSystemMotion" -H "Host: <IP>" -H "Referer: http://<IP>/setSystemMotion" -H "Authorization: Basic <AuthCode>" -H "Connection: keep-alive" -H "Upgrade-Insecure-Requests: 1" --data "ReplySuccessPage=motion.htm&ReplyErrorPage=motion.htm&MotionDetectionEnable=0&MotionDetectionScheduleDay=127&ConfigSystemMotion=Save"
Activer détection de mouvement tout le temps :
curl "http://<IP>/setSystemMotion" -H "Host: <IP>" -H "Referer: http://<IP>/setSystemMotion" -H "Authorization: Basic <AuthCode>" -H "Connection: keep-alive" -H "Upgrade-Insecure-Requests: 1" --data "ReplySuccessPage=motion.htm&ReplyErrorPage=motion.htm&MotionDetectionEnable=0&MotionDetectionScheduleDay=127&ConfigSystemMotion=Save"
Activer détection de mouvement avec les paramètres suivants :
Horaire d'activité : Calendrier
Jour : Lun Mar Mer Jeu Ven Sam Dim
Début : 07:10:00
Fin : 18:50:00
Sensibilité : 70%
curl "http://<IP>/setSystemMotion" -H "Host: <IP>" -H "Referer: http://<IP>/setSystemMotion" -H "Authorization: Basic <AuthCode>" -H "Connection: keep-alive" -H "Upgrade-Insecure-Requests: 1" --data "ReplySuccessPage=motion.htm&ReplyErrorPage=motion.htm&MotionDetectionEnable=1&MotionDetectionScheduleDay=127&MotionDetectionScheduleMode=1&MotionDetectionScheduleTimeStart=07"%"3A10"%"3A00&MotionDetectionScheduleTimeStop=18"%"3A50"%"3A00&MotionDetectionSensitivity=70&ConfigSystemMotion=Save"
Tout cela a été possible en "nettoyant" les requêtes POST envoyées par mon navigateur (Firefox) lorsque je manipulais l'interface web de la caméra.
Partager