Can I get a little help with creating a shutdown script?
My observatory is solar-powered and I use a West Mountain Radio RigRunner 4005i intelligent power switch for 12V. It has a simple web-based interface controllable via Ethernet. More info here: http://www.westmountainradio.com/pro...ts_id=rr_4005i

I can connect to its internal webserver and get status. If the voltage gets low, like 11.5v, I want to start shutting things down before I am out of juice.
It has a parsable XML status like this: http://rr4005i/status.xml
<?xml version="1.0"?>
-<rr4005i>
<SUPPLY>12.34</SUPPLY>
<RAILLOAD0>0.00</RAILLOAD0>
<RAILLOAD1>0.11</RAILLOAD1>
<RAILLOAD2>0.80</RAILLOAD2>
<RAILLOAD3>0.00</RAILLOAD3>
<RAILLOAD4>0.06</RAILLOAD4>
<RAILENA0>0</RAILENA0>
<RAILENA1>1</RAILENA1>
<RAILENA2>1</RAILENA2>
<RAILENA3>0</RAILENA3>
<RAILENA4>1</RAILENA4>
</rr4005i>

Basically I need to do an http request for the status page, parse out the value of the <supply> voltage, and then kick off a shutdown.

If I get most sophisticated, it would be great to post some values to disable the various output rails to turn off things like dew controller etc.

Pointers and suggestions most welcome.
Thanks in advance
Colin