I am trying to write Javascript code to get temperature, humidity, etc. from my new MGBoxV2 device. It has an ASCOM driver for Observing Conditions, and Properties such as Temperature and Humidity.

But I am not sure I am getting the syntax right. Can anyone show me a small code fragment outline for getting observing conditions information from such a device? I have been told elsewhere that I may have to initialize it by running the manufacturer's desktop app first, but want to at least make sure my Javascript code (which doesn't work) is correct.


- Barry