Posts: 288
Threads: 44
Joined: Mar 2016
Reputation:
5
I know I could change temp to Celsius and pressure to hPa on OP 1.x but cannot find where I can change the units settings in OP2 anymore.
rpi3 - OP2.0.22stable
Sensor MS5607-02BA03
Any advise? - Thanks!
Posts: 254
Threads: 4
Joined: Mar 2016
Reputation:
5
2020-01-13, 03:49 PM
(This post was last modified: 2020-01-13, 03:49 PM by holgerw.)
An way is to do it in SignalK and the Conversions PlugIn:
type in your Path aka "environment.outside.temperature" //kelvin to Celsius
+
273,15
0
+
300,15
27
// this is for an "linear" conversion, you could add more reference points for your sensor
// the "Period" is not functional - for now
// no need to restart the SKServer, just type "accept" and your new data is published.
Posts: 288
Threads: 44
Joined: Mar 2016
Reputation:
5
Thanks holgerw, sounds simple - but cant find a conversion plugin in signalK.
In the conversion signalK > NMEA183, which I use to get the XDR sentences I cannot find any option to enter the formula. - I must have a mental blockage grrrr.
Had also tried the offset method in OP-I2C without luck.
Could you please post a screenshot showing where to enter the formulas for e.g. temperature (+273,15) and pressure ( /1000 ) - thanks.
Posts: 254
Threads: 4
Joined: Mar 2016
Reputation:
5
You need to install the plugin.
Posts: 254
Threads: 4
Joined: Mar 2016
Reputation:
5
Yes, calibration is what you need to fill in. No Formular s - only path, and minimal 2 pairs of Numbers. Easy, isnt it?
Holger
Posts: 303
Threads: 5
Joined: Mar 2018
Reputation:
24
Weeell, the idea with units in Signal K is that on the protocol level everything is always in SI units. Period.
Calibration is really for calibration, not conversion.
Where are you using the value? You should be able to convert it to the unit you want there. ”Should” that is..
And we really should implement preferred units management on use and system/vessel level...
Sent from my iPhone using Tapatalk
Posts: 254
Threads: 4
Joined: Mar 2016
Reputation:
5
Well, just looked with path a bit: environment.inside.bilge.temperature HAS selectable units in the Instrument Output. So no need these hack anymore.
Regards