SignalK / signalk-to-nmea0183

Signal K Node server plugin to convert Signal K to NMEA 0183
Apache License 2.0
12 stars 28 forks source link

MDA sentence out #62

Open mathewgreen opened 3 years ago

mathewgreen commented 3 years ago

I have I2C connected humidity/temp/pressure sensor (BME860) to get data into SignalK and out again to the NMEA0183 network. I have the signalk-raspberry-pi-bme860 plugin and that brings data into SignalK. I want to use signalk-to-nmea0183 to get the data out to the NMEA0183 network (wifi)

I would like map the following (out from signalk-raspberry-pi-bme860) to an MDA sentence?

environmental.inside.humidity environmental.inside.pressure environmental.inside.temperature

tkurki commented 4 months ago

MDA Meteorological Composite (obsolete) This message is obsolete and NMEA recommends to use XDR transducer messages instead. However, old instruments might still sending this message. OpenCPN reads the second value “Barometric pressure, bars”, but only if the number provided is between 0.8 and 1.1 All other values are ignored.

$--MDA,x.x,I,**x.x,B**,x.x,C,x.x,C,x.x,x.x,x.x,C,x.x,T,x.x,M,x.x,N,x.x,M*hh<CR><LF> \\
|   |        |   |    |   |    |   |    |   |    | \\
|   |        |   |    |   |    |   |    |   |    Wind speed, meters/second \\
|   |        |   |    |   |    |   |    |        Wind speed, knots \\
|   |        |   |    |   |    |   |    Wind direction, degrees Magnetic     \\
|   |        |   |    |   |    |        Wind direction, degrees True \\
|   |        |   |    |   |    Dew point, degrees C \\
|   |        |   |    |    Absolute humidity, percent \\
|   |        |   |    Relative humidity, percent \\
|   |        |        Water temperature, degrees C \\
|   |        Air temperature, degrees C \\
|      **//Barometric pressure, bars// ** \\
Barometric pressure, inches of mercury