using your iPhone location to change ZM run state

Forum for questions and support relating to the 1.28.x releases only.
Locked
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

using your iPhone location to change ZM run state

Post by asker »

Hey folks, pretty happy about this little hack:
Using your iphone location to trigger ZM run state

The premise is this: let's say you are running ZM on schedule, but you break the schedule - go out for a dinner or whatever. I've put together a way to use iCloud's "Find my phone" service to check your location once in a while - if its out of your house, it switches ZM to a predefined run state - in my case "out" which puts my cameras in nodect mode to record on external triggers. It also does the reverse, if your ZM is in "out" run state (a custom state I created) but your phone says you are "in", it switches you to "in" state

There are various steps involved to get it running:
a) installing some python packages
b) it assumes you are using my patches to ZM to keep a record of the running state (not just Running, but name of your custom run state) and if you are not, you need to modify the scripts
c) This assumes you have enabled 'find my iPhone' on your device

But if you are hands-on, and have a bit of programming in you, you can easily customize it

More details here: http://www.zoneminder.com/forums/viewto ... 360#p87360
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
Locked