Difference between revisions of "Using your iPhone's location to start ZM recording"

From ZoneMinder Wiki
Jump to navigationJump to search
(Created page with "<Home")
 
Line 1: Line 1:
[[Various Learnings from getting Zomeminder 1.28.1 working well on Ubuntu Server 14.04|<Home]]
[[Various Learnings from getting Zomeminder 1.28.1 working well on Ubuntu Server 14.04|<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===

Revision as of 15:59, 23 March 2015

<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