Jump to content

ISY 994 / Network Module / Insteon IP Camera


Big Totoro

Recommended Posts

Posted

Hello,

 

I've been lurking around for about a month now reading everything I can read on this very new subject (to me).

 

I have an ISY 994 and have purchased the Network Module. I also Have a Insteon Wireless IP camera. I have everything setup and working fine.

 

My question is, I want to make an ISY program that triggers the IP camera's Alarm so that it will start trying to detect motion at certain times of the day. I can get the programming mostly done on my own, but the big problem I'm having is, I don't know how to use the resource manager very well in the network module.

 

Furthermore, I can't figure out what the commands are, to send to the IP camera from the ISY program.

 

I've used the network tracking console and it shows some cgi scripts being called out. get_params.cgi is always called, and it refers to an .htm file called alarm.htm.

 

From here I can find one command called "motion_armed=0". this changes when I toggle the motion alarm setting on and off in the web interface.

 

I'm totally lost as to how to get this information posted back to the ISY so it takes the change. I've used the post method in theresource manager and I get a long list back of settings in the test window, but nothing I do seems to change any of the values.

 

I'd appreciate any help I can get.

 

Thanks!

Posted

Here is the source from the main page that has all the controls etc in the web interface

 

BODY {

MARGIN: 0px; BACKGROUND-COLOR: #969696; font: arial;

}

var user;

var pwd;

var language=getcookie('language');

if (language=='')

language='english';

if (language=='spanish')

document.write('

else if (language=='french')

document.write('

else if (language=='simple_chinese')

document.write('

else if (language=='traditional_chinese')

document.write('

else if (language=='Italian')

document.write('

else if (language=='Polski')

document.write('

else if (language=='Deutsch')

document.write('

else if (language=='Hungarian')

document.write('

else if (language=='Netherlands')

document.write('

else if (language=='Portugal')

document.write('

else if (language=='Czech')

document.write('

else if (language=='Turkish')

document.write('

else if (language=='Russian')

document.write('

else if (language=='Korean')

document.write('

else if (language=='Indonesian')

document.write('

else if (language=='Denmark')

document.write('

else

document.write('

 

if (alias=='') alias=top.str_anonymous;

document.title=str_device+'('+alias+')';

 

 

Here is the source from the Alarm Configuration page of the Web interface.

 

 

BODY {

MARGIN: 0px; BACKGROUND-COLOR: #969696; font: arial;

}

var user;

var pwd;

var language=getcookie('language');

if (language=='')

language='english';

if (language=='spanish')

document.write('

else if (language=='french')

document.write('

else if (language=='simple_chinese')

document.write('

else if (language=='traditional_chinese')

document.write('

else if (language=='Italian')

document.write('

else if (language=='Polski')

document.write('

else if (language=='Deutsch')

document.write('

else if (language=='Hungarian')

document.write('

else if (language=='Netherlands')

document.write('

else if (language=='Portugal')

document.write('

else if (language=='Czech')

document.write('

else if (language=='Turkish')

document.write('

else if (language=='Russian')

document.write('

else if (language=='Korean')

document.write('

else if (language=='Indonesian')

document.write('

else if (language=='Denmark')

document.write('

else

document.write('

 

if (alias=='') alias=top.str_anonymous;

document.title=str_device+'('+alias+')';

 

 

Here is The network capture when I select Motion Detection Armed checkbox (in the WUI), and hit submit:

 

GET /set_alarm.cgi?user=xxxxxxxx&pwd=xxxxxxxxx&next_url=alarm.htm&motion_armed=1&motion_sensitivity=0&motion_compensation=1&sounddetect_armed=0&sounddetect_sensitivity=0&iolinkage=0&mail=1&upload_interval=5&schedule_enable=0&schedule_sun_0=0&schedule_sun_1=0&schedule_sun_2=0&schedule_mon_0=0&schedule_mon_1=0&schedule_mon_2=0&schedule_tue_0=0&schedule_tue_1=0&schedule_tue_2=0&schedule_wed_0=0&schedule_wed_1=0&schedule_wed_2=0&schedule_thu_0=0&schedule_thu_1=0&schedule_thu_2=0&schedule_fri_0=0&schedule_fri_1=0&schedule_fri_2=0&schedule_sat_0=0&schedule_sat_1=0&schedule_sat_2=0 HTTP/1.1

Host: 192.xxx.x.xxx:676

Connection: keep-alive

Authorization: Basic xxxxxxxxxxxxxxxxxxxx

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8

User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36

Referer: http://192.xxxxxxxxxxxx:676/alarm.htm

Accept-Encoding: gzip,deflate,sdch

Accept-Language: en-US,en;q=0.8,ja;q=0.6

Cookie: cache_value=500; ap_alarm_audio=1; ap_alarm_record=1; ap_alarm_record_filepop=1

 

GET /get_params.cgi?user=xxxxx&pwd=xxxxx HTTP/1.1

Host: 192.xxx.x.xxx:676

Connection: keep-alive

Authorization: Basic xxxxxxxxxxxxxxxxxxxxx

Accept: */*

User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36

Referer: http://192.xxx.x.xxx:676/set_alarm.cgi? ... le_sat_2=0

Accept-Encoding: gzip,deflate,sdch

Accept-Language: en-US,en;q=0.8,ja;q=0.6

Cookie: cache_value=500; ap_alarm_audio=1; ap_alarm_record=1; ap_alarm_record_filepop=1

 

 

If there is anything more I can provide please let me know.

Posted

Hi Big Totoro,

 

Let's start with the set_alarm.cgi:

 

Protocol: http
Host: 192.xxx.xxx.xxx
Port: 676
Path = /set_alarm.cgi?user=xxxxxxxx&pwd=xxxxxxxxx&next_url=alarm.htm&motion_armed=1&motion_sensitivity=0&motion_compensation=1&sounddetect_armed=0&sounddetect_sensitivity=0&iolinkage=0&mail=1&upload_interval=5&schedule_enable=0&schedule_sun_0=0&schedule_sun_1=0&schedule_sun_2=0&schedule_mon_0=0&schedule_mon_1=0&schedule_mon_2=0&schedule_tue_0=0&schedule_tue_1=0&schedule_tue_2=0&schedule_wed_0=0&schedule_wed_1=0&schedule_wed_2=0&schedule_thu_0=0&schedule_thu_1=0&schedule_thu_2=0&schedule_fri_0=0&schedule_fri_1=0&schedule_fri_2=0&schedule_sat_0=0&schedule_sat_1=0&schedule_sat_2=0 
Encode URL= checked

Click on Add Header, choose Authorization, and then enter the userid/password for your camera. This should add the Authorization header.

 

With kind regards,

Michel

Posted

Were do I put the "user=xxxxxxxx&pwd=xxxxxxxxx&next_url=alarm.htm&motion_armed=1&motion_sensitivity=0" etc. part?

 

Do I put it as part of the path /set_alarm.cgi? box?

Posted

Hello,

 

Thankyou. Adding that full line to the path section set everything on the alarm menu. I'm guessing that another resource script, but just turning everything off will set everything to off when I want to disarm it.

 

So, that being said, any other commands, I should just track it with the network console and see what .cgi script calls out what string of variables, correct?

 

Thanks again for your help.

 

 

EDIT: The only error I get is a "TCP client read response failed" (Net Module Rule:1) when I run the tests. It also seems to lag the camera out as well, the WUI becomes very sluggish and freezes for a few seconds.

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      37.2k
    • Total Posts
      372.4k
×
×
  • Create New...