This is the switch we use to control the observatory
https://www.digital-loggers.com/lpc.html
This is the content of the batch file, let's call it "powerup.bat" and this is what you run from PRSIM.
Code: Select all
C:\Windows\SysWOW64\cmd.exe /c cscript C:\Windows\SysWOW64\...\powerup.vbs
This is the content of a VBS script to run the DigitalLoggers to turn power on:
Code: Select all
set WshShell=WScript.CreateObject("WScript.Shell")
WshShell.run "Chrome.exe"
WScript.sleep 2000
WshShell.sendkeys "http://admin:yourpassword@192.168.1.231:9001/script?run005=run"
WScript.sleep 2000
WshShell.sendkeys "{ENTER}"
WScript.sleep 2000
WshShell.sendkeys "{ENTER}"
And this is the content of the VBS file to command the DigitalLoggers to turn off the power in the morning. This should be executed at the "end of observation" sequence:
Code: Select all
set WshShell=WScript.CreateObject("WScript.Shell")
WshShell.run "Chrome.exe"
WScript.sleep 2000
WshShell.sendkeys "http://admin:yourpassword@192.168.1.231:9001/script?run003=run"
WScript.sleep 2000
WshShell.sendkeys "{ENTER}"
WScript.sleep 2000
WshShell.sendkeys "{ENTER}"
NOTE: The DigitalLogger has an internal scripting function that super easy to use and extremely handy. It help us prevent thing from happening early in the morning and pre for the night . The switch waits for 0600 and kills the power, this prevent some catastrophic failures from happening if, for example. the mount does not park right. This also turns on the power for us at 1700 in preparation for the night.
I understand that this might be a little convoluted, so please ask any question you might have and I will try and help