Page 1 of 2

Crash after upgrading to security spy version 5

PostPosted: Tue Jul 02, 2019 9:39 am
by norcoscia
The new version of security spy came out - looks like this plug-in does not work with it - hoping it will be updated....

Code: Select all
Cynical SecuritySpy Error       SecuritySpy ServerMiniMac unavailable: unrecognized server version - BBVS/5.0
   Cynical SecuritySpy Error       SecuritySpy Hikvision Back Gate unavailable: host device xxx is unavailable
   Cynical SecuritySpy Error       SecuritySpy Hikvision Driveway unavailable: host device xxx is unavailable
   Cynical SecuritySpy Error       SecuritySpy Hikvision Front Door unavailable: host device xxx is unavailable
   Cynical SecuritySpy Error       in runConcurrentThread: Traceback (most recent call last):
  File ".../Server Plugin/cyin/debugging.py", line 58, in diagnostic_log
    yield
  File ".../Server Plugin/cyin/debugging.py", line 68, in diagnose_call
    return method(*args, **kwargs)
  File ".../Server Plugin/cyin/asynplugin.py", line 64, in runConcurrentThread
    self.run()
  File ".../Server Plugin/asyn/inject.py", line 61, in run
    asyn.Controller.run(self)
  File ".../Server Plugin/asyn/controller.py", line 105, in run
    item._can_read()
  File ".../Server Plugin/asyn/selectable.py", line 229, in _can_read
    self._null_read()
  File ".../Server Plugin/asyn/selectable.py", line 97, in _null_read
    self.callout(END)
  File ".../Server Plugin/asyn/core.py", line 152, in callout
    results = [cb(ctx, *args) for cb in list(self._callbacks)]   # latch callback list
  File ".../Server Plugin/asyn/http.py", line 304, in incoming
    return self.callout('body', self.body)
  File ".../Server Plugin/asyn/core.py", line 152, in callout
    results = [cb(ctx, *args) for cb in list(self._callbacks)]   # latch callback list
  File ".../Server Plugin/spy/core.py", line 120, in reply
    self._configure(arg)
  File ".../Server Plugin/spy/core.py", line 171, in _configure
    camera = Camera(elem, self)
  File ".../Server Plugin/spy/core.py", line 283, in __init__
    if self.spy.webversion >= 4:
AttributeError: 'SecuritySpy' object has no attribute 'webversion'

   Cynical SecuritySpy Error       plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Re: Crash after upgrading to security spy version 5

PostPosted: Tue Jul 02, 2019 11:52 am
by mikejandreau
Thanks for being the guinea pig.

Let the rest of us know if you see a fix?

Re: Crash after upgrading to security spy version 5

PostPosted: Tue Jul 02, 2019 12:03 pm
by norcoscia
Lots of great new stuff in this version plus it was free since I had it less than 6 months - really want to switch to H.265 and use the improved motion detection for people and cars. Hope it is fixed soon :-)

Re: Crash after upgrading to security spy version 5

PostPosted: Tue Jul 02, 2019 1:30 pm
by durosity
Yeah I'm getting the same issue. The human AI seems to work well.. identifies me and the wife in every room we've tried it in.. could be very handy for marking a room as occupied if that info can be fed into indigo somehow.

Re: Crash after upgrading to security spy version 5

PostPosted: Tue Jul 02, 2019 2:27 pm
by jalves
I just bought the upgrade. Haven't yet installed it and will probably hold off until I know it will work with this plugin.. I suspect since it fails in Indigo, that if we currently have any HKB cameras that those will be broken as well.

Re: Crash after upgrading to security spy version 5

PostPosted: Tue Jul 02, 2019 2:51 pm
by norcoscia
This is the downside to plug-ins - more interdependences. The upside is Jay can take more naps :-)

Re: Crash after upgrading to security spy version 5

PostPosted: Tue Jul 02, 2019 2:53 pm
by shapa
Edit plugin core.py, add BBVS/5.0 server version.

It works fine.

/Library/Application Support/Perceptive Automation/Indigo 7.3/Plugins/Cynical SecuritySpy.indigoPlugin/Contents/Server Plugin/spy

Find BBVS/4.0

Easiest - replace with BBVS/5.0

Re: Crash after upgrading to security spy version 5

PostPosted: Tue Jul 02, 2019 2:53 pm
by norcoscia
Thanks, I'll try that :-)

Re: Crash after upgrading to security spy version 5

PostPosted: Tue Jul 02, 2019 3:15 pm
by Lucardos
thanks for the tip.
after the change, it all works fine again :D

Re: Crash after upgrading to security spy version 5

PostPosted: Tue Jul 02, 2019 3:24 pm
by FlyingDiver
Code: Select all
            if server == "BBVS/3.0":
               self.webversion = 3
            elif server == "BBVS/4.0":
               self.webversion = 4
            elif server == "BBVS/5.0":
               self.webversion = 5

Re: Crash after upgrading to security spy version 5

PostPosted: Tue Jul 02, 2019 5:14 pm
by durosity
norcoscia wrote:
The upside is Jay can take more naps :-)


That boy ain’t allowed no naps. I have someone standing behind him with a whip 20 hours a day. Same with Matt. Indigo 8 is gonna be ready on time thanks to my innovative efficiency strategy.

Re: Crash after upgrading to security spy version 5

PostPosted: Tue Jul 02, 2019 5:16 pm
by norcoscia
FlyingDiver wrote:
Code: Select all
            if server == "BBVS/3.0":
               self.webversion = 3
            elif server == "BBVS/4.0":
               self.webversion = 4
            elif server == "BBVS/5.0":
               self.webversion = 5


Doing this does not work (for me) - but just changing the 4 to a 5 seems to work fine - just FYI....

Re: Crash after upgrading to security spy version 5

PostPosted: Tue Jul 02, 2019 6:01 pm
by FlyingDiver
norcoscia wrote:
FlyingDiver wrote:
Code: Select all
            if server == "BBVS/3.0":
               self.webversion = 3
            elif server == "BBVS/4.0":
               self.webversion = 4
            elif server == "BBVS/5.0":
               self.webversion = 5


Doing this does not work (for me) - but just changing the 4 to a 5 seems to work fine - just FYI....


Interesting. I haven't updated SS yet, but I looked at the code and I thought that it was testing >= 4 everywhere, so 5 should work. I must have missed somewhere.

Re: Crash after upgrading to security spy version 5

PostPosted: Tue Jul 02, 2019 6:20 pm
by jalves
How about as an interim measure:
Code: Select all
if server == "BBVS/3.0":
               self.webversion = 3
            elif server >= "BBVS/4.0":
               self.webversion = 4


Until at least there are enhancements in SS 5.0 that necessitate logic specific to that version.

Re: Crash after upgrading to security spy version 5

PostPosted: Tue Jul 02, 2019 6:30 pm
by FlyingDiver
jalves wrote:
How about as an interim measure:
Code: Select all
if server == "BBVS/3.0":
               self.webversion = 3
            elif server >= "BBVS/4.0":
               self.webversion = 4


Until at least there are enhancements in SS 5.0 that necessitate logic specific to that version.


">=" on strings won't do what you think it will...

Code: Select all
            if server == "BBVS/3.0":
               self.webversion = 3
            elif server == "BBVS/4.0":
               self.webversion = 4
            elif server == "BBVS/5.0":
               self.webversion = 4


Is probably the right code for now.