Just wanted to post a quick script I'm using to check my internet connection. I have my router on an ApplianceLinc and when the "online" variable hits "false", Indigo happily turns power to the router off then on after 10 seconds. The script runs on a schedule every 5 minutes, along with a crude locking mechanism on a status variable. I'd welcome any feedback on this solution!
Schedule:
- every 5 minutes
Conditions:
- variable "check_internet_status" is not equal to "running..."
Actions:
- set "check_internet_status" to "running..."
- execute external script "check_internet.py"
Note: the script will set "check_internet_status" to something else when it is complete, thus "unlocking" the condition.