Cynical Plugins and Indigo 6 Beta 1

Posted on
Sat Nov 17, 2012 10:23 pm
Perry The Cynic offline
Posts: 836
Joined: Apr 07, 2008

Cynical Plugins and Indigo 6 Beta 1

Things are a bit dicey right now. The Beta 1 has changed a number of things about the way a plugin is called while devices (and presumably other things, like triggers and actions) are created and edited, breaking a number of assumptions baked into the plugins. I've issued new beta versions of my plugins that fix all the problems I've run into so far, but I'd recommend caution at the moment. If you run into odd problems (including scads of red error messages with cryptic text :-)), let me know.

The resulting plugins should still work fine under Indigo 5 - but then, I'm human, imperfect, and currently rather rushed and about to go on travel. In case of difficulty, I beg your indulgence.

Posted on
Sun Nov 18, 2012 12:25 pm
Korey offline
User avatar
Posts: 816
Joined: Jun 04, 2008
Location: Henderson, NV

Re: Cynical Plugins and Indigo 6 Beta 1

Thanks for the updates Perry!!
:D :D :D :D

--
Korey

Posted on
Sun Nov 18, 2012 12:52 pm
terrydew offline
Posts: 258
Joined: Jun 10, 2011

Re: Cynical Plugins and Indigo 6 Beta 1

Not sure if it me, indigo 6 or plugin but when I download the new versions which are newer than what I am using, I get a version already installed message and the version doesn't update. Have to disable, stop server and manually delete the old versions. The new versions then install and enable normally with a double click. This is true for security spy and denon plugins which are the only two I am using from Perry now. Do not know if happens with other plugins as do not have a new version to try.

Posted on
Sun Nov 18, 2012 1:30 pm
jay (support) offline
Site Admin
User avatar
Posts: 18248
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Cynical Plugins and Indigo 6 Beta 1

He must not have updated the version number in the plugin... ;)

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Thu Dec 13, 2012 1:59 am
andyhutch1947 offline
Posts: 65
Joined: Jul 14, 2011

Re: Cynical Plugins and Indigo 6 Beta 1

Where are the instructions for SecuritySpy plug-in?

Posted on
Thu Dec 13, 2012 7:38 am
matt (support) offline
Site Admin
User avatar
Posts: 21426
Joined: Jan 27, 2003
Location: Texas

Re: Cynical Plugins and Indigo 6 Beta 1

All of the cynical plugins are documented here.

Image

Posted on
Mon Jan 07, 2013 9:57 pm
Dewster35 offline
Posts: 1030
Joined: Jul 06, 2010
Location: Petoskey, MI

Re: Cynical Plugins and Indigo 6 Beta 1

You're probably all over it, but seeing the following in indigo 6 B3 with the latest plugin version.

Jan 7, 2013 10:48:39 PM
Cynical SecuritySpy Error error: Traceback (most recent call last):
File ".../Server Plugin/cyin/debugging.py", line 32, in diagnostic_log
File ".../Server Plugin/cyin/asynplugin.py", line 73, in entry
File ".../Server Plugin/cyin/plug.py", line 181, in triggerUpdated
AttributeError: 'InsteonCommandReceivedTrigger' object has no attribute 'pluginTypeId'

Posted on
Fri Jan 25, 2013 3:57 pm
wikner offline
Posts: 181
Joined: Nov 02, 2003

Re: Cynical Plugins and Indigo 6 Beta 1

I posted this in the Indigo 6 beta forum first, and was redirected here. I just started using the Security Spy plugin after starting to use Indigo 6b. I have never used it with 5.x.

I have Indigo 6 up and running. I also have Security Spy (on another machine, but that is not supposed to matter). All of the following is being done via Indigo 6 client (on yet a third machine).

First Menu/Plugins/Cynical SecuritySpy/Reload results in the following:
Code: Select all
  Reloading plugin "Cynical SecuritySpy 1.1.0b4"
  Stopping plugin "Cynical SecuritySpy 1.1.0b4" (pid 1026)
  Stopped plugin "Cynical SecuritySpy 1.1.0b4"
  Starting plugin "Cynical SecuritySpy 1.1.0b4" (pid 31396)
  Started plugin "Cynical SecuritySpy 1.1.0b4"



Next Plugins/Cynical SecuritySpy/Configure...
causes a dialog to appear with a single checkbox. Checking the checkbox and then the default button ("Save", I believe), results in this:
Jan 25, 2013 10:51:35 AM
Code: Select all
  Cynical SecuritySpy Error       in getPrefsConfigUiValues:
  File ".../Server Plugin/cyin/plug.py", line 250, in getPrefsConfigUiValues
    return self._ui._start_ui(init, None, None)
