trigger ios notifications externally

Haavard
edited April 2017 in SecuritySpy
Hi Ben.
I am running security spy and indigo in close cooperation. This new notification feature is very interesting. On my main entrance camera i am running motion capture 24/7. And some times there is motion here when I dont want an notification. But if the door bell is pressed I would want a notification. Indigo knows when the door bell is pressed, so I can trigger an action from Indigo to do something (script/cynical security spy etc). Is it possible to trigger the notification by script only when I need it? (I dont need a notification when the cat passes by...)

Håvard

Comments

  • I have been looking a bit more in to this, and been testing the notifications. They work rely well. The only thing I am missing is to be able to trigger the notification independently of motion, and preferably by apple script.
  • Hi Haavard, yes this is possible with a simple AppleScript command:

        tell application "SecuritySpy" to set motion camera number 0

    Change the camera number as appropriate (camera numbers are shown in the Camera Info window if you have this column enabled).

    If you want to disable SecuritySpy's own motion detection, disable the "Video motion detection" option under Preferences -> Cameras -> Setup.
  • Well the thing is that I want motion detection enabled. But I dont want a notification at every motion. I only want to trigger the notification when I need it.

    But I found a work around. I created a new "copy" of my door camera, and put the motion sensitivity to max (least sensitive) + disabled record movie. Then I was able to trigger the notification with the "set motion" command.
  • I understand fully now - yes that is a good workaround.
  • But it would be even more tidy if it was possible to disable "motion notification" and only trigger the notification from script.. :)
    But thanks for a close to perfect solution! I have been using scripts to capture images and compose emails etc... So this is a big step forward.
  • Actually this is possible to do with just one camera. Notifications will only be triggered when the Actions mode is armed, so what you could do is have Actions mode normally disarmed, and then have your doorbell invoke a script like this:

        tell application "SecuritySpy"
            arm camera number 0 mode Actions
            set motion camera number 0
            delay 5
            disarm camera number 0 mode Actions
        end tell