Thx for the help.
I made a script from some copy pasting of other scripts i have running. But i don't get the different value.
The reply from the bell in the JSON is the following:
But with the following script i get no value from the doorbell:
Sorry i am just not good at scripting (yet)
I made a script from some copy pasting of other scripts i have running. But i don't get the different value.
The reply from the bell in the JSON is the following:
Code:
{
"CallStatus": {
"status": "idle"
}
}
But with the following script i get no value from the doorbell:
Code:
require('json')
require('socket.http')
data = socket.http.request('http://admin:xxxx@192.168.0.0/ISAPI/VideoIntercom/callStatus?format=json')
data = json.pdecode(data)
if type(data) == 'table' then
data = data['CallStatus'][ 1 ]
log(data)
-- Status
grp.checkwrite('32/5/1', data.status)
else
alert('request failed')
end
Sorry i am just not good at scripting (yet)