This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting wind data into Pypilot
#27
(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
... Obviously not what you were looking for...
Reply


Messages In This Thread
Getting wind data into Pypilot - by kniven - 2022-08-12, 07:53 AM
RE: Getting wind data into Pypilot - by kniven - 2022-08-15, 02:52 PM
RE: Getting wind data into Pypilot - by ironman - 2022-08-13, 10:40 AM
RE: Getting wind data into Pypilot - by ironman - 2022-08-15, 04:38 PM
RE: Getting wind data into Pypilot - by kniven - 2022-08-15, 07:42 PM
RE: Getting wind data into Pypilot - by ironman - 2022-08-15, 11:44 PM
RE: Getting wind data into Pypilot - by kniven - 2022-08-16, 08:49 AM
RE: Getting wind data into Pypilot - by ironman - 2022-08-16, 09:45 AM
RE: Getting wind data into Pypilot - by kniven - 2022-08-16, 05:39 PM
RE: Getting wind data into Pypilot - by ironman - 2022-08-16, 06:21 PM
RE: Getting wind data into Pypilot - by ironman - 2022-08-16, 11:38 PM
RE: Getting wind data into Pypilot - by ironman - 2022-08-19, 06:32 PM
RE: Getting wind data into Pypilot - by kniven - 2022-08-17, 07:29 AM
RE: Getting wind data into Pypilot - by kniven - 2022-08-19, 08:10 AM
RE: Getting wind data into Pypilot - by kniven - 2022-08-20, 06:52 AM
RE: Getting wind data into Pypilot - by kniven - 2022-08-22, 07:56 AM
RE: Getting wind data into Pypilot - by kniven - 2022-08-22, 09:47 AM
RE: Getting wind data into Pypilot - by ironman - 2022-08-22, 12:57 PM
RE: Getting wind data into Pypilot - by kniven - 2022-08-22, 01:53 PM
RE: Getting wind data into Pypilot - by ironman - 2022-08-22, 03:31 PM
RE: Getting wind data into Pypilot - by kniven - 2022-08-23, 07:47 AM
RE: Getting wind data into Pypilot - by ironman - 2022-08-23, 10:44 AM
RE: Getting wind data into Pypilot - by kniven - 2022-08-27, 11:15 AM
RE: Getting wind data into Pypilot - by ironman - 2022-08-28, 01:29 PM
RE: Getting wind data into Pypilot - by kniven - 2022-08-27, 06:32 PM
RE: Getting wind data into Pypilot - by kniven - 2022-08-28, 05:42 PM
RE: Getting wind data into Pypilot - by ironman - 2022-08-29, 12:32 AM
RE: Getting wind data into Pypilot - by kniven - 2022-08-29, 06:30 PM
RE: Getting wind data into Pypilot - by stelian - 2022-09-04, 05:32 PM
RE: Getting wind data into Pypilot - by stelian - 2022-09-04, 06:08 PM
RE: Getting wind data into Pypilot - by stelian - 2022-09-04, 07:55 PM
RE: Getting wind data into Pypilot - by stelian - 2022-09-04, 09:09 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)