Page 3 of 5

Re: SecuritySpy Image Downloading and Stitching

PostPosted: Wed Apr 24, 2019 5:28 pm
by vtmikel
In the Indigo variable window, set the value of the variable to the full path and filename / extension of where you want the image to go. Such as: /Users/mike/Documents/CameraImages/basement_image.jpg

If you are making a gif, then change the extension.

Once you save the image to the variable location correctly, use the same variable to send to Pushover


Sent from my iPhone using Tapatalk Pro

Re: SecuritySpy Image Downloading and Stitching

PostPosted: Wed Apr 24, 2019 6:07 pm
by norcoscia
Thanks, I did have some problems using the variable - it kept trying to use your default path (/Users/myuser/Documents) vice the one I entered. I just put the path in directly and it started working.

I will mess with it more and let you know if I see anything - I'm a bit confused by the amount of frames in the resulting gif - when I pick 5 seconds @ .5 FPS I end up with three frames in the GIF file - is that normal/expected?

In any case thanks for the help sorting this out!!!!!!!

Re: SecuritySpy Image Downloading and Stitching

PostPosted: Thu May 23, 2019 8:40 am
by whmoorejr
I'm stuck. I just installed the plugin and I can't find an action menu item for it. Just re-booted my server (because sometimes a new plugin makes my indigo go nuts.), but still no joy.

Re: SecuritySpy Image Downloading and Stitching

PostPosted: Thu May 23, 2019 9:38 am
by norcoscia
it is under actions see below

Re: SecuritySpy Image Downloading and Stitching

PostPosted: Thu May 23, 2019 10:07 am
by whmoorejr
I figured that is where it would be.... your post clarified that. Had to delete the plugin, restart the server, reinstall the plugin and Poof!* Now it works.

So... I know I'm not a long time user of your plugin, but feature request.... Save an animated .gif as an animated .png?

I created an action group that made the animated.gif file and a follow-up python script to copy it as a .png... which worked. Now that .png file can be used on a control page in either a browser or domopad.

Code: Select all
from shutil import copyfile

copyfile('/Users/williammoore/Desktop/Camera.gif','/Users/williammoore/Desktop/Camera.png')


Anyway, if you alter the plugin, that would remove that one step of adding script and would make the plugin useful for control page coolness.

Re: SecuritySpy Image Downloading and Stitching

PostPosted: Fri May 24, 2019 6:22 am
by vtmikel
whmoorejr wrote:
I figured that is where it would be.... your post clarified that. Had to delete the plugin, restart the server, reinstall the plugin and Poof!* Now it works.

So... I know I'm not a long time user of your plugin, but feature request.... Save an animated .gif as an animated .png?

I created an action group that made the animated.gif file and a follow-up python script to copy it as a .png... which worked. Now that .png file can be used on a control page in either a browser or domopad.

Code: Select all
from shutil import copyfile

copyfile('/Users/williammoore/Desktop/Camera.gif','/Users/williammoore/Desktop/Camera.png')


Anyway, if you alter the plugin, that would remove that one step of adding script and would make the plugin useful for control page coolness.


In my very quick google searches, animated PNG isn't the same as an animated GIF. Though if there is a python library to create them and they reduce the file size, I'd consider looking at it.

Re: SecuritySpy Image Downloading and Stitching

PostPosted: Fri May 24, 2019 6:26 am
by vtmikel
norcoscia wrote:
Thanks, I did have some problems using the variable - it kept trying to use your default path (/Users/myuser/Documents) vice the one I entered. I just put the path in directly and it started working.

I will mess with it more and let you know if I see anything - I'm a bit confused by the amount of frames in the resulting gif - when I pick 5 seconds @ .5 FPS I end up with three frames in the GIF file - is that normal/expected?

In any case thanks for the help sorting this out!!!!!!!


Yes that's expected, but no, it doesn't make any sense and I should make some changes.

.5 FPS is 1 frame every 2 seconds. Therefore a 5 second animation should have only 2 frames. I might change this to 1 FPS in the next rls so that the math always comes out evenly. But anything over 3 frames is hard to get under the limit for Pushover.

Re: SecuritySpy Image Downloading and Stitching

PostPosted: Fri May 24, 2019 6:47 am
by norcoscia
Thx

Re: SecuritySpy Image Downloading and Stitching

PostPosted: Fri Jul 19, 2019 4:25 pm
by agame
just fyi, the link from the plugin update menu is broken. (download from plugin store works fine).

Re: SecuritySpy Image Downloading and Stitching

PostPosted: Thu Nov 14, 2019 11:56 pm
by agame
I've been using the plugin for some time, and with great success, thanks.

recently I've reconfigured some new actions and triggers, and now I'm getting duplicate images from of one of the cameras.

in the log entry below, main drive is cam 2 and old drive is cam 0 - cam 2 is appearing in all the images in place of cam 0 (as well as as itself). I'm slightly curious why only these two cams get their name written to the logs while the others appear just as numbers (they all have names and are unique.

Code: Select all
 Image Downloader and SecuritySpy Helper getting image: http://imagestitcher:<password removed from log>@192.168.1.54/++image?cameraNum=main drive and saving it to: /Users/indigouser/Documents/security/temp1.jpg
   Image Downloader and SecuritySpy Helper Debug    completed
   Image Downloader and SecuritySpy Helper getting image: http://imagestitcher:<password removed from log>@192.168.1.54/++image?cameraNum=old drive and saving it to: /Users/indigouser/Documents/security/temp2.jpg
   Image Downloader and SecuritySpy Helper Debug    completed
   Image Downloader and SecuritySpy Helper getting image: http://imagestitcher:<password removed from log>@192.168.1.54/++image?cameraNum=5 and saving it to: /Users/indigouser/Documents/security/temp3.jpg
   Image Downloader and SecuritySpy Helper Debug    completed
   Image Downloader and SecuritySpy Helper getting image: http://imagestitcher:<password removed from log>@192.168.1.54/++image?cameraNum=4 and saving it to: /Users/indigouser/Documents/security/temp4.jpg
   Image Downloader and SecuritySpy Helper Debug    completed


Not sure what to try next...

EDIT: I've realised the camera names reported up in the log aren't actually their current names, leading me to think they're actually old camera names that I've subsequently changed. Is the plugin not refreshing the name-lookup of cameras as names change perhaps? I still don't get why what was previously working has reverted though, any camera-naming was some time ago.

Re: SecuritySpy Image Downloading and Stitching

PostPosted: Mon Nov 25, 2019 4:33 pm
by agame
this is still causing me angst.

I've recreated new Cynical Security Spy camera devices and Image Stitcher actions but same problem is manifesting.

In the logs I see this, by way of example:

Code: Select all
  Trigger                         human on main drive
   Image Downloader and SecuritySpy Helper getting image: http://imagestitcher:<password removed from log>@192.168.1.54/++image?cameraNum=main drive and saving it to: /Users/adamgame/Documents/temp1.jpg
   Image Downloader and SecuritySpy Helper Debug    completed
   Image Downloader and SecuritySpy Helper getting image: http://imagestitcher:<password removed from log>@192.168.1.54/++image?cameraNum=old drive and saving it to: /Users/adamgame/Documents/temp2.jpg
   Image Downloader and SecuritySpy Helper Debug    completed
   Image Downloader and SecuritySpy Helper getting image: http://imagestitcher:<password removed from log>@192.168.1.54/++image?cameraNum=5 and saving it to: /Users/adamgame/Documents/temp3.jpg
   Image Downloader and SecuritySpy Helper Debug    completed
   Image Downloader and SecuritySpy Helper getting image: http://imagestitcher:<password removed from log>@192.168.1.54/++image?cameraNum= and saving it to: /Users/adamgame/Documents/temp4.jpg
   Image Downloader and SecuritySpy Helper Error    error getting image.  Status code: 404
   Image Downloader and SecuritySpy Helper Debug error obtaining image 4, skipping


what is confusing me in the log output is two things:

- I am actually only attempting to stitch 3 images, not 4. Intriguingly, the 4th image (that fails) is listed with the Camera Number Blank. And I'm still confused why the remaining cams aren't described in a consistent format (2 with names, one just a number). 'Main drive' is the image that is appearing incorrectly ( 'old drive' image instead appears). Has some config got corrupted? Not sure to obliterate that if so.

Re: SecuritySpy Image Downloading and Stitching

PostPosted: Mon Nov 25, 2019 4:58 pm
by vtmikel
Something looks off here. The first and second do not have camera numbers, and instead have the names in the url string. The forth camera has nothing.

Are you using Cynic’s plugin or manually entering the camera number?

You may want to try creating individual action groups to get the image from each camera, as a test.


Sent from my iPhone using Tapatalk Pro

Re: SecuritySpy Image Downloading and Stitching

PostPosted: Mon Nov 25, 2019 5:13 pm
by agame
Yes I’m using the cynical plugin and not editing any names or numbers. I’ve deleted and recreated the cams there, as well as rebuilding the stitching actions.

I will try creating single image actions and see what happens.


Sent from my iPhone using Tapatalk

Re: SecuritySpy Image Downloading and Stitching

PostPosted: Mon Nov 25, 2019 5:16 pm
by vtmikel
I’ll do some testing as well.


Sent from my iPhone using Tapatalk Pro

Re: SecuritySpy Image Downloading and Stitching

PostPosted: Wed Nov 27, 2019 5:04 pm
by agame
well...after deleting the affected cameras completely from security spy (not just from indigo) :( and recreating them...and rebuilding all the triggers, its all working again :)

deleting the plugin and preferences and reinstalling the plugin didn't work .

I suspect something had caused an old name to be cached where the camera number should have been...


so instead of this

Code: Select all
 Trigger                         human on main drive
   Image Downloader and SecuritySpy Helper getting image: http://imagestitcher:<password removed from log>@192.168.1.54/++image?cameraNum=old drive and saving it to: /Users/xyz/Documents/temp1.jpg
   Image Downloader and SecuritySpy Helper getting image: http://imagestitcher:<password removed from log>@192.168.1.54/++image?cameraNum=1 and saving it to: /Users/xyz/Documents/temp2.jpg
   Image Downloader and SecuritySpy Helper getting image: http://imagestitcher:<password removed from log>@192.168.1.54/++image?cameraNum=5 and saving it to: /Users/xyz/Documents/temp3.jpg


I see this

Code: Select all
   Trigger                         human on main drive
   Image Downloader and SecuritySpy Helper getting image: http://imagestitcher: removed from log>@192.168.1.54/++image?cameraNum=2 and saving it to: /Users/xyz/Documents/temp1.jpg
   Image Downloader and SecuritySpy Helper getting image: http://imagestitcher: removed from log>@192.168.1.54/++image?cameraNum=0 and saving it to: /Users/xyz/Documents/temp2.jpg
   Image Downloader and SecuritySpy Helper getting image: http://imagestitcher: removed from log>@192.168.1.54/++image?cameraNum=5 and saving it to: /Users/xyz/Documents/temp3.jpg


(numeric cam numbers changed on the rebuild so ignore that)

anyhow all good now but might be handy for future debugging!