Survey v2 Released

Posted on
Thu Sep 14, 2017 8:58 am
bschollnick2 offline
Posts: 1316
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Survey v2 Released

HFTobeason wrote:
Does this plugin still exist? The Dropbox pages are showing "Does not exist" errors. Thanks.


Yes, it does. I'll take a look at it tonight, and see if I can find out what's happening. Otherwise, I might just put it up on Github....

------
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
Thu Sep 14, 2017 10:01 am
HFTobeason offline
Posts: 272
Joined: Nov 07, 2003

Re: Survey v2 Released

Thank you.

Specifically,

https://dl.dropboxusercontent.com/u/241415/indigo%20survey/Survey%20v2.21.zip

results in a 404 error:

File not found

Sorry, that file doesn’t live here anymore. It might have been moved or made private.

Posted on
Thu Sep 14, 2017 5:26 pm
bschollnick2 offline
Posts: 1316
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Survey v2 Released

HFTobeason wrote:

https://dl.dropboxusercontent.com/u/241415/indigo%20survey/Survey%20v2.21.zip

results in a 404 error:

File not found

Sorry, that file doesn’t live here anymore. It might have been moved or made private.


Thanks. For the meantime, I have placed the Survey plugin onto Github, see https://github.com/bschollnick/indigo_survey/.

It's not perfect, I have to fix the Text files there, and I really should write some additional documentation for it on Github, but you can download the repository and have the working plugin. In addition, if anyone wants to contribute, please feel free.

- 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 Sep 15, 2017 12:11 pm
HFTobeason offline
Posts: 272
Joined: Nov 07, 2003

Re: Survey v2 Released

Thank you. Successfully downloaded and ran. Very helpful!

Posted on
Fri Sep 15, 2017 12:43 pm
bschollnick2 offline
Posts: 1316
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Survey v2 Released

HFTobeason wrote:
Thank you. Successfully downloaded and ran. Very helpful!



If you have any suggestions for improvements, please feel free to let me know...

------
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 Sep 16, 2017 10:02 am
dduff617 offline
Posts: 400
Joined: Jul 05, 2006

Re: Survey v2 Released

i have successfully run survey plugin in the past, but my last several attempts are failing. i'm still getting this error:
Survey Plugin Total Successes - 135
Survey Plugin Total Failures - 3
Survey Plugin Done processing devices
Survey Plugin Error Error in plugin execution MenuAction:

Traceback (most recent call last):
File "plugin.py", line 329, in survey_1pass_manualUpdate
File "plugin.py", line 311, in make_individual_reports
File "plugin.py", line 184, in make_report
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/survey2.indigoPlugin/Contents/Server Plugin/Cheetah/Template.py", line 1005, in __str__
File "cheetah_DynamicallyCompiledCheetahTemplate_1505575978_86_25526.py", line 136, in respond
TypeError: hex() argument can't be converted to hex


it seems the testing part is completing fine, but there's some error in the report generation. i might have been tempted to use my very limited python skills to track down a simple problem within the plugin, this error appears to be buried somewhere inside a contained library (?). together with the fact that i seem to be the only one having this problem, this makes me suspect it may be something that changed in my local python environment... anyone with more python experience have any ideas or suggestions of things i might try to get this working?

thanks.

Posted on
Sat Sep 16, 2017 10:53 am
bschollnick2 offline
Posts: 1316
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Survey v2 Released

dduff617 wrote:
i have successfully run survey plugin in the past, but my last several attempts are failing. i'm still getting this error:
Traceback (most recent call last):
File "plugin.py", line 329, in survey_1pass_manualUpdate
File "plugin.py", line 311, in make_individual_reports
File "plugin.py", line 184, in make_report
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/survey2.indigoPlugin/Contents/Server Plugin/Cheetah/Template.py", line 1005, in __str__
File "cheetah_DynamicallyCompiledCheetahTemplate_1505575978_86_25526.py", line 136, in respond
TypeError: hex() argument can't be converted to hex


it seems the testing part is completing fine, but there's some error in the report generation. i might have been tempted to use my very limited python skills to track down a simple problem within the plugin, this error appears to be buried somewhere inside a contained library (?). together with the fact that i seem to be the only one having this problem, this makes me suspect it may be something that changed in my local python environment... anyone with more python experience have any ideas or suggestions of things i might try to get this working?
[/quote]

I'll take a look later today or tomorrow. I haven't seen this error.

The error is literally when the report is being written to the disk.

data_file.write(str(report_template))

Do you have any devices that have non-ascii names? I haven't seen any issues with device naming, but it's possible.
If not, can you ZIP up your database, and send me a copy of it? This way, I can try to test with your database...
If so, please send it to BENJAMIN at SCHOLLNICK dot NET...

------
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 Sep 16, 2017 7:21 pm
dduff617 offline
Posts: 400
Joined: Jul 05, 2006

Re: Survey v2 Released

i have a few modules with a space character that makes them fall at the end of sorted list. i think it may be non-breaking space (option-space). i use this when i have a device that is under direct control of a motion sensor or a door sensor, such that i typically don't want to control it manually, thus i want it to fall to the bottom of lists.

i suppose i could rename them....

example: " motion - Pantry Light"

Posted on
Sat Sep 16, 2017 8:37 pm
bschollnick2 offline
Posts: 1316
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Survey v2 Released

dduff617 wrote:
i have a few modules with a space character that makes them fall at the end of sorted list. i think it may be non-breaking space (option-space). i use this when i have a device that is under direct control of a motion sensor or a door sensor, such that i typically don't want to control it manually, thus i want it to fall to the bottom of lists.

i suppose i could rename them....

example: " motion - Pantry Light"


That was a red herring. I found the issue, it's with the cheetah templating.

I assume you have at least some Z-Wave items? The cheetah template is crashing when it hits the zWave item's firmware number, and can't convert it to hex.
I have a temporary fix which prevents any of the firmware versions from being hex encoded (that was indigo & survey are showing the same version #'s for the firmwares).

I need to sit down and change the logic for that for a more permanent fix. I'll try to publish the change tomorrow morning...

- 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
Tue Sep 19, 2017 4:52 pm
dduff617 offline
Posts: 400
Joined: Jul 05, 2006

Re: Survey v2 Released

yes, i do have a few bluetooth modules.

Posted on
Thu Dec 14, 2017 2:50 pm
claudetalbot offline
Posts: 1
Joined: Dec 14, 2017

Re: Survey v2 Released

bschollnick2 wrote:
dduff617 wrote:
i have a few modules with a space character that makes them fall at the end of sorted list. i think it may be non-breaking space (option-space). i use this when i have a device that is under direct control of a motion sensor or a door sensor, such that i typically don't want to control it manually, thus i want it to fall to the bottom of lists.

i suppose i could rename them....

example: " motion - Pantry Light"


That was a red herring. I found the issue, it's with the cheetah templating.

I assume you have at least some Z-Wave items? The cheetah template is crashing when it hits the zWave item's firmware number, and can't convert it to hex.
I have a temporary fix which prevents any of the firmware versions from being hex encoded (that was indigo & survey are showing the same version #'s for the firmwares).

I need to sit down and change the logic for that for a more permanent fix. I'll try to publish the change tomorrow morning...

- Benjamin


Hi Benjamin,
A few days ago, I installed last available version of Survey on Indigo plugin store. Unfortunately I do experience the exact same issue as dduff617 with same errors reported in my log. I'm using Indigo 7.1.1 on iMac running 10.12.6.
Thanks,
Claude

Posted on
Thu Dec 14, 2017 4:58 pm
bschollnick2 offline
Posts: 1316
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Survey v2 Released

claudetalbot wrote:
bschollnick2 wrote:
dduff617 wrote:
i have a few modules with a space character that makes them fall at the end of sorted list. i think it may be non-breaking space (option-space). i use this when i have a device that is under direct control of a motion sensor or a door sensor, such that i typically don't want to control it manually, thus i want it to fall to the bottom of lists.

i suppose i could rename them....

example: " motion - Pantry Light"


That was a red herring. I found the issue, it's with the cheetah templating.

I assume you have at least some Z-Wave items? The cheetah template is crashing when it hits the zWave item's firmware number, and can't convert it to hex.
I have a temporary fix which prevents any of the firmware versions from being hex encoded (that was indigo & survey are showing the same version #'s for the firmwares).

I need to sit down and change the logic for that for a more permanent fix. I'll try to publish the change tomorrow morning...

- Benjamin


Hi Benjamin,
A few days ago, I installed last available version of Survey on Indigo plugin store. Unfortunately I do experience the exact same issue as dduff617 with same errors reported in my log. I'm using Indigo 7.1.1 on iMac running 10.12.6.
Thanks,
Claude


I'll take a look, I *thought* that fix was included in the code that I sent up to Github.

- 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 0 guests