I would like a snapshot to be taken by the Synology surveillance station, when a button is pressed in domoticz. I followed the instructions in the surveillance station and the command line I need to use is automatically generated.
Code: Select all
https://192.168.1.100:5001/webapi/entry.cgi?api=SYNO.SurveillanceStation.ExternalEvent&method="Trigger"&version=1&eventId=1&eventName="This is external event1"&account="{account}"&password="{password}"
Code: Select all
#!/bin/bash
curl -k https://192.168.1.100:5001/webapi/entry.cgi?api=SYNO.SurveillanceStation.ExternalEvent&method="Trigger"&version=1&eventId=1&eventName="This is external event1"&account="xxx"&password="xxx"
Code: Select all
{"error":{"code":101},"success":false}
