How to send externalevent command from Domoticz to synology surveillance station?

All kinds of 'OS' scripts
Post Reply
Jumper3126
Posts: 64
Joined: Thursday 31 December 2015 16:26
Target OS: Raspberry Pi
Domoticz version:
Contact:

How to send externalevent command from Domoticz to synology surveillance station?

Post by Jumper3126 » Wednesday 03 January 2018 22: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.

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}"
I created a bash file with:

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"
If I run the bash file, I get:

Code: Select all

{"error":{"code":101},"success":false}
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 :)

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests