Goo day all,
I want to plug the 2-way Transceiver (RR501)
http://www.smarthome.com/4000.html w. a USB into my PC A and then have it ping PC B and internet (and request http from PC B and internet to make sure they are up...)
if either fail for x # of times - then reboot (turn of and on) the switch
http://www.smarthome.com/2002.html which has PC B, router and modem connected to it.
What is the best way to go about developing this?
I think someone has even made something like this...
I found this
http://www.activehomepro.com/sdk/sdk-info.htmlI think there is an
>x10.exe -code -on/off
that takes parameters, all I would need to do is make a small Perl program that pings PC B (192.168.1.101) and cnn.com
if OK then it sleeps for 60 seconds and repeats
if BAD then send "x10.exe -a1 -off" sleep for 10 seconds then send on do something else (e-mail?)
But I just want to get outside input and feedback on how I should do it...
Thank you all...