This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[OP2] Changing units for temperature and pressure
#1
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!
Reply
#2
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.
Reply
#3
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.
Reply
#4
You need to install the plugin.
Reply
#5
(2020-01-16, 07:17 PM)holgerw Wrote: You need to install the plugin.
Which one? - where do I find it?
I cannot find any conversion plugin in the signalK app store, just found a signalK calibration plugin, but there no formulas can be set just a off-set value for simple -+ adjustments, no * or / 

In OP 1 with SingalK it was straight forward to set units, is this feature gone or just not yet carried forward?
Reply
#6
Yes, calibration is what you need to fill in. No Formular s - only path, and minimal 2 pairs of Numbers. Easy, isnt it?
Holger
Reply
#7
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
Reply
#8
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
Reply
#9
(2020-01-17, 06:16 PM)holgerw Wrote: 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

@holgerw: could you please share a screenshot where you show this unit selection.

I cant even find the environment.inside.bilge.temperature key you mention.

I use signalK 1.20.0 and latest updates of OP2
Reply
#10
(2020-01-20, 12:24 PM)SkipperEarly Wrote:
(2020-01-17, 06:16 PM)holgerw Wrote: 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

@holgerw: could you please share a screenshot where you show this unit selection.

I cant even find the environment.inside.bilge.temperature key you mention.

I use signalK 1.20.0 and latest updates of OP2


You only have to use any Path: environment.inside.xxxxxxx.temperature to get the Units selectable in Sk-Instruments.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)