(2022-08-22, 03:31 PM)ironman Wrote: I just found out that coexisting of a nmea tcp/20220 and a signalk tcp/3000 connection to pypilot is that data (e.g., SOG) that you put into pypilot through nmea:20220 comes back through signalk:3000. This becomes visible as two sources for the same path in signalk's data browser *):I noticed the same thing, and I see your point, Ironman.
But I rather not block the incoming data from pypilot, as I am using the rudder feedback signal for displaying in WilhelmSK/grafana.
(2022-08-22, 07:28 PM)seandepagnier Wrote: Any chance you can rerun without the nmea stream with:
Code:diff --git a/pypilot/signalk.py b/pypilot/signalk.py
index da9230c..15b9180 100644
--- a/pypilot/signalk.py
+++ b/pypilot/signalk.py
@@ -343,7 +343,7 @@ class signalk(object):
try:
self.receive_signalk(msg)
except Exception as e:
- debug('failed to parse signalk', e)
+ debug('failed to parse signalk', msg, e)
return
self.keep_token = True # do not throw away token if we got valid data
I put this now for better debugging info.
Its because you have a different setup from me. My homemade wind sensors output nmea0183, so they are different from yours in the signalk generated and always have either $source or source and talker.
(2022-08-22, 07:28 PM)seandepagnier Wrote: Any chance you can rerun without the nmea stream with:
Code:diff --git a/pypilot/signalk.py b/pypilot/signalk.py
index da9230c..15b9180 100644
--- a/pypilot/signalk.py
+++ b/pypilot/signalk.py
@@ -343,7 +343,7 @@ class signalk(object):
try:
self.receive_signalk(msg)
except Exception as e:
- debug('failed to parse signalk', e)
+ debug('failed to parse signalk', msg, e)
return
self.keep_token = True # do not throw away token if we got valid data
I put this now for better debugging info.
Its because you have a different setup from me. My homemade wind sensors output nmea0183, so they are different from yours in the signalk generated and always have either $source or source and talker.
Code:
tc@pypilot:/mnt/mmcblk0p2/tinypilot/pypilot$ diff --git a/pypilot/signalk.py b/pypilot/signalk.py
diff: unrecognized option '--git'
BusyBox v1.26.2 (2017-05-05 07:13:57 UTC) multi-call binary.
Usage: diff [-abBdiNqrTstw] [-L LABEL] [-S FILE] [-U LINES] FILE1 FILE2
Compare files line by line and output the differences between them.
This implementation supports unified diffs only.
-a Treat all files as text
-b Ignore changes in the amount of whitespace
-B Ignore changes whose lines are all blank
-d Try hard to find a smaller set of changes
-i Ignore case differences
-L Use LABEL instead of the filename in the unified header
-N Treat absent files as empty
-q Output only whether files differ
-r Recurse
-S Start with FILE when comparing directories
-T Make tabs line up by prefixing a tab when necessary
-s Report when two files are the same
-t Expand tabs to spaces in output
-U Output LINES lines of context
-w Ignore all whitespace