(Start or Pause detection based on if your cell phone is on the local network or not.)
This simple script checks if an IP is on the network. if IP is on network pause detection else start detection.
This script is run from crontab, I use one minute intervals. You may choose a larger interval but that will probably cause you to trip the alarm.
phone_check.sh This is the script, make sure it is executable.
phone_check.cron this is an example of what you should have in your crontab. use crontab -e to edit your crontab
Identify the IP address of your smart phone. I suggest that you use a permanent IP for your phone.
change PHONEIP to the ip of your phone
change MOTIONIP to the ip of your motion server
make sure phone_check.sh is executable.
edit crontab, point to location of phone_check.sh
This script runs in the background via crontab. After installation no user interference is required.
simply turn your phones wifi on or off to test.