Security Camera Plugin

Posted on
Mon Feb 20, 2017 8:50 pm
bkmar1192 offline
Posts: 274
Joined: Sep 12, 2015

Re: Security Camera Plugin

What is the URL for your cameras?


Sent from my iPhone using Tapatalk

Posted on
Tue Feb 21, 2017 3:21 pm
Different Computers offline
User avatar
Posts: 2541
Joined: Jan 02, 2016
Location: East Coast

Re: Security Camera Plugin

They're all Foscams and all use a variation of this

http://192.168.225.33:88/cgi-bin/CGIPro ... apPicture2

Also, it looks like 1.5.1 froze not long after I installed it and indigo is currently serving the last pictures from 8pm yesterday over and over.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Tue Feb 21, 2017 6:35 pm
Different Computers offline
User avatar
Posts: 2541
Joined: Jan 02, 2016
Location: East Coast

Re: Security Camera Plugin

I just downgraded to 1.5.0 and it instantly started working again.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Tue Feb 21, 2017 7:34 pm
bkmar1192 offline
Posts: 274
Joined: Sep 12, 2015

Re: Security Camera Plugin

Different Computers wrote:
I just downgraded to 1.5.0 and it instantly started working again.


I know what the issue is with 1.5.1 but since that is a total rabbit hole I won't go into the details here - unless you are interested. Needless to say I'll fix it and release a new version.

Back to the carousel issue. On the camera that seems to skip - if you watch the date/time stamp on the image, does it seems to take more than 3 seconds between images? If the carousel is trying to grab a partially loaded image then it will skip over it. There are some ways to stabilize this that I can look. The other thing I can add is have the carousel duration be configurable.

It might take me a bit to fix since I need to fix the issue you had with 1.5.1 and implement updates to the carousel.


Sent from my iPhone using Tapatalk

Posted on
Wed Feb 22, 2017 10:04 am
Different Computers offline
User avatar
Posts: 2541
Joined: Jan 02, 2016
Location: East Coast

Re: Security Camera Plugin

Thanks!

It definitely takes more than 3 secs between images on the problem cam. I've increased the timeout on that one cam.

Not to sidetrack, but I'm actually more interested in how to make the plugin's motion detection display whatever image has most recently had motion. Is there a guide for this? Because I can't figure it out.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Wed Feb 22, 2017 10:14 am
Different Computers offline
User avatar
Posts: 2541
Joined: Jan 02, 2016
Location: East Coast

Re: Security Camera Plugin

OK, I just watched the carousel for a while and I see that one cam is sending 2 or 3 different images to the control page before it swaps to the next, which is only showing one before it rotates to another camera. On those rare occasions when it moves to the 3rd, problematic cam, THAT cam shows more than 1 image before the rotation switches it to the next camera.

So:
Cam1: pic, pic1, sometimes pic2
switch
Cam2: Pic
switch
Cam1: pic, pic1, sometimes pic2
switch
Cam2: Pic
switch
Cam3 (the problem cam) pic, pic 1,
switch
etc.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Wed Feb 22, 2017 7:37 pm
bkmar1192 offline
Posts: 274
Joined: Sep 12, 2015

Re: Security Camera Plugin

I have a couple ideas on the carousel I'll work on this weekend.

As for your other question: Master2.jpg will show the most recent image selected through the master image action. So...

Setup a trigger on motion for camera 1, action will will be Master Image with camera 1 as the parameter. Create a similar trigger for each camera. Now add Master2 to your control page. That should do it - please note, I have not done this specifically but I do use the same basic structure to have small images that will expand to a single larger ones.

If your question was more around how the motion sensor works let me know and I can walk through that in a bit more detail.


Sent from my iPhone using Tapatalk

Posted on
Sat Feb 25, 2017 2:10 pm
Different Computers offline
User avatar
Posts: 2541
Joined: Jan 02, 2016
Location: East Coast

Re: Security Camera Plugin

This Master2 method doesn't work for me at all, but that's probably because my Master1,2,3 images don't update at all, like since December 18th!

I've reloaded the plugin after deleting the old MasterN files, disabled and reloaded, checked the config, and they don't show up again.

Any idea how I can make those start working? The plugin is working otherwise.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Sun Feb 26, 2017 11:32 pm
bkmar1192 offline
Posts: 274
Joined: Sep 12, 2015

Re: Security Camera Plugin

Sorry for delayed response - been a busy weekend.

Are the files not in the directory at all? Double check the default directory in the plugin configuration. Can you copy the folder path from the config and then paste it in a finder window or terminal. Validate that the master images are not there,.

All 3 master images are not working correct?

I'll look at the code itself in a second and see if I can trace down a culprit.


Sent from my iPhone using Tapatalk

Posted on
Mon Feb 27, 2017 8:43 am
Different Computers offline
User avatar
Posts: 2541
Joined: Jan 02, 2016
Location: East Coast

Re: Security Camera Plugin

So first, the plugin works. But the Master Image stuff doesn't.

The files WERE in the directory, but they were months old. I deleted them hoping the plugin would recreate them. It did not, even after restarting the plugin.

