SecuritySpy to iMessage Trigger

Posted on
Tue Aug 23, 2016 4:10 pm
petematheson offline
Posts: 847
Joined: Sep 14, 2014
Location: Southampton, UK

SecuritySpy to iMessage Trigger

Hi There,
I'm new to security spy, and have installed my first camera (a Hikvision).
I have the latest version of Security Spy installed on my Mac (same one running indigo) and I have configured it to record on motion.

What I can't figure out is how to create a trigger in Indigo to send me an iMessage with a photo or video of the camera.

Something like, if house is empty and doorbell is pushed - send iMessage with CCTV snapshot attached.

Posted on
Tue Aug 23, 2016 4:18 pm
petematheson offline
Posts: 847
Joined: Sep 14, 2014
Location: Southampton, UK

Re: SecuritySpy to iMessage Trigger

After a bit more searching I can see that I can pull the image via the url for a control page:
http://xxx.xxx.xxx.xxx/Streaming/channels/1/picture

Just wondering if this feature was built into this plugin at all before I look down the route of how I download this image and then attach it to an iMessage somehow?

Posted on
Tue Aug 23, 2016 4:30 pm
ELWOOD offline
Posts: 225
Joined: Feb 11, 2007
Location: Ramsey, NJ

Re: SecuritySpy to iMessage Trigger

Look at the preference settings in the security spy you can setup an email account and than security spy will send
4 pics of the video feed with motion or by an action in indigo. Using the motion does tend to send a lot of false trigers
due to changes in lighting with outside cameras.

Elwood

Posted on
Tue Aug 23, 2016 4:34 pm
petematheson offline
Posts: 847
Joined: Sep 14, 2014
Location: Southampton, UK

Re: SecuritySpy to iMessage Trigger

Yeah - but that's why I wanted to use Indigo to do the messaging side of things - because then I can specify only to send me a picture when the doorbell is pushed / house is empty :)

Posted on
Tue Aug 23, 2016 4:52 pm
ELWOOD offline
Posts: 225
Joined: Feb 11, 2007
Location: Ramsey, NJ

Re: SecuritySpy to iMessage Trigger

I have a trigger in indigo that fires when my delivery door is opened.
with an action of Trigger Recording of device "front door camera"

Here is todays delivery

Elwood
Attachments
Front door 08-23-2016 14-12-01 1.jpg
Front door 08-23-2016 14-12-01 1.jpg (156.72 KiB) Viewed 2927 times

Posted on
Tue Aug 23, 2016 6:38 pm
FlyingDiver offline
User avatar
Posts: 7215
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: SecuritySpy to iMessage Trigger

Sending an email or a text is fairly easy. But I don't know of any way to send an iMessage from Indigo.

Break it down into two parts - first get the trigger working the way you want, even if it doesn't actually do anything. Then work on getting the notification you want.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue Aug 23, 2016 7:57 pm
DaveL17 offline
User avatar
Posts: 6753
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: SecuritySpy to iMessage Trigger

I haven't done a ton with Applescript, but I had this code snippet in my archive:

Code: Select all
tell application "Messages"
   send "This is an SMS" to buddy "+1234567890" of service "SMS"
end tell

If I recall, you can't iMessage yourself at an email alias, but you can iMessage yourself to a phone number alias (I just tested it.) I also believe that (to work as written) iMessage needs to be running--but I'm not positive of that last bit.

Dave

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Tue Aug 23, 2016 8:06 pm
peteinau offline
Posts: 65
Joined: Jan 10, 2015

Re: SecuritySpy to iMessage Trigger

Hey,

I use the following AppleScript code to take a picture from the camera and then send it via iMessage if it helps you

set garage_pic to "/Users/admin/Downloads/garage.jpg"
tell application "SecuritySpy"
capture image camera name "Garage" as garage_pic with overwrite
end tell

tell application "Messages"
set DestFile to POSIX file "/Users/admin/Downloads/garage.jpg"
send file DestFile to buddy "User"
end tell

Posted on
Wed Aug 24, 2016 4:49 pm
petematheson offline
Posts: 847
Joined: Sep 14, 2014
Location: Southampton, UK

Re: SecuritySpy to iMessage Trigger

Perfect, thanks @peteinau

For the others on here, yep you can iMessage yourself. I have my Mac Mini running with a separate iCloud account.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests