OpenMarine

Full Version: SignalK questions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi everyone,

I have set up OP 0.8.0 NOOBS with an MPU-9250 and a HTU21D sensor and NMEA0183 sentences for them come up OK in both the inspector as well as at the SignalK 0183 stream on port 10111:
Code:
$OSHDG,68.3,,,,*68
$OSXDR,C,27.6,C,I2CT,H,58.9,R,I2CH*53
$OSXDR,A,2.3,D,I2CX,A,0.1,D,I2CY*53
$OSHDG,68.1,,,,*6A
$OSXDR,C,27.6,C,I2CT,H,58.9,R,I2CH*53
$OSXDR,A,2.3,D,I2CX,A,0.1,D,I2CY*53
$OSHDG,68.5,,,,*6E
$OSXDR,C,27.6,C,I2CT,H,58.5,R,I2CH*5F
$OSXDR,A,2.3,D,I2CX,A,0.2,D,I2CY*50
$OSHDG,68.2,,,,*69
$OSXDR,C,27.6,C,I2CT,H,58.3,R,I2CH*59
$OSXDR,A,2.3,D,I2CX,A,0.2,D,I2CY*50
$OSHDG,68.3,,,,*68
$OSXDR,C,27.6,C,I2CT,H,58.4,R,I2CH*5E
$OSXDR,A,2.3,D,I2CX,A,0.2,D,I2CY*50
$OSHDG,68.7,,,,*6C
$OSXDR,C,27.6,C,I2CT,H,58.4,R,I2CH*5E


However, the Signal K REST page shows this:

Code:
{"vessels":{"xxxxxxxx":{"uuid":"xxxxxxxx"}},"version":"0.1.0","sources":{}}

the openplotter-settings.json is this:

Code:
{"vessel": {"name": "OpenPlotter", "uuid": "xxxxxxxx"}, "pipedProviders": [{"pipeElements": [{"type": "providers/tcp", "options": {"host": "127.0.0.1", "port": "10110"}}, {"optionMappings": [{"toOption": "selfId", "fromAppProperty": "selfId"}, {"toOption": "selfType", "fromAppProperty": "selfType"}], "type": "providers/nmea0183-signalk"}], "id": "kplex_output"}, {"pipeElements": [{"type": "providers/udp", "options": {"port": "7777"}}, {"type": "providers/liner"}, {"type": "providers/from_json"}], "id": "OP_sensors"}], "interfaces": {}}

Since providers/nmea0183-signalk is part of the settings, I would expect that all OP sensors that appear in the NMEA0183 stream are also published in Signal K, but as you can see sources are empty.

Is there something wrong with my setup or arenĀ“t OP I2C/1W etc sensors published in SignalK?
If so, how can I add them to the SignalK providers?
Nevermind, I just went through the python files in github for 0.8.0 and 0.9.0 and I realised that publishing GPIO, SPI and I2C sensors to SignalK is only supported in 0.9.0 (in i2c_d.py)
Yes, we are still working on it, feel free to comment. Thanks for testing!