Arrays in Housebot???
Posted: Wed Jun 28, 2006 2:25 pm
Hi All,
I'm writing a script for interfacing my Caddx alarm panel and Housebot. (Originally I was going to write a full blown plugin, but have found that the generic serial interface and script device for parsing the output work really well!)
The Caddx panel can produce 4 bits of data per alarm zone. So faulted, bypassed, touble and alarm memory or any combination of such. I have 24 zones on my system so I need to hold 96 bits of information.
Is there a simpler way to do it rather than create 96 properties? A 24x4 array would be nice, but????
I know I could store the info in one property, but really don't want to have to deal with 16 possible values for that property if I'm displaying info or trying to extract info.
By the time I'm done with system status properties, partition status properties, interface configuration properties... I really don't need another 96 when I can have 24!
Any ideas?
Thanks
Tim
I'm writing a script for interfacing my Caddx alarm panel and Housebot. (Originally I was going to write a full blown plugin, but have found that the generic serial interface and script device for parsing the output work really well!)
The Caddx panel can produce 4 bits of data per alarm zone. So faulted, bypassed, touble and alarm memory or any combination of such. I have 24 zones on my system so I need to hold 96 bits of information.
Is there a simpler way to do it rather than create 96 properties? A 24x4 array would be nice, but????
I know I could store the info in one property, but really don't want to have to deal with 16 possible values for that property if I'm displaying info or trying to extract info.
By the time I'm done with system status properties, partition status properties, interface configuration properties... I really don't need another 96 when I can have 24!
Any ideas?
Thanks
Tim