Applescript to return to Home?

eribble
edited August 2023 in AppleScript

So long story short, my Sunba 636 PTZ loses its mind during some auto tracking events and will just perpetually spin in a 360 until I manually select the Home position in the with the camera GUI or through SS. It's supposedly a known issue with the Sunba firmware, but have no ETA for a fix.

So, got me thinking. Would there be a way to have some sort of an AppleScript that runs only on on motion triggers that executes, after 30 seconds of initial motion on camera, execute the home position setting on the camera? I know it's not ideal, but I've tried every setting on the camera to get around this auto tracking bug. No joy. So right now, the camera is a fixed position camera which is doing me no good.

I've played around a bit with trying to get a script right, no luck yet. If anyone has any ideas, I would be greatly appreciative.

Comments

  • Is it as simple as having this run as the action for the camera?

    tell application "SecuritySpy"

    delay 90

    ptz home camera number 7

    end tell



  • Are you running the latest firmware for the Ip camera

  • Yep, running the latest.