Page 1 of 1

Indigo Remote Device Listings

PostPosted: Mon Feb 16, 2009 2:03 pm
by bschollnick2
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/

Re: Indigo Remote Device Listings

PostPosted: Mon Feb 16, 2009 3:13 pm
by bobeast
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.

Re: Indigo Remote Device Listings

PostPosted: Tue Feb 17, 2009 11:22 am
by bschollnick2
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...

Re: Indigo Remote Device Listings

PostPosted: Sat Feb 28, 2009 12:50 pm
by bobeast
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.

Re: Indigo Remote Device Listings

PostPosted: Sat Feb 28, 2009 1:22 pm
by bschollnick2
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

Re: Indigo Remote Device Listings

PostPosted: Sat Feb 28, 2009 5:20 pm
by bobeast
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.

Re: Indigo Remote Device Listings

PostPosted: Sat Feb 28, 2009 10:52 pm
by bschollnick2
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...

Re: Indigo Remote Device Listings

PostPosted: Sun Mar 01, 2009 12:33 pm
by bobeast
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.

Re: Indigo Remote Device Listings

PostPosted: Sun Mar 01, 2009 1:26 pm
by bobeast
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 ) )

Re: Indigo Remote Device Listings

PostPosted: Sun Mar 01, 2009 2:06 pm
by bschollnick2
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...

New version of Remote Device Viewer (1.05)

PostPosted: Fri Mar 06, 2009 12:51 pm
by bschollnick2
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

Re: Indigo Remote Device Listings

PostPosted: Thu May 14, 2009 12:46 pm
by bschollnick2
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.

Re: Indigo Remote Device Listings

PostPosted: Thu May 14, 2009 4:50 pm
by asw24b
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)