2016-12-08, 07:37 PM
You are right. It isn't good that it isn't compatible. It also isn't easy to put in the right settings into NMEA 0183 generator (SignalK works consequent with SI units NMEA doesn't)
This is an example that should work for the i2c sensors:
[NMEA0183]
sentences = [['XDR', ['C', ['environment.inside.temperature.value', 'x.x', u'-', 273.15], 'C', 'I2CT'], 1.0],['XDR', ['C', ['environment.outside.temperature.value', 'x.x', u'-', 273.15], 'C', 'I2CT'], 1.0],['XDR', ['P', ['environment.outside.pressure.value', 'x.x', u'*', 0.01], 'B', 'I2CP'], 1.0],['XDR', ['H', ['environment.inside.humidity.value', 'x.x', u'*', 0.01], 'R', 'I2CH'], 1.0],['XDR', ['A', ['navigation.attitude.roll.value', 'x.x', u'*', 57.2957795], 'D', 'I2CX'], 1.0],['XDR', ['A', ['navigation.attitude.pitch.value', 'x.x', u'*', 57.2957795], 'D', 'I2CY'], 1.0],['HDG', [['navigation.headingMagnetic.value', 'x.x', u'*', 57.2957795], '', '', '', ''], 1.0]]
You can copy this into openplotter.conf section [NMEA0183].
(There are 2x I2CT. One should be deleted or renamed. 1wire sensors could be send on the same way as done in I2CT sentence)
what about incoming NMEA0183 sentences?
Every sentence in NMEA 0183 goes into kplex so there is no change. But you can generate NMEA 0183 sentences from NMEA 2000 and analog inputs from MPC3008, ads1115, arduino or esp8266 or digital GPIO inputs (everything you see in SignalK diagnostic).
There are some info in gitbook:
https://sailoog.gitbooks.io/openplotter-documentation (english)
https://sailoog.gitbooks.io/openplotter-...lexer.html
https://sailoog.gitbooks.io/openplotter-...pilot.html
This is an example that should work for the i2c sensors:
[NMEA0183]
sentences = [['XDR', ['C', ['environment.inside.temperature.value', 'x.x', u'-', 273.15], 'C', 'I2CT'], 1.0],['XDR', ['C', ['environment.outside.temperature.value', 'x.x', u'-', 273.15], 'C', 'I2CT'], 1.0],['XDR', ['P', ['environment.outside.pressure.value', 'x.x', u'*', 0.01], 'B', 'I2CP'], 1.0],['XDR', ['H', ['environment.inside.humidity.value', 'x.x', u'*', 0.01], 'R', 'I2CH'], 1.0],['XDR', ['A', ['navigation.attitude.roll.value', 'x.x', u'*', 57.2957795], 'D', 'I2CX'], 1.0],['XDR', ['A', ['navigation.attitude.pitch.value', 'x.x', u'*', 57.2957795], 'D', 'I2CY'], 1.0],['HDG', [['navigation.headingMagnetic.value', 'x.x', u'*', 57.2957795], '', '', '', ''], 1.0]]
You can copy this into openplotter.conf section [NMEA0183].
(There are 2x I2CT. One should be deleted or renamed. 1wire sensors could be send on the same way as done in I2CT sentence)
what about incoming NMEA0183 sentences?
Every sentence in NMEA 0183 goes into kplex so there is no change. But you can generate NMEA 0183 sentences from NMEA 2000 and analog inputs from MPC3008, ads1115, arduino or esp8266 or digital GPIO inputs (everything you see in SignalK diagnostic).
There are some info in gitbook:
https://sailoog.gitbooks.io/openplotter-documentation (english)
https://sailoog.gitbooks.io/openplotter-...lexer.html
https://sailoog.gitbooks.io/openplotter-...pilot.html