Indigo Remote Device Listings

Posted on
Mon Feb 16, 2009 2:03 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Indigo Remote Device Listings

Here's a relatively quick application to list all your devices via the Web Plugin system of Indigo...

The application will display:

* Device Name
* Description
* Insteon Address
* The Device Type
* The Device's Firmware level

For example:
Image

How about some feedback, and suggestions on what else you might want to see?

http://www.schollnick.net/wordpress/2009/02/indigo-remote-device-listings/

Posted on
Mon Feb 16, 2009 3:13 pm
bobeast offline
User avatar
Posts: 400
Joined: Apr 16, 2003

Re: Indigo Remote Device Listings

bschollnick2 wrote:
Here's a relatively quick application to list all your devices via the Web Plugin system of Indigo...

The application will display:

* Device Name
* Description
* Insteon Address
* The Device Type
* The Device's Firmware level


How about some feedback, and suggestions on what else you might want to see?


Nice! One thing I'd like is the ability to know the last changed date/time. This would be especially helpful for Motion Sensors, door sensors, etc.

Choose to chance the rapids.
Dare to dance the tide.

Posted on
Tue Feb 17, 2009 11:22 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Indigo Remote Device Listings

bobeast wrote:
bschollnick2 wrote:
How about some feedback, and suggestions on what else you might want to see?


Nice! One thing I'd like is the ability to know the last changed date/time. This would be especially helpful for Motion Sensors, door sensors, etc.


I've added that to the list... I should be able to add that relatively easily...

Posted on
Sat Feb 28, 2009 12:50 pm
bobeast offline
User avatar
Posts: 400
Joined: Apr 16, 2003

Re: Indigo Remote Device Listings

bschollnick2 wrote:
I've added that to the list... I should be able to add that relatively easily...


Unfortunately I cant load the plugin. I get "internal server error" when the page loads. Here is what I am seeing in the log;

Code: Select all
Request Headers:
  HOST: <omitted>
  CACHE-CONTROL: max-age=0
  ACCEPT: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
  USER-AGENT: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us) AppleWebKit/528.16 (KHTML, like Gecko) Version/4.0 Safari/528.16
  CONNECTION: keep-alive
  Remote-Addr: 10.0.1.1
  ACCEPT-LANGUAGE: en-us
  ACCEPT-ENCODING: gzip, deflate

Traceback (most recent call last):
  File "/Library/Application Support/Perceptive Automation/Indigo 4/IndigoWebServer/cherrypy/_cprequest.py", line 606, in respond
    cherrypy.response.body = self.handler()
  File "/Library/Application Support/Perceptive Automation/Indigo 4/IndigoWebServer/cherrypy/_cpdispatch.py", line 24, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/Library/Application Support/Perceptive Automation/Indigo 4/IndigoWebServer/plugins/DeviceList/reqhandler.py", line 95, in index
    html_elems.append ("<TD>%s</TD><TD>%s</TD><TD>%s</TD><TD>%s</TD><TD>%s.%s</TD>" % (x.name, x.desc, x.addressStr, x.type, hex_value[0], int(hex_value[1], 16) ) )
IndexError: string index out of range


Note the HOST address is correct for my server. I.m not sure if it matters, but I have 33 devices in my database.

Choose to chance the rapids.
Dare to dance the tide.

Posted on
Sat Feb 28, 2009 1:22 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Indigo Remote Device Listings

bobeast wrote:
bschollnick2 wrote:
I've added that to the list... I should be able to add that relatively easily...


Unfortunately I cant load the plugin. I get "internal server error" when the page loads. Here is what I am seeing in the log;


Okay... I'll see about adding some better error checking.....
Something about one of your devices isn't being handled properly...

Do you have any odd characters in your device names, or descriptions?

- Ben

Posted on
Sat Feb 28, 2009 5:20 pm
bobeast offline
User avatar
Posts: 400
Joined: Apr 16, 2003

Re: Indigo Remote Device Listings

bschollnick2 wrote:
Okay... I'll see about adding some better error checking.....
Something about one of your devices isn't being handled properly...

Do you have any odd characters in your device names, or descriptions?

- Ben


