Using your iPhone's location to start ZM recording

From ZoneMinder Wiki
Revision as of 15:59, 23 March 2015 by Asker (talk | contribs)
Jump to navigationJump to search

<Home

Why do we need it?

Your life doesn't always follow a schedule, does it? So how can you expect your camera to follow the same schedule every day? In this day of Connected Devices, most of us carry our phones with us all the time. So wouldn't it be cool if despite whatever you have in cron, there is a way to check if your smart phone is at home or away and depending on its location, you enable/disable recording?


Gotchas

Ah. super useful. But what's the big deal?

  • How about I just allocate a permanent lan IP to my phone and ping it every 5 minutes?
    • Great idea. Except it doesn't work with phones. When phones go to sleep mode, they don't respond to ICMP. (Apparently Blackberries do respond - how cute)
  • Hmm, how about I arping or arpscan?
    • Now you are getting closer. Unfortunately, that doesn't work for iPhones - at least for 5. It gives random results - and I can't seem to use it reliably
    • If your phone does respond reliably to arping or arpscan, check out Christo's shell script here: http://www.zoneminder.com/forums/viewtopic.php?f=9&t=23026

Solution for iPhone