Page 4 of 11

Re: indigo utilities discussion

PostPosted: Sun Jul 24, 2016 11:36 am
by kw123
Thanks for debugging. Will post a new version later today.


Sent from my iPhone using Tapatalk

Re: indigo utilities discussion

PostPosted: Sun Jul 24, 2016 11:44 am
by kw123
posted v 1.11.2
that fixes zwave print (#of neighbors < 2 --> neighbors <1)

Karl

Re: indigo utilities discussion

PostPosted: Thu Aug 18, 2016 9:23 pm
by MartyS
Using the utilities plugin version 1.11.2, I'm having a problem with the "Create and test a backup …" menu option.

I have both Indigo 5 and Indigo 6 directories in /Library/Application Support/Perceptive Automation. When using the menu option from Indigo 5, the backup.log has the following complaint:

Code: Select all
stepCopy cmd: cp '/Library/Application Support/Perceptive Automation/Indigo 6/logs/indigo_history.sqlite' '/Library/Application Support/Perceptive Automation/Indigo 6/logs/a.cp'
stepCopy seconds used      :0;  error= cp: /Library/Application Support/Perceptive Automation/Indigo 6/logs/indigo_history.sqlite: No such file or directory
Notice the path references to Indigo 6, not Indigo 5 that I'm using and trying to backup. I never used the SQL Logger plugin in Indigo 6 so of course that file will not be found.

I saw the following reference to a supplied method for returning the current Indigo version in the find-my-iDevices plugin:
Code: Select all
int(indigo.server.version[0])
So unless the "Create and test a backup …" menu option is supposed to try to backup all Indigo versions in one pass, using that method might be easier to use for finding out the log folder's path. There might even be a method (that works in all versions of Indigo) for getting the path directly without any other work on the plugin's part! Or maybe the original issue that the plugin is trying to overcome is that the above method doesn't exist before Indigo 6 and you wanted to support Indigo 5 users?

Re: indigo utilities discussion

PostPosted: Fri Aug 19, 2016 12:24 am
by kw123
The current version will only use the path to latest indigo version installed Not the one that is running.
The next version will fix that
One question. Why do you still use 5 when you have 6 installed??



Sent from my iPhone using Tapatalk

Re: indigo utilities discussion

PostPosted: Fri Aug 19, 2016 3:12 am
by kw123
posted 1.11.3 , should fix the path to indigo error in "Create and test a backup …"

there were 2 places where the path was determined
1. in the plugin and 2. in an external program that actually does the sql work. The 2. was wrong.

BUT this solution was not tested -- (only that it compiles, no logic)

Karl

Re: indigo utilities discussion

PostPosted: Fri Aug 19, 2016 9:40 am
by MartyS
kw123 wrote:
posted 1.11.3 , should fix the path to indigo error in "Create and test a backup …"

there were 2 places where the path was determined
1. in the plugin and 2. in an external program that actually does the sql work. The 2. was wrong.

BUT this solution was not tested -- (only that it compiles, no logic)

Karl

I appreciate the quick response and fix, Karl! However the download link to 1.11.3 in the other thread ends with a 404. :cry:
I'm more than happy to test out the change when it's available (again).

I'm running Indigo 5 because it's what I have a license for. I downloaded version 6 to see what the JSON output of my devices looked like so I could back port that output into version 5 for the Homebridge implementation that required JSON from the web API. I was successful and now version 6 sits there only as a reference point.

Re: indigo utilities discussion

PostPosted: Fri Aug 19, 2016 9:52 am
by kw123
fixed the download link, sorry for that

Re: indigo utilities discussion

PostPosted: Fri Aug 19, 2016 10:06 am
by MartyS
kw123 wrote:
fixed the download link, sorry for that

Not a problem at all! Stuff happens.

The results are nothing short of perfect. Indigo log entries, backup.log contents and a numbered history file backup all look in order.

Re: indigo utilities discussion

PostPosted: Fri Aug 19, 2016 10:14 am
by kw123
thanks for testing..

Re: indigo utilities discussion

PostPosted: Sat Aug 27, 2016 2:24 am
by srkinard
Karl,

What about an option to add Current Version Number to the Print plugin names and IDs to Indigo Log?

Make it a bit easier to compare installer versions to online versions...

Just curious

Thanks
Ross

Re: indigo utilities discussion

PostPosted: Sun Aug 28, 2016 9:33 am
by kw123
will look into it, but that info is not easily available through a call. Will need to read the plugin info.plist file.

Karl

Re: indigo utilities discussion

PostPosted: Sun Aug 28, 2016 4:23 pm
by kw123
V 1.12.1:
added output of version # for plugins to "print plugin Id and name to log file"

looks like:
Code: Select all
    ID         CPU  version      pluginName ------------------------
  13383     4:46.95  1.4.17       .Action Collection
  13384     3:55.33  2.0.6        .INSTEON Commands
  13385    14:26.70  2.0.19       .Z-Wave
  13386     9:30.77  1.0.0        alarmtoindigo
  13387    51:21.01  7.8.3        arduino
  13389     3:51.63  1.0.2        Global Property Manager
  13391     5:04.37  0.4.10       minMax
  13392    23:50.74  7.4.2        mother
  72402     0:01.44                |- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python /Library/Application Support/Perceptive Automation/Indigo ...
  13394     4:22.94  2.0.0        NOAA Weather
  13397     5:19.91  0.0.1        sprinkler
  13398    61:53.21  2.0.1        SQL Logger
  13399     4:17.04  2.0.0        Timers and Pesters
  13400   229:12.92  7.0.10       uniFiAP
  13535     0:01.78                |- /usr/bin/expect /Library/Application Support/Perceptive Automation/Indigo 6/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/execLog.exp karlwachs ...
  13591     0:01.80                |- /usr/bin/expect /Library/Application Support/Perceptive Automation/Indigo 6/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/execLog.exp karlwachs ...
  13623     1:09.32                |- /usr/bin/expect /Library/Application Support/Perceptive Automation/Indigo 6/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/dictLoop.exp karlwachs ...
  13646     0:01.79                |- /usr/bin/expect /Library/Application Support/Perceptive Automation/Indigo 6/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/execLog.exp karlwachs ...
 

Re: indigo utilities discussion

PostPosted: Sun Aug 28, 2016 7:43 pm
by MartyS
kw123 wrote:
V 1.12.1:
added output of version # for plugins to "print plugin Id and name to log file"

looks like:
Code: Select all
    ID         CPU  version      pluginName ------------------------
  13383     4:46.95  1.4.17       .Action Collection
  13384     3:55.33  2.0.6        .INSTEON Commands
  13385    14:26.70  2.0.19       .Z-Wave
  13386     9:30.77  1.0.0        alarmtoindigo
  13387    51:21.01  7.8.3        arduino
  13389     3:51.63  1.0.2        Global Property Manager
  13391     5:04.37  0.4.10       minMax
  13392    23:50.74  7.4.2        mother
  72402     0:01.44                |- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python /Library/Application Support/Perceptive Automation/Indigo ...
  13394     4:22.94  2.0.0        NOAA Weather
  13397     5:19.91  0.0.1        sprinkler
  13398    61:53.21  2.0.1        SQL Logger
  13399     4:17.04  2.0.0        Timers and Pesters
  13400   229:12.92  7.0.10       uniFiAP
  13535     0:01.78                |- /usr/bin/expect /Library/Application Support/Perceptive Automation/Indigo 6/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/execLog.exp karlwachs ...
  13591     0:01.80                |- /usr/bin/expect /Library/Application Support/Perceptive Automation/Indigo 6/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/execLog.exp karlwachs ...
  13623     1:09.32                |- /usr/bin/expect /Library/Application Support/Perceptive Automation/Indigo 6/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/dictLoop.exp karlwachs ...
  13646     0:01.79                |- /usr/bin/expect /Library/Application Support/Perceptive Automation/Indigo 6/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/execLog.exp karlwachs ...
 

How can we believe that you really added the version number to that feature? Your output showing "Indigo 6" as a path is completely bogus since we've been told that Indigo 7 was canceled. :lol: :wink: And using Python 2.7 — complete heresy! :roll:

Re: indigo utilities discussion

PostPosted: Sun Aug 28, 2016 7:46 pm
by srkinard
Hey...yeah...did Matt and Jay give you a beta version? Are you holding one of their family members hostage?

Re: indigo utilities discussion

PostPosted: Sun Aug 28, 2016 8:41 pm
by kw123
the python 2.7 call is an external call; you can do this with OS X > 10.6 i believe