HOWTO:Zoneminder recording if your 'iPhone' is out of home

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
no1knows
Posts: 8
Joined: Sun Nov 20, 2016 2:04 pm

Re: HOWTO:Zoneminder recording if your 'iPhone' is out of home

Post by no1knows » Sun Nov 20, 2016 3:58 pm

In case anyone's interested, here's an alternative method that I came up with that uses IFTTT: viewtopic.php?f=9&t=25499

__simon
Posts: 3
Joined: Thu Oct 12, 2017 7:49 pm

Re: HOWTO:Zoneminder recording if your 'iPhone' is out of home

Post by __simon » Thu Oct 12, 2017 7:58 pm

I have an android phone, and the arpscan approach work reliably.
I made a batch script that looks for the phone in the lan with arpscan, and if the phone is not found (you can configure after how many retries) it changes the state in ZoneMinder to something you configure.

The script uses the rest api, so it can run everywhere where you have access to the ZoneMinder server.

To run it just clone this git repo with
git clone https://git.e.tern.al/s2/isphonehere.git
or download the files and unzip: https://git.e.tern.al/s2/isphonehere/ar ... ter.tar.gz

then
cp isphonehere.config.example.sh isphonehere.config.sh && chmod +x isphonehere.config.sh
and open isphonehere.config.sh with your favorite editor

Baylink
Posts: 284
Joined: Sun Jun 19, 2005 3:19 am

Re: HOWTO:Zoneminder recording if your 'iPhone' is out of home

Post by Baylink » Sat Oct 14, 2017 5:50 pm

Turn your DHCP lease time down to 15 minutes, and then query the router by name? :-)

That'll require some scraping on the router, probably, unless it's high-end enough to do SNMP.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest