2020-01-29, 04:53 AM
I think I almost have this configured. I have in the http://localhost:3000/@signalk/instrumentpanel/ dashboard yaw, pitch, and roll data which I know is from pypilot UDP set to autopilot
pi@openplotter:~ $ nc -u -l 20220
{"updates":[{"$source":"OpenPlotter.I2C.pypilot","values":[{"path": "navigation.attitude","value":{"roll":-0.005427974123,"pitch":-0.0029496065170000006,"yaw":null}}]}]}
I also can see NMEA0183 data on TCP port 20220
pi@openplotter:~ $ nc 127.0.0.1 20220
$APXDR,A,-0.179,D,PTCH*59
$APXDR,A,-0.291,D,ROLL*4E
$APHDM,270.337,M*31
$GPGSA,M,3,28,17,30,19,06,01,03,07,22,11,,,2.3,1.0,2.0*38
In the SignalK interface http://localhost:3000/admin/#/dashboard under Server->Connections I added the UDP and the TCP connections
Input Type: NMEA0183
Enabled: yes
ID: pypilot-tcp
NMEA0183 Source: TCP Client
Host: localhost
port 10110
the same for the UDP port
Input Type: Signal K
Enabled: yes
Logging: no
SignalK source: UDP
Port: 20220
and pressed apply. I then can see these connections
ID Input Type Enabled Logging
pypilot-tcp NMEA0183 Yes No
pypilot-udp SignalK Yes No
Restarting SignalK. And I get the only the three metrics from UDP but no metrics for the NMEA data. Running OpenPlotter "Check System", I still get:
"Please enable a Signal K connection for Pypilot NMEA 0183 data"
The SignalK plugin @signalk/signalk-to-nmea0183 is installed but I dont want to output NMEA just want NMEA metrics in SignalK. Above there is discussion about translating NMEA to Signal K, but I'm not following it if that is what needs to happen.
pi@openplotter:~ $ nc -u -l 20220
{"updates":[{"$source":"OpenPlotter.I2C.pypilot","values":[{"path": "navigation.attitude","value":{"roll":-0.005427974123,"pitch":-0.0029496065170000006,"yaw":null}}]}]}
I also can see NMEA0183 data on TCP port 20220
pi@openplotter:~ $ nc 127.0.0.1 20220
$APXDR,A,-0.179,D,PTCH*59
$APXDR,A,-0.291,D,ROLL*4E
$APHDM,270.337,M*31
$GPGSA,M,3,28,17,30,19,06,01,03,07,22,11,,,2.3,1.0,2.0*38
In the SignalK interface http://localhost:3000/admin/#/dashboard under Server->Connections I added the UDP and the TCP connections
Input Type: NMEA0183
Enabled: yes
ID: pypilot-tcp
NMEA0183 Source: TCP Client
Host: localhost
port 10110
the same for the UDP port
Input Type: Signal K
Enabled: yes
Logging: no
SignalK source: UDP
Port: 20220
and pressed apply. I then can see these connections
ID Input Type Enabled Logging
pypilot-tcp NMEA0183 Yes No
pypilot-udp SignalK Yes No
Restarting SignalK. And I get the only the three metrics from UDP but no metrics for the NMEA data. Running OpenPlotter "Check System", I still get:
"Please enable a Signal K connection for Pypilot NMEA 0183 data"
The SignalK plugin @signalk/signalk-to-nmea0183 is installed but I dont want to output NMEA just want NMEA metrics in SignalK. Above there is discussion about translating NMEA to Signal K, but I'm not following it if that is what needs to happen.