How to send externalevent command from Domoticz to synology surveillance station?
Posted: Wednesday 03 January 2018 21:15
Hi all,
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.
I created a bash file with:
If I run the bash file, I get:
I think thismight be more a synology thing than a domoticz thing, but perhaps someone here knows how to solve this, and then it can be of value to others as well 
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}
