A forum for information about scripting with CastleOS. Get samples, suggestions, and other help here
Conditional script to check IP address ping
Phil Hawthorne Posts: 400
3/16/2016
|
In my bedroom we have a smart TV. If we're watching TV and we don't move, the lights will turn off. I've made a simple conditional script, that will ping an IP address on the network, and if it is up, the lights won't be turned off. This means while our smart TV is on, CastleOS won't turn off the lights in the bedroom when there's no motion detected. I'm sure there are other uses for this, so you can grab a copy of the script here: https://gist.github.com/philhawthorne/42223ab86798055e37dd
|
|
+1
link
|