-
Hello,
since today I am owner of a RLC-511WA Camera.
Now I want to integrate the Light of the Camera in my Smarthome System.
Does anyone know how to trigger the light via a http request?
I need only the trigger for On/Off in my local network.
I would be happy if someone have an example for me.
Regards
SvenReply QuoteShare0- Share this Post
-
copy the link
Copied!
-
@user_760471719375079_760471719375079 This is fairly easy. Change IP and credentials. I have no time to test it :).
Switch ON:
curl -s -k -X POST -H "Content-Type : application/json" -d "[{\"cmd\":\"SetWhiteLed\",\"param\": {\"WhiteLed\": {\"bright\":100,\"channel\":0,\"mode\":1,\"state\": 1}}}]" "https://192.168.X.YY/cgi-bin/api.cgi?cmd=SetWhiteLed&user=KING&password=ENGINEER"
Switch OFF:
curl -s -k -X POST -H "Content-Type : application/json" -d "[{\"cmd\":\"SetWhiteLed\",\"param\": {\"WhiteLed\": {\"bright\":100,\"channel\":0,\"mode\":1,\"state\": 0}}}]" "https://192.168.X.YY/cgi-bin/api.cgi?cmd=SetWhiteLed&user=KING&password=ENGINEER" -
@joseph_1979
Hello,
response on 823A and E1 Outdoor with admin as user and admin pw:
[
{
"cmd" : "Unknown",
"code" : 1,
"error" : {
"detail" : "invalid user",
"rspCode" : -27
}
}
] -
@user_732475412443337_732475412443337 I just tried it on my E1 OD Pro and RLC-511WA and it works on both. You have an error in username. Check the credentials.
[
{
"cmd" : "SetWhiteLed",
"code" : 0,
"value" : {
"rspCode" : 200
}
}
]
Never have the username and password the same. Have a strong password. If someone gets your UID he can easily access your camera. -
@joseph_1979
I used admins password, not admin as password
Problem was only an "amp;" in cut and paste.
It's working. Thanks. -
@user_732475412443337_732475412443337 I was sure it was a credential error.
-
@user_760471719375079_760471719375079 This is fairly easy. Change IP and credentials. I have no time to test it :).
Switch ON:
curl -s -k -X POST -H "Content-Type : application/json" -d "[{\"cmd\":\"SetWhiteLed\",\"param\": {\"WhiteLed\": {\"bright\":100,\"channel\":0,\"mode\":1,\"state\": 1}}}]" "https://192.168.X.YY/cgi-bin/api.cgi?cmd=SetWhiteLed&user=KING&password=ENGINEER"
Switch OFF:
curl -s -k -X POST -H "Content-Type : application/json" -d "[{\"cmd\":\"SetWhiteLed\",\"param\": {\"WhiteLed\": {\"bright\":100,\"channel\":0,\"mode\":1,\"state\": 0}}}]" "https://192.168.X.YY/cgi-bin/api.cgi?cmd=SetWhiteLed&user=KING&password=ENGINEER"Hey Joseph,
thank you very much. It works fine. It's also nice that I can control the brightness with this command too.
And sorry for my late answer. I thought I have configured in my Account that I get an email if someone post something into my topics.
That was probably not the case. So I didn't notice at first that someone had replied.
The example command is very helpful for me. -
@user_760471719375079_760471719375079 You're welcome. If you need anything which I can help just text me here.
RLC-511WA - http Requests to trigger the light
-
Hello,
since today I am owner of a RLC-511WA Camera.
Now I want to integrate the Light of the Camera in my Smarthome System.
Does anyone know how to trigger the light via a http request?
I need only the trigger for On/Off in my local network.
I would be happy if someone have an example for me.
Regards
Sven
All Categories