One apostrophe as in "Bob's Light". Several sets of parenthesis, as in "Hallway (slave)", a few spaces, and everything else is alpha.

Choose to chance the rapids.
Dare to dance the tide.

Posted on
Sat Feb 28, 2009 10:52 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Indigo Remote Device Listings

bobeast wrote:
bschollnick2 wrote:
Okay... I'll see about adding some better error checking.....
Something about one of your devices isn't being handled properly...

Do you have any odd characters in your device names, or descriptions?

- Ben


One apostrophe as in "Bob's Light". Several sets of parenthesis, as in "Hallway (slave)", a few spaces, and everything else is alpha.


Hmmm... I tried to duplicate this, and can't seem to duplicate it... I'll look at adding some more error checking, to see what might be causing it...

Posted on
Sun Mar 01, 2009 12:33 pm
bobeast offline
User avatar
Posts: 400
Joined: Apr 16, 2003

Re: Indigo Remote Device Listings

bschollnick2 wrote:

Hmmm... I tried to duplicate this, and can't seem to duplicate it... I'll look at adding some more error checking, to see what might be causing it...


OK. Let me know when you've got something for me to test, or if you need any more info.

Choose to chance the rapids.
Dare to dance the tide.

Posted on
Sun Mar 01, 2009 1:26 pm
bobeast offline
User avatar
Posts: 400
Joined: Apr 16, 2003

Re: Indigo Remote Device Listings

bobeast wrote:
bschollnick2 wrote:

Hmmm... I tried to duplicate this, and can't seem to duplicate it... I'll look at adding some more error checking, to see what might be causing it...


OK. Let me know when you've got something for me to test, or if you need any more info.


It seems to have something to do with the firmware field. If I comment that bit out in reqhandler.py, then the Device Listing shows up fine (sans firmware of course). The good news is that, while I was in there, I was able to add device state and last changed date/time :D

Here's what it looks like without the firmware field;

Code: Select all
html_elems.append ("<TD>%s</TD><TD>%s</TD><TD>%s</TD><TD>%s</TD><TD>%s</TD><TD>%s</TD>" % (x.name, x.desc, x.addressStr, x.type, x.deviceState, x.lastChangedStr ) )

Choose to chance the rapids.
Dare to dance the tide.

Posted on
Sun Mar 01, 2009 2:06 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Indigo Remote Device Listings

bobeast wrote:
bobeast wrote:
bschollnick2 wrote:

Hmmm... I tried to duplicate this, and can't seem to duplicate it... I'll look at adding some more error checking, to see what might be causing it...


OK. Let me know when you've got something for me to test, or if you need any more info.


I have a testing version ready that will list each device, as processed...


It seems to have something to do with the firmware field. If I comment that bit out in reqhandler.py, then the Device Listing shows up fine (sans firmware of course).


That's odd... But, quite possible...

Drop me a line at Benjamin AT schollnick DOT net, and I'll send you the debug version...

Posted on
Fri Mar 06, 2009 12:51 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

New version of Remote Device Viewer (1.05)

Folks,

I just posted a revised version of the Remote Device Viewer...

http://www.schollnick.net/wordpress/2009/03/indigo-remote-device-listings-v105/

Recent Changes so far:

Added better error checking, and resolved some issues with Single Digit Firmware values

Posted on
Thu May 14, 2009 12:46 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Indigo Remote Device Listings

The Indigo Remote Device Listings plugin is now updated with some of the changes I made for "The Devices are On!" plugin.

The most notable change is that I added external CSS support for the plugin.

http://www.schollnick.net/wordpress/home-automation/indigo-remote-device-viewer/

As always, suggestions are welcome.

Posted on
Thu May 14, 2009 4:50 pm
asw24b offline
Posts: 222
Joined: Dec 30, 2007
Location: Los Altos Hills, CA

Re: Indigo Remote Device Listings

bschollnick2 wrote:
The Indigo Remote Device Listings plugin is now updated with some of the changes I made for "The Devices are On!" plugin.

The most notable change is that I added external CSS support for the plugin.

http://www.schollnick.net/wordpress/home-automation/indigo-remote-device-viewer/

As always, suggestions are welcome.


Very Cool; Thanks !

(Works great)

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 18 guests