Synology Surveillance Station Web API : Start or stop recording of a camera with the HTTP request method
Hello,
I use a Synology Surveillance Station (DS212+) to record the video of my
camera.
With the Web API of the Surveillance Station, we can start or stop
recording of a camera.
So, with my zipabox and the rule creator (HTTP request), I want call this
API but it's doesn't work. The first auth request is ok (check in the synology
log) but the second request to start or stop the record, doesn't work.
I use 2 brick HTTP request in the rule creator of the zipabox :
- the first, for the authentification
- the second, to start or stop recording of a camera.
Important information : when I use this 2 requests in a browser (IE or
Chrome), it works !
The zipabox does not seem to keep the HTTP session open between the two
requests.
Can you help me solve this problem?
Web API doc : http://download.synology.com/download/ds/userguide/Synology_Surveillance_Station_Web_API_v0.12.pdf
Start or stop recording of a camera :http://192.168.xx:xx:5000/webapi/auth.cgi?api=SYNO.API.Auth&method=Login&version=2&account=xxxx&passwd=xxxxx&session=SurveillanceStation&format=cookie
thanks,
Jerome
Use &format=sid and set the sid in the other request.
Use &format=sid and set the sid in the other request.
I've a synology too but not i don't use yet.
Not a solution but a workaround, it's creating PHP on you NAS (with paramters etc..) that do what you want and use only on HTTP REQUEST from zipabox . . .
I've a synology too but not i don't use yet.
Not a solution but a workaround, it's creating PHP on you NAS (with paramters etc..) that do what you want and use only on HTTP REQUEST from zipabox . . .
This works for me :
https://cloud.abcdef.com:5001/webapi/auth.cgi?api=SYNO.API.Auth&method=Login&version=2&account=admin&passwd=12345678&session=SurveillanceStation&format=sid
The response from the above request includes the "sid".
Next query (example) :
https://cloud.abcdef.com:5001/webapi/SurveillanceStation/camera.cgi?api=SYNO.SurveillanceStation.Camera&method=List&version=1&_sid=a1b2c3d4e5f6"
Notes :
_ the port 5001 is the https external port, i.e. firewall forwards port 443 to port 5001 on the Synology.
_ I couldn't make it work using an IP address, that name is based on the setup of my box. You might need to add a DNS A record entry for the FQDN of your Synology.
This works for me :
https://cloud.abcdef.com:5001/webapi/auth.cgi?api=SYNO.API.Auth&method=Login&version=2&account=admin&passwd=12345678&session=SurveillanceStation&format=sid
The response from the above request includes the "sid".
Next query (example) :
https://cloud.abcdef.com:5001/webapi/SurveillanceStation/camera.cgi?api=SYNO.SurveillanceStation.Camera&method=List&version=1&_sid=a1b2c3d4e5f6"
Notes :
_ the port 5001 is the https external port, i.e. firewall forwards port 443 to port 5001 on the Synology.
_ I couldn't make it work using an IP address, that name is based on the setup of my box. You might need to add a DNS A record entry for the FQDN of your Synology.
of course it works manually. But how do you do with the zipabox rules ?
with zipabox, How to retrieve the SID and include it in the second request ?
of course it works manually. But how do you do with the zipabox rules ?
with zipabox, How to retrieve the SID and include it in the second request ?
I found a workaround using a php script hosted on the nas. The zipabox launches HTTP request to execute the script and start recording.
I found a workaround using a php script hosted on the nas. The zipabox launches HTTP request to execute the script and start recording.
Hi Jerome,
I did exactly the same : 2 scripts (cam_on.php and cam_off.php) hosted in the web folder of the Syno to handle the cookie (crap).
Combined to a virtual device on the zipabox, it works like a charm.
Have you tried to catch motion detection events from SurveillanceStation to push them on a virtual sensor on the zipabox ?
Regards,
Bad Wolf
Hi Jerome,
I did exactly the same : 2 scripts (cam_on.php and cam_off.php) hosted in the web folder of the Syno to handle the cookie (crap).
Combined to a virtual device on the zipabox, it works like a charm.
Have you tried to catch motion detection events from SurveillanceStation to push them on a virtual sensor on the zipabox ?
Regards,
Bad Wolf
Hello guys, i've tried for a long long time, but i can't do it.
Someone can help me with that?
thank's in advance
Hello guys, i've tried for a long long time, but i can't do it.
Someone can help me with that?
thank's in advance
Hello Jerome, can you help me with your script?
When i try it with my IP and user password nothing happens in my Synology maybe you have some tips?
Hello Jerome, can you help me with your script?
When i try it with my IP and user password nothing happens in my Synology maybe you have some tips?
Hi all,
I'm trying to follow your suggestion and use the php scripts, but I'm not so used to that, so please can anybody help me on what I have to do both on my Syno and on Zipato?
Thanks a lot
Regards
Hi all,
I'm trying to follow your suggestion and use the php scripts, but I'm not so used to that, so please can anybody help me on what I have to do both on my Syno and on Zipato?
Thanks a lot
Regards
Is there anyone who has found a good way to save recordings on synology via Zipato?
Is there anyone who has found a good way to save recordings on synology via Zipato?
The Web API doc is not opening. Is it necessary to get the Hikvision Binary sensors? I used homeassistant (Home Assistant on a Synology NAS) but then decided to try Zipato. I've Sinology DS1515+
Web API doc : http://download.synology.com/download/ds/userguide/Synology_Surveillance_Station_Web_API_v0.12.pdfhttps://github.com/home-assistant/home-assistant/blob/c6bdde1110edb852c1cb5812f7ff92ef4738bc5d/homeassistant/components/camera/write essay
The Web API doc is not opening. Is it necessary to get the Hikvision Binary sensors? I used homeassistant (Home Assistant on a Synology NAS) but then decided to try Zipato. I've Sinology DS1515+
Web API doc : http://download.synology.com/download/ds/userguide/Synology_Surveillance_Station_Web_API_v0.12.pdfhttps://github.com/home-assistant/home-assistant/blob/c6bdde1110edb852c1cb5812f7ff92ef4738bc5d/homeassistant/components/camera/write essay
Is there anyone who has found a good way to save recordings on synology via Zipato? We have a big family of write my essay today who have a vast understanding of the English language and rules related to it. All of them are holding higher degrees with distinctions in their respective fields. Our highly professional writers are experts in writing styles such as MLA, Harward, APA, etc. They know how to structure an essay or write my essay for me research paper by following the rules of the English Language.
Is there anyone who has found a good way to save recordings on synology via Zipato? We have a big family of write my essay today who have a vast understanding of the English language and rules related to it. All of them are holding higher degrees with distinctions in their respective fields. Our highly professional writers are experts in writing styles such as MLA, Harward, APA, etc. They know how to structure an essay or write my essay for me research paper by following the rules of the English Language.
Replies have been locked on this page!