Switcher Module: Temperature, humidity and other parameters are not flaot variabels
Issue #369
closed
I have connected a PegasusAstro UPBv2 box to N.I.N.A. but all environment variables (temperature, humidity, dew point, voltage and current) are displayed as integer instead of float variables. e.g. temperature 238°C or instead of 12,0V 120V.
Comments (3)
-
-
repo owner According to the ASCOM documentation the “GetSwitchValue” can contain floating point numbers. https://ascom-standards.org/Help/Platform/html/M_ASCOM_DeviceInterface_ISwitchV2_GetSwitchValue.htm
What NINA does is just calling this method to get the value. It seems that the value is just reported wrong by the switch.
It’s also common for a switch hub to also contain weather info. The ASCOM Simulator also has this.
-
repo owner - changed status to closed
driver problem. please reach out to the vendor.
- Log in to comment
Hi. The ASCOM switch interface is a strange choice for Pegasus to use to report the weather data, as well as voltages, as the switch class of devices does not provide any particular distinction for these data formats, nor is it really meant to. The weather data should be produced through an ASCOM ObservingConditions driver and reported under the Weather section . There is no ASCOM facility designed for reporting voltages. As far as we see this, this not a bug in NINA but rather an issue with how Pegasus has decided to implement this data. ASCOM Switch values are of an integer data type, so there is really no way for NINA to know that they are floats. Please contact Pegasus to report this issue to them. As for the voltages, there is nothing that can be done because there is no ASCOM facility designed to report that.