I've now double-confirmed that the images are not there and the path is correct. I can see the plugin working on the /Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/video folder--pics update, CaroselImage changes, but the Master Images are not there. None of them.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Thu Mar 02, 2017 7:45 am
Different Computers offline
User avatar
Posts: 2541
Joined: Jan 02, 2016
Location: East Coast

Re: Security Camera Plugin

Just adding that, for unrelated reasons I restarted the Indigo mac and when everything came back up, I still didn't have or get Master1,2,3 images.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Thu Mar 02, 2017 11:44 am
bkmar1192 offline
Posts: 274
Joined: Sep 12, 2015

Re: Security Camera Plugin

Ok - sorry I haven't been more responsive it has been a very busy couple of weeks. I am guessing that it is error out somewhere prior to the Master Image updates.

Can you turn off all but one camera and then turn on logging for a bit and send time the output?

Also, try turning on one camera at a time to see if it is an issue with a specific camera.

Can you send a list of the files created in the base folder. I want to make sure it is creating all of the needed files correctly.

Finally, can you try running the snapshot action and see if it creates an image in the snapshot folder?


Sent from my iPhone using Tapatalk

Posted on
Thu Mar 02, 2017 4:46 pm
Different Computers offline
User avatar
Posts: 2541
Joined: Jan 02, 2016
Location: East Coast

Re: Security Camera Plugin

Can you turn off all but one camera and then turn on logging for a bit and send time the output?

Also, try turning on one camera at a time to see if it is an issue with a specific camera.

Can you send a list of the files created in the base folder. I want to make sure it is creating all of the needed files correctly.


I'm beginning the process of doing all this. But as to line 2 & 3: how would this affect the creation of Master1/2/3 and as I mentioned already, there are no Master 1/2/3 files in the video folder.

List of the video folder:
Code: Select all
Archive (folder) (this is empty. I have no archive actions)
Cam Breezeway (folder)
    CurrentImage.jpg
    20-some constantly changing images from the appropriate  cam
    NotActive.jpg
   OrigImage.jpg
Cam C2 (Folder)
    contents as for the Cam Breezeway folder
Cam Cherry (folder)
    contents as for the Cam Breezeway folder
Cam FrontYard (Folder)
    contents as for the Cam Breezeway folder
CarouselImage.jpg


And finally, by "turn off" do you mean disable Indigo communication? Because I don't see any other way to do something like that short of deleting the camera.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Thu Mar 02, 2017 4:52 pm
Different Computers offline
User avatar
Posts: 2541
Joined: Jan 02, 2016
Location: East Coast

Re: Security Camera Plugin

apparently you don't mean disable communication, because that doesn't work.

So all my cams are still running, and here's a debug log on them
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:Cam Breezeway
   Security Camera Debug                     Set State Timers
   Security Camera Debug                     Get Camera Image
   Security Camera Debug                     Check Motion
   Security Camera Debug                Starting Device Loop for:Cam C2
   Security Camera Debug                     Set State Timers
   Security Camera Debug                     Get Camera Image
   Security Camera Debug                     Check Motion
   Security Camera Debug                Starting Device Loop for:Cam Cherry
   Security Camera Debug                     Set State Timers
   Security Camera Debug                     Get Camera Image
   Security Camera Debug                     Check Motion
   Security Camera Debug                Starting Device Loop for:Cam FrontYard
   Security Camera Debug                     Set State Timers
   Security Camera Debug                     Get Camera Image
   Security Camera Debug                     Check Motion
   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:Cam Breezeway
   Security Camera Debug                     Set State Timers
   Security Camera Debug                     Get Camera Image
   Security Camera Debug                     Check Motion
   Security Camera Debug                Starting Device Loop for:Cam C2
   Security Camera Debug                     Set State Timers
   Security Camera Debug                     Get Camera Image
   Security Camera Debug                     Check Motion
   Security Camera Debug                Starting Device Loop for:Cam Cherry
   Security Camera Debug                     Set State Timers
   Security Camera Debug                     Get Camera Image
   Security Camera Debug                     Check Motion
   Security Camera Debug                Starting Device Loop for:Cam FrontYard
   Security Camera Debug                     Set State Timers
   Security Camera Debug                     Get Camera Image
   Security Camera Debug                     Check Motion
   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


It goes on like that.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Thu Mar 02, 2017 5:00 pm
Different Computers offline
User avatar
Posts: 2541
Joined: Jan 02, 2016
Location: East Coast

Re: Security Camera Plugin

Aaaand one more. Results of snapshot command to each camera and a mosaic command (which only created a mosaic from multiple images from ONE camera, FrontYard) and a master camera action:
Code: Select all
Security Camera Error           Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 670, in MasterCamera
  File "plugin.py", line 314, in MasterImage
  File "plugin.py", line 45, in getSortedDir
OSError: (2, 'No such file or directory', '/Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/video/0')

Indeed there is no folder called "/Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/video/0' but why should there be? I created one and now the error is:
Code: Select all
   Security Camera Error           Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 670, in MasterCamera
  File "plugin.py", line 315, in MasterImage
IndexError: list index out of range


And there's nothing in the "0" folder.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Page 7 of 13 1 ... 4, 5, 6, 7, 8, 9, 10 ... 13

Who is online

Users browsing this forum: No registered users and 0 guests

cron