Multi-partition

Posted on
Wed Aug 21, 2013 6:52 am
wbresee offline
Posts: 9
Joined: Aug 20, 2013

Multi-partition

Apologies if I am doing this wrong. I am a new poster. First of all thanks for building this great plugin. How do we contribute to the effort?

I have:
- Indigo 6.0.1 Pro
- EnvisaLink 3
- DSC Alarm
- 2 Partitions

The plugin is working for partition 1. Partition 2 activity is showing in the event log but when used in a control page does not show Partition two status correctly and does not allow arming of partition 2. My guess is that it is assuming partition 1 even when configured for partition 2. The event log is showing Partition 2 activity correctly. Is there a plan to enable the plugin to work in a multi-partition house?

Thanks,
Bill

Posted on
Thu Aug 22, 2013 8:24 am
travisc offline
User avatar
Posts: 346
Joined: Sep 07, 2010
Location: Toronto, Canada

Re: Multi-partition

Hi Bill,

I haven't coded support for 2 partitions yet. Up till now I don't think anyone's needed that so it hasn't been a problem.

I'll try and get that added next time I'm in the code. :)

Travis

Posted on
Thu Aug 22, 2013 8:51 am
durosity offline
User avatar
Posts: 3800
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: Multi-partition

+1 on this if it's not too difficult.. i'd find it quite handy in the not too distant future :)

Computer says no.

Posted on
Thu Aug 22, 2013 9:10 am
wbresee offline
Posts: 9
Joined: Aug 20, 2013

Re: Multi-partition

Thanks Travis,

Let me know if I can do anything to help the effort.

Bill

Posted on
Fri Dec 12, 2014 5:23 am
fraggler offline
Posts: 7
Joined: Dec 11, 2014

Re: Multi-partition

Hi, first of all:
Travis i really like your plugin, thx for all the work you have done!

Second: Is there any news about the plan on programming for a second partition?


Regards
:inus

Posted on
Wed Dec 17, 2014 2:01 pm
travisc offline
User avatar
Posts: 346
Joined: Sep 07, 2010
Location: Toronto, Canada

Re: Multi-partition

Hi fraggler,

I'll have a peek at that next time I'm in the code. From what I recall it shouldn't be that hard to add.

Glad you like the plugin! :)

Travis

Posted on
Sun Dec 21, 2014 2:49 am
fraggler offline
Posts: 7
Joined: Dec 11, 2014

Re: Multi-partition

thanks! Sounds great :)

Posted on
Sun Mar 08, 2015 1:01 pm
brettmil offline
Posts: 3
Joined: Feb 12, 2015

Re: Multi-partition

Hi Travis,

Firstly just to echo the thanks for this plugin. It is great!

Is there any progress on the multi-partition support?

Thanks!

Posted on
Sun Mar 08, 2015 8:53 pm
travisc offline
User avatar
Posts: 346
Joined: Sep 07, 2010
Location: Toronto, Canada

Re: Multi-partition

brettmil wrote:
Hi Travis,

Firstly just to echo the thanks for this plugin. It is great!

Is there any progress on the multi-partition support?

Thanks!


Hi brettmil,

Sorry, nothing yet. Wish I had more time to work on it at the moment. I've been prepping for a trade show for the past two months. Once that's over and done in about a month I'll have more time for the fun stuff.

Glad you're liking it. :)

Posted on
Mon Mar 09, 2015 2:19 pm
brettmil offline
Posts: 3
Joined: Feb 12, 2015

Re: Multi-partition

Ok no worries.

I have worked out a workaround for now which works for my needs.

I checked the source html of the envisalink control page for the form information that is used when you arm or disarm the second partition:

Code: Select all
<TR><TD>Partition 02</TD><TD BGCOLOR="LIME">Ready </TD>
<TD BGCOLOR="YELLOW"> Trouble</TD>
<TD WIDTH=200px>
<P><FORM ACTION=2 METHOD=GET>
<INPUT TYPE=HIDDEN NAME=A VALUE=3>
<INPUT TYPE=SUBMIT VALUE=ARM>
<input type=hidden name=p value=2>
<SPAN CLASS=LITTLE>USER CODE</SPAN>
<INPUT TYPE=PASSWORD MAXLENGTH=6 SIZE=6 NAME=X>
</FORM>


Therefore I can bypass using the page to arm or disarm the partition by crafting the http request using the form information above:

http://ip_address_of_envis3/2?A=3&p=2&X=pincode_to_arm

as an example:

http://10.105.10.249/2?A=3&p=2&X=4599

I put this my browser but I was prompted to authenticate, you can get past this too without manual intervention:

http://user:password@10.105.10.249/2?A=3&p=2&X=4599

Hey ho! The alarm system armed!

A quick deconstruction of the disarm page and I can see that the A data changes to a 4 so to disarm:

http://user:password@10.105.10.249/2?A=4&p=2&X=4599

And this worked too!

So all I needed to do was create 2 scripts and put these calls into them so they can be called from Indigo:

arm_p2.sh
Code: Select all
#!/bin/bash
curl "http://user:password@10.105.10.249/2?A=3&p=2&X=4599"


disarm_p2.sh
Code: Select all
#!/bin/bash
curl "http://user:password@10.105.10.249/2?A=4&p=2&X=4599"


I can now call these from within Indigo and the alarm arms and disarms!

Seeing as all the other information about the second partition is already obtained by the plugin, this should be all you need!

Posted on
Mon Mar 09, 2015 2:52 pm
travisc offline
User avatar
Posts: 346
Joined: Sep 07, 2010
Location: Toronto, Canada

Re: Multi-partition

Nice work around!

Posted on
Tue Mar 10, 2015 5:16 pm
howartp offline
Posts: 3663
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Multi-partition

And Brett's alarm code is 4599 if anyone's wondering...? ;-)

Posted on
Tue Mar 10, 2015 5:20 pm
durosity offline
User avatar
Posts: 3800
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: Multi-partition

howartp wrote:
And Brett's alarm code is 4599 if anyone's wondering...? ;-)


Now where does he live? ;)

Computer says no.

Posted on
Tue Mar 10, 2015 5:22 pm
howartp offline
Posts: 3663
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Multi-partition

Has he posted control page screenshots with his address on like several people? ;-)

Posted on
Mon Mar 16, 2015 3:50 pm
brettmil offline
Posts: 3
Joined: Feb 12, 2015

Re: Multi-partition

:lol:

I changed the internal addressing I use and code in the url!

Who is online

Users browsing this forum: No registered users and 1 guest