Survey v2 Released

Posted on
Wed Jun 18, 2014 10:14 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Survey v2 Released

Folks,

I am officially releasing Survey v2.

What is the Survey Plugin?

The Survey plugin is primarily used for helping diagnose or identifying issues with the Indigo device network. The plugin will send a “ping” out to each device on the network and track how long it takes the device to respond. These metrics can help identify devices that are slow to respond, or responding erratically.

Download Link - https://dl.dropboxusercontent.com/u/241 ... 0v2.00.zip

Basic Usage:

  • From the Plugin Menu, choose the Survey Plugin, and choose How many Passes to run.
  • Each Pass is a complete examination of all Insteon devices. So the more passes (and more devices you have) the longer it will take to process the report.
  • While the report is running Indigo maybe slower to respond to other Home Automation requests. While I have written the software to allow Indigo to process other requests, it is a good idea to run the survey’s when the system is reasonably idle.
  • Survey’s will be stored in ~/Documents/Surveys, and can be deleted, or preserved as required.
  • This plugin currently supports all Insteon devices that support the Insteon StatusRequest command. Generally that means that any battery powered Insteon device will not be tested with this plugin.

Once the report is done, Indigo will open a web browser that contains the results of the survey.
The Plugin does not have a Indigo Web Interface.

The search feature does allow you to filter the report, so you could restrict it to Keypadlincs, by simply typing "keypadlinc" into the search box.

The inspiration of this is from the iHealth application.

I hope to be able to extend this to support Zwave, X10, etc. At this time it is not possible, but I am hopeful that eventually we will be able to do so.

I welcome any feedback, comments, and concerns. I especially would like your feedback regarding the reports. Is there additional data that you think would be useful? Do you think there is a better way to present the data? etc.

- Benjamin

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Fri Jun 20, 2014 8:41 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Survey v2 Released

downloaded te v2.0 version and the report is back to an old version. Did you post the piper plugin?

the log file is:
Stopping plugin "Survey Plugin" (pid 28599)
Stopped plugin "Survey Plugin"
Upgrading plugin "Survey Plugin" to newer version 2.00 (previous version moved to trash)
Loading plugin "Survey Plugin 2.00"
Starting plugin "Survey Plugin 2.00" (pid 84614)
Started plugin "Survey Plugin 2.00"
Survey Plugin Survey Requested....
Survey Plugin Survey Pass - 1
Survey Plugin Total Successes - 46
Survey Plugin Total Failures - 16
Survey Plugin Done processing devices

and the reports looks like the attached, no menus anymore. did I download the wrong version?

Karl
Attachments
Screen Shot 2014-06-20 at 9.40.20 AM.png
Screen Shot 2014-06-20 at 9.40.20 AM.png (89.68 KiB) Viewed 10673 times

Posted on
Fri Jun 20, 2014 10:31 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Survey v2 Released

kw123 wrote:
downloaded te v2.0 version and the report is back to an old version. Did you post the piper plugin?


No, stupid mistake on my part. Somehow I bundled the wrong version up for release?...

I can't explain it, other than I wanted to get it out to the public.

Try this:

https://dl.dropboxusercontent.com/u/241 ... 0v2.01.zip

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Fri Jun 20, 2014 11:07 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Survey v2 Released

Thanks

Karl

ps:

Just in case ... this produces a bar ----+----+---* in case you still consider it.

Code: Select all
def createBar(value,min=0,max=10,numberOfCharacters=20,padWithSpace=False):

    try:
        value = float(value)
    except:
        return "err:Value"
     
    try:
        min = float(min)
    except:
            return "err:min"
     
    try:
        max = float(max)
    except:
        return "err:max"

    if max  <= min: return "err:max<min"
             
             
    try:
        numberOfCharacters = int(float(numberOfCharacters))
    except:
        return "err:#ofChar"
    if numberOfCharacters ==0 : return "err:#ofChar"
             
    try:
        if padWithSpace:       padWithSpace ==True
        if not padWithSpace:     padWithSpace ==False
    except:
        return "err:padWSpace"
             
             
    amplitude = int(value/(max-min) * numberOfCharacters)
    if amplitude == 0:
        if padWithSpace: return [" " for i in range (numberOfCharacters)]   
        return" "
    if amplitude < 0:
        if padWithSpace: return "<"+[" " for i in range (numberOfCharacters-1)]   
        return"<"

    retBar =[]
       
    if amplitude > max:
        retBar = ["-" for i in range (numberOfCharacters)]
        for ii in range(4,numberOfCharacters,5):        
            retBar[ii] ="+"
        retBar[numberOfCharacters-1]=">"
        return "".join(retBar)
     
    retBar = ["-" for i in range (amplitude)]
    for ii in range(4,amplitude,5):        
        retBar[ii] ="+"
    retBar[amplitude-1]="*"

    if padWithSpace:
        for i in range(amplitude,numberOfCharacters):
            retBar.append(" ")    
    return "".join(retBar)

print "x"+createBar(40,0,100,50,True)+"x"
#produces:x----+----+----+----*                              x

print "x"+createBar(40,0,100,50,False)+"x"
#produces:x----+----+----+----*x

print "x"+createBar(400,0,100,50,False)+"x" # value > max
#produces:x----+----+----+----+----+----+----+----+----+---->x

print "x"+createBar(5,0,100,50,False)+"x"
#produces:-*x

print "x"+createBar(33,0,100,50,False)+"x"
#produces:x----+----+----+*x

print "x"+createBar(88,0,100,50,False)+"x"

#produces:x----+----+----+----+----+----+----+----+---*x
print "x"+createBar(0,0,100,50,False)+"x"
#produces:x x

