Page 13 of 13

Re: Security Camera Plugin

PostPosted: Tue Dec 26, 2017 3:10 pm
by NewfD90
So I picked up a Foscam FI8910W for cheap and am trying to add it to the plugin.

I'm certain that the URL format is as such:

Code: Select all
http://IP:PORT/snapshot.cgi?user=admin&pwd=password


This works fine in a browser and in an Indigo control page refreshing image URL.

But I can't get it to work with Security Camera Plugin.

I've tried urllib and urllib2 (with the login info blank).

Turning on debug doesn't show any errors. Foyer is an old Vera Vistcam (rebranded Foscam) and it works fine. IPCam2 is the new addition.

Code: Select all
   Security Camera Debug           Starting main loop
   Security Camera Debug                Starting Carousel
   Security Camera Debug                Starting Master Image
   Security Camera Debug                Unable to run Master Image
   Security Camera Debug                Starting Device Loop
   Security Camera Debug                Starting Device Loop for:Foyer
   Security Camera Debug                     Set State Timers
   Security Camera Debug                     Get Camera Image
   Security Camera Debug                     Check Motion
   Security Camera Debug                Starting Device Loop for:IPCam2
   Security Camera Debug                     Set State Timers
   Security Camera Debug                     Get Camera Image
   Security Camera Debug                     Check Motion


Any advice?

Another nugget of info. Using curl in a terminal with the above URL also works just fine.

Re: Security Camera Plugin

PostPosted: Wed Dec 27, 2017 12:50 pm
by bkmar1192
I’d upgrade to the 2.0 version of Security Camera. One warning is the you will need to recreate your camera devices but it is much more stable and less of a resource hog.

That said, I will be releasing an update later today so you might want to wait a bit to upgrade.


Sent from my iPhone using Tapatalk

Re: Security Camera Plugin

PostPosted: Thu Dec 28, 2017 11:39 am
by NewfD90
OK, after many upgrade issues, I've done that. I ended up having to completely delete my previous install. Anyways, now I continually get the following log message once per second:

Security Camera Unable to run Master Image: 0

And neither of my cameras work. When I re-created the devices, I received the following errors:

Code: Select all
2017-12-28 10:32:37.068   Security Camera Error   Error in plugin execution ServerReplacedElem:

Traceback (most recent call last):
  File "/Library/Application Support/Perceptive Automation/Indigo 7/IndigoPluginHost.app/Contents/PlugIns/plugin_base.py", line 1179, in deviceUpdated
  File "plugin.py", line 853, in deviceStartComm
KeyError: key IMDirectory not found in dict

Re: Security Camera Plugin

PostPosted: Thu Dec 28, 2017 3:43 pm
by bkmar1192
Ok - I’ll take a look.


Sent from my iPhone using Tapatalk

Re: Security Camera Plugin

PostPosted: Thu Dec 28, 2017 3:56 pm
by bkmar1192
Just submitted an update - version 2.1.2


Sent from my iPhone using Tapatalk

Re: Security Camera Plugin

PostPosted: Thu Dec 28, 2017 4:21 pm
by NewfD90
OK, python error is gone, but still get "Unable to run Master Image: 0" 1x/sec. I then see:

Security Camera Image not loaded for IPCam2 camera. 30
Security Camera Image not loaded for FoyerCam camera. 30

I had been successfully using the FoyerCam with the pre 2.x Security Camera Plugin.

Unfortunately, there's no feedback as to what's going wrong and toggling debug on does nothing.

Re: Security Camera Plugin

PostPosted: Fri Jan 12, 2018 9:53 am
by martinc
I am also getting that error;

Re: Security Camera Plugin

PostPosted: Tue Jan 16, 2018 1:22 pm
by NewfD90
Any update?

Re: Security Camera Plugin

PostPosted: Fri Jan 19, 2018 3:39 am
by MarcoGT
I am also getting the same error

Re: Security Camera Plugin

PostPosted: Tue Feb 27, 2018 2:39 pm
by marcel langelaan
Hi I have the same error, clean installation.
Please advice how to handle.

Security Camera ----- startup called ------
Security Camera Checking for update
Security Camera The current version of Security Camera is 2.1.2 and the running version 2.0.1.
Security Camera See https://github.com/bkmar1192/SecurityCa ... Manual.pdf for change details.
Security Camera Error exception in deviceStartComm(cam3 test): 'key IMDirectory not found in dict'
Security Camera Thread started for cam3 camera. id: 123145527922688
Security Camera Starting main loop
Security Camera Unable to run Master Image: 0
Security Camera Master Camera Thread: [Errno 2] No such file or directory: u'/Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/video/cam3/NotActive.jpg'
Security Camera Unable to run Master Image: 0

Re: Security Camera Plugin

PostPosted: Sat Mar 10, 2018 10:49 am
by NewfD90
So I looked at the source code for this plugin and it looks like there's an issue with the preferences file and the Master Camera tag. I commented out all of the code relating to the Master Camera and was able to get the plug in to run. However, my connectivity issues persisted. Added some debug logs and found that the requests python library (that the author went to in v2.0) is always assuming HTTP port 80. My cameras are not on port 80. I briefly looked at the requests documentation but didn't see a way to specify a port number.

Gave up, completely wiped the current plugin from Indigo and installed the last version that didn't use requests (v1.6.2) and all is well again. Both cameras working beautifully.

Re: Security Camera Plugin

PostPosted: Sat Mar 10, 2018 2:56 pm
by marcel langelaan
were to find the version 1.62?