AttributeError: 'NoneType' object has no attribute '_start_ui'

  Cynical SecuritySpy Error       Error in plugin execution UiGetValues1:

Traceback (most recent call last):
<type 'exceptions.TypeError'>: object of type 'NoneType' has no len()

  Cynical SecuritySpy Error       in closedPrefsConfigUi:
  File ".../Server Plugin/cyin/plug.py", line 260, in closedPrefsConfigUi
    self._ui._end_ui(values, cancelled)
  File ".../Server Plugin/cyin/configui.py", line 114, in _end_ui
    assert self._ui_values is not None
AssertionError


Jan 25, 2013 10:52:24 AM
  Cynical SecuritySpy Error       Security Spy Server unavailable: (60, 'Operation timed out')



Selecting Plugins/Cynical SecuritySpy/Configure... again, results in this:
Code: Select all
  Error (client)                  getXmlFromPlugin() caught exception: empty XML string returned
  Error (client)                  runConfigDialog() caught exception: NSInvalidArgumentException -- *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]

  Cynical SecuritySpy Error       in getPrefsConfigUiXml:
  File ".../Server Plugin/cyin/plug.py", line 243, in getPrefsConfigUiXml
    assert self._ui is None
AssertionError



Double-Clicking the Security Spy Server device results in:
Code: Select all
  Cynical SecuritySpy Error       in getIOMConfigUiValues:
  File ".../Server Plugin/cyin/plug.py", line 287, in getIOMConfigUiValues
    return self._ui._start_ui((props, indigo.Dict()), cls, obj)
  File ".../Server Plugin/cyin/configui.py", line 95, in _start_ui
    assert self._ui_values is None
AssertionError

  Cynical SecuritySpy Error       Error in plugin execution UiGetValues2:

Traceback (most recent call last):
<type 'exceptions.TypeError'>: object of type 'NoneType' has no len()

Posted on
Fri Jan 25, 2013 4:08 pm
wikner offline
Posts: 181
Joined: Nov 02, 2003

Re: Cynical Plugins and Indigo 6 Beta 1

Could this have anything to do with the fact that I am running this under 10.6.8? It's an old Mac Mini which can't be upgraded to Mountain Lion.

Posted on
Fri Jan 25, 2013 5:13 pm
Perry The Cynic offline
Posts: 836
Joined: Apr 07, 2008

Re: Cynical Plugins and Indigo 6 Beta 1

Could this have anything to do with the fact that I am running this under 10.6.8? It's an old Mac Mini which can't be upgraded to Mountain Lion.

That is unlikely, unless you're hitting some obscure bug in Python itself.

(If you're wondering what hole I've fallen into, I'm in the middle of moving houses. Stay tuned.)

Cheers
-- perry

Posted on
Tue Feb 05, 2013 8:11 am
McJohn offline
User avatar
Posts: 631
Joined: Dec 18, 2012
Location: The Netherlands

Re: Cynical Plugins and Indigo 6 Beta 1

Same problem here (newest Mac mini/10.8.2)
When I (just installed) configure the plugin, the red errors flies into the Event log:

Cynical SecuritySpy Error in getPrefsConfigUiValues:
File ".../Server Plugin/cyin/plug.py", line 250, in getPrefsConfigUiValues
return self._ui._start_ui(init, None, None)
AttributeError: 'NoneType' object has no attribute '_start_ui'

Cynical SecuritySpy Error Error in plugin execution UiGetValues1:

Traceback (most recent call last):
<type 'exceptions.TypeError'>: object of type 'NoneType' has no len()

Cynical SecuritySpy Error in validatePrefsConfigUi:
File ".../Server Plugin/cyin/plug.py", line 254, in validatePrefsConfigUi
return self._ui._check_ui(values)
File ".../Server Plugin/cyin/configui.py", line 103, in _check_ui
assert self._ui_values is not None
AssertionError

Cynical SecuritySpy Error in closedPrefsConfigUi:
File ".../Server Plugin/cyin/plug.py", line 260, in closedPrefsConfigUi
self._ui._end_ui(values, cancelled)
File ".../Server Plugin/cyin/configui.py", line 114, in _end_ui
assert self._ui_values is not None
AssertionError




Kind regards,

John

Posted on
Wed Feb 13, 2013 11:34 pm
Perry The Cynic offline
Posts: 836
Joined: Apr 07, 2008

Re: Cynical Plugins and Indigo 6 Beta 1

assert self._ui_values is not None

Try that again with the new version I just posted. I fixed the UI interface code earlier, but forgot the special case of the plugin configuration dialog itself, and that's what pops up immediately when you first install the plugin...

Cheers
- perry

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests