SecuritySpy

Posted on
Wed Aug 19, 2020 9:21 am
jroach offline
Posts: 254
Joined: Oct 29, 2010

SecuritySpy

I've read through some of the posts on Indigo and SecuritySpy. I can paste this URL into a browser and it works:

http://192.168.1.71:8000/live?groupSele ... ameraNum=3

Setting up a Control Page it looks like (see image) but it doesn't work. I've loaded the plug-in, set up the server, setup a few cameras and are active.
I'm also confused by the username/password for SecuritySpy. I'm not certain what the username is (Security Spy, the name of the server instance???).

Thanks in advance.
Attachments
Screen Shot 2020-08-19 at 8.16.30 AM.png
Screen Shot 2020-08-19 at 8.16.30 AM.png (27.37 KiB) Viewed 3832 times

Posted on
Wed Aug 19, 2020 7:30 pm
Korey offline
User avatar
Posts: 813
Joined: Jun 04, 2008
Location: Henderson, NV

Re: SecuritySpy

This works:


Code: Select all
http://USER:PASSWORD@192.168.0.4:8000/++image?cameraNum=1&width=640&height=480&quality=50
Attachments
SS.png
SS.png (106.11 KiB) Viewed 3792 times

--
Korey

Posted on
Thu Aug 20, 2020 9:22 am
jroach offline
Posts: 254
Joined: Oct 29, 2010

Re: SecuritySpy

Kyle, thanks.

If I adjust your format to my environment and paste the results into my browser, it works but it also worked this way for my attempts (see image above).
When I put it into the control page and test I get a ? in a blue box. I think I figured out the username/PW and plugged that into the browser and it worked but same results in my control page.

Here is what I am seeing in the log:

Cynical SecuritySpy Error in runConcurrentThread: Traceback (most recent call last):
File ".../Server Plugin/cyin/debugging.py", line 66, in diagnostic_log
yield
File ".../Server Plugin/cyin/debugging.py", line 76, 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 146, in reply
self._configure(arg)
File ".../Server Plugin/spy/core.py", line 207, in _configure
self.callout('ready', self.cameras)
File ".../Server Plugin/asyn/core.py", line 152, in callout
results = [cb(ctx, *args) for cb in list(self._callbacks)] # latch callback list
File "plugin.py", line 104, in _event
self.version = self.spy.version
AttributeError: 'SecuritySpy' object has no attribute 'version'

Posted on
Thu Aug 20, 2020 9:40 am
jroach offline
Posts: 254
Joined: Oct 29, 2010

Re: SecuritySpy

ignore.

I rebooted the hardware and went back into control pages and saw that it was several versions back ie: the changes I made yesterday and today were not in the settings (http://username:PW@192.168.1.71:8000/++ ... quality=50).

Not certain what is going on with my setup. Even after rebooting several times yesterday, it doesn't save the changes.

Posted on
Thu Aug 20, 2020 1:19 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: SecuritySpy

Is the Event Log showing errors? It should auto-save the database within 15 minutes of any changes, and it will log an error if that fails. Normally when this happens it is because the file/folder permissions (or owner) were changed on the folder the database resides in and Indigo can no longer write to it.

Image

Posted on
Fri Aug 21, 2020 8:38 am
jroach offline
Posts: 254
Joined: Oct 29, 2010

Re: SecuritySpy

I'll check the logs next time I run into the problem.

When you say that the DB autosaved every 15min...could it be that my DB isn't saving when I hit Save/Close? It eventually saves but seems intermittent.
Now that I suspect I have a problem in this area I will pay closer attention and report back.

Posted on
Fri Aug 21, 2020 1:26 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: SecuritySpy

Closing out of the Control Page editor dialog doesn't force a save of the database file itself, but flags that it needs to be saved (which will occur within 15 minutes). If the dialog were not closed (maybe minimized or something), then I could see that causing the change to never be saved.

Image

Posted on
Fri Aug 21, 2020 5:02 pm
agame offline
Posts: 514
Joined: Jul 13, 2017
Location: Melbourne, Australia

Re: SecuritySpy

Korey wrote:
This works:


Code: Select all
http://USER:PASSWORD@192.168.0.4:8000/++image?cameraNum=1&width=640&height=480&quality=50



Doesn't work for me, not sure why it would be different for others. I've always had to structure SecuritySpy URLs following this guidance from Ben Software:

There is another way, which is to add an "auth" parameter to the request. The value of this parameter is the Base64-encoded version of the string username:password.

So for example, if the username and password are both "admin", use the tool linked to above to convert "admin:admin" into Base64, which is "YWRtaW46YWRtaW4=". You then add this to the URL like this:

http://address:port/++image?cameraNum=3 ... 46YWRtaW4=


https://www.bensoftware.com/forum/discussion/1860/securityspy-urls/p1

Posted on
Sat Sep 26, 2020 11:59 am
jroach offline
Posts: 254
Joined: Oct 29, 2010

Re: SecuritySpy

Has Safari 14.x messed up the ability for Indigo to see SecuritySpy cameras?
I'll also post this in the SecuritySpy Cynical thread.

Posted on
Sat Sep 26, 2020 6:05 pm
agame offline
Posts: 514
Joined: Jul 13, 2017
Location: Melbourne, Australia

Re: SecuritySpy

no, Safari14 working fine for me, both in control page refreshing images and for the Security Spy server.

Not clear from your post exactly what the problem is, or where Safari fits in. Does it work with Chrome, and was it working before the. upgrade?

But if the issue is auth problems with control page refreshing images, be sure you follow the base 64 auth encoding approach described above.

Posted on
Mon Sep 28, 2020 7:14 am
jroach offline
Posts: 254
Joined: Oct 29, 2010

Re: SecuritySpy

algame, thanks and I will go back and dbl ck settings for 64.

my problem is that the camera feed into a Control Page I built stopped working. It is a WIP so I didn't notice when it stopped.

I'll report back and let you know if that worked.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests