This may be useful to others who use the AAG Cloudwatcher for weather and AstroMC from Foster Systems for observatory control.
AAG_CloudWatcher's weather server allows you to set up a secondary weather server, so I set up this simple server to monitor the "Prime Power" status from AstroMC to detect power failures. If a power failure is detected, the weather will be set to unsafe so your observatory shutdown script will run (hopefully before your UPS is exhausted...).
To use it you will have to register it for COM, and then add it as the secondary server in AAG's ACPWeatherFeed setup dialog like so:
Capture.JPG
-Danny Flippo