Re: Can Indigo power cycle my Airport / DSL Modem / Router?
Posted: Tue Jul 22, 2014 10:07 am
It will queue it and retry every 10 minutes.
Software Support and Home Automation Forum
https://forums.indigodomo.com/
dalenis wrote:Here is the script I am using to check the Internet connection....it might not be pretty but it works!
I created a Time/Date Action with a Time/Date Trigger to check the connection every 5 minutes to Execute AppleScript listed below.
- Code: Select all
property this_URL : "www.apple.com"
--This script is based on a shell script from Apple's website called Qwik Ping
try
set this_result to do shell script ("/sbin/ping -c 1 " & this_URL) as string
if this_result does not contain "0%" then
--The above line checks for package loss if there is reset modem
turn off "Modem"
delay 3
turn on "Modem"
log "Connection failure!"
end if
--If error is returned also reset modem
on error error_message
turn off "Modem"
delay 3
turn on "Modem"
log "Connection failure!"
end try