LTS camera (american company rebranded Hikvision) problems

Posted on
Sat Dec 17, 2016 2:42 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: LTS camera (american company rebranded Hikvision) proble

Thanks.

blysik wrote:
It's a shell script that runs AppleScript:

Code: Select all
#!/bin/bash
curl -s http://user:pass@192.168.55.218/Streaming/channels/1/picture > /tmp/8.jpg

osascript <<EOD
tell application "Messages"
set targetBuddy to "+PHONENUMBERHERE"
set targetService to id of 1st service whose service type = iMessage
set myFile to "/tmp/8.jpg"
set DestFile to (POSIX file myFile) as string
send file DestFile to buddy targetBuddy of service id targetService
end tell
EOD


The mac this runs on is logged into an Apple iMessages account already and has iMessages open.

Posted on
Sat Dec 17, 2016 2:47 pm
blysik offline
Posts: 213
Joined: Jan 06, 2015

Re: LTS camera (american company rebranded Hikvision) proble

No problem! There's an iMessages plugin, but it only sends text right now. I'm hoping at some point it adds the ability to send an image, and then I might be able to accomplish this without manual scripts.

Who is online

Users browsing this forum: No registered users and 1 guest

cron