print "x"+createBar(-100,0,100,50,False)+"x" # value < min
#produces:x<x



Posted on
Fri Jun 20, 2014 4:50 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Survey v2 Released

got this error:

Code: Select all
 Survey Plugin                      LampLink ?? Timed-Out, No Reply Received
  Survey Plugin                      outsideGarageLights Timed-Out, No Reply Received
  Survey Plugin                      pool temp io linc Timed-Out, No Reply Received
  Survey Plugin                      spare micro Timed-Out, No Reply Received
  Survey Plugin                   Total Successes - 58
  Survey Plugin                   Total Failures - 4
  Survey Plugin                   Done processing devices
  Survey Plugin Error             Error in plugin execution MenuAction:

Traceback (most recent call last):
  File "plugin.py", line 261, in survey_1pass_manualUpdate
  File "plugin.py", line 147, in make_report
  File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/survey2.indigoPlugin/Contents/Server Plugin/cheetah/Template.py", line 1005, in __str__
  File "DynamicallyCompiledCheetahTemplate.py", line 301, in respond
  File "plugin.py", line 51, in return_hop_colors
<type 'exceptions.KeyError'>: (2,)


Posted on
Fri Jun 20, 2014 7:25 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Survey v2 Released

kw123 wrote:
File "plugin.py", line 51, in return_hop_colors
<type 'exceptions.KeyError'>: (2,)
[/code]


Okay, there was a typo in the heat map lookup table. Try this version.

https://dl.dropboxusercontent.com/u/241 ... 0v2.02.zip

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Sat Jun 21, 2014 12:30 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Survey v2 Released

works nicely the "hop heat map" coding is a bit unclear without any legend/key on the page - actually I don't know how it is coded.
and it is not necessarily correlated to response time -see screen shot.

otherwise perfect.


Karl
Attachments
Screen Shot 2014-06-21 at 1.27.48 AM.png
Screen Shot 2014-06-21 at 1.27.48 AM.png (36.03 KiB) Viewed 10590 times

Posted on
Sat Jun 21, 2014 4:28 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Survey v2 Released

kw123 wrote:
works nicely the "hop heat map" coding is a bit unclear without any legend/key on the page - actually I don't know how it is coded.
and it is not necessarily correlated to response time -see screen shot.

otherwise perfect.


Once again, the heat map is hard for to summarize in a legend.

I'll take a stab at it though.

Image

The idea is that you can see the entire run of pings since each pass is represented (by an Asterick or a Dash). So for example,

Image

You can clearly see that out of these 5 runs, only the middle run had any issues.

For the middle run, the 4th run was pretty bad, but the last two were in the "middle" for delays (0.75?).

It would be relatively easy to tell that you may want to pull up the detailed report for that run.

Please note, none of those runs came up was a Time Out. A Timeout would be represented by a DASH, not an asterisk.

- Benjamin

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Sat Jun 21, 2014 7:24 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Survey v2 Released

ok,

..there are some blue at the higher numbers and there is only 1 * --- if it would show 2 ** with one blue one red I would understand.

Posted on
Sat Jun 21, 2014 8:48 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Survey v2 Released

kw123 wrote:
ok,

..there are some blue at the higher numbers and there is only 1 * --- if it would show 2 ** with one blue one red I would understand.


There shouldn't be. But something is funny there with the percentages. I'll take another look.

Part of the issue is that somehow there was a regression with the code for the final release. So I'll take another look and see if something else is happening.

- Ben

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Sat Jun 21, 2014 9:52 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Survey v2 Released

happens only to the best

Posted on
Sat Jun 21, 2014 12:54 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Survey v2 Released

kw123 wrote:
happens only to the best


Double check that your running v2.02, and let me know if you see anything different with v2.02.

Right now the percentages seem to be fine with the local testing here, and the hop heat meter seems to be showing fine.

If you want, zip up the report in question, and send it to me as a ZIP file to Benjamin AT schollnick DOT net, and I'll take a closer look at the figures.

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Sat Jun 21, 2014 1:52 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Survey v2 Released

the file states v 2.02, but info.plist states v 2.01

Posted on
Sat Jun 21, 2014 2:21 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Survey v2 Released

kw123 wrote:
the file states v 2.02, but info.plist states v 2.01


Here's an optional quote from me, regarding this. https://dl.dropboxusercontent.com/u/241415/swear.jpg

That's a pain, and I'm not going to re-release it to just fix the freaking version number.
If you could bundle up the survey report, and send me a copy, and I'll take a closer look.

- Benjamin

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Sat Jun 21, 2014 2:54 pm
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Survey v2 Released

kw123 wrote:
ok,
..there are some blue at the higher numbers and there is only 1 * --- if it would show 2 ** with one blue one red I would understand.


Okay, after looking at your report, I have run into this issue before.

First, try this:

https://dl.dropboxusercontent.com/u/241 ... 0v2.03.zip

Let me know what message's it displays in your log.

But you should get a warning corresponding to these devices:

23.DE.94
14.F5.E0
22.54.80
23.0F.49

I believe you have duplicate device(s) accidentally defined in your Indigo database. It appears that check if you already have the address defined, so you can accidentally have multiple entries for the same Insteon device.

v2.03 adds code to check for this, and will warning you to check those two devices, and then ignores the 2nd+ devices that have duplicate IDs.

But this explains how you can have a ping count greater than 1 when you performed a single ping, and how your average is higher than 100%.
And why the heat map was goofed up, because the pings were less than the critical values, but the average calculation was wrong because of the excess data. So the heat map was correct, but the average was calculated wrong.

- Benjamin

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Who is online

Users browsing this forum: No registered users and 5 guests