Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 05-06-2021, 17:33   #1
Registered User
 
wefleenor's Avatar

Join Date: Nov 2010
Location: Pittsburg, CA
Boat: 49ft custom power catamaran
Posts: 120
read and use signalK data

Is it possible to have Openplotter receive signalK data from another server and use those data in Openplotter? Thanks.
wefleenor is offline   Reply With Quote
Old 05-06-2021, 18:17   #2
Registered User

Join Date: Mar 2013
Location: Ottawa
Boat: Hunter 37C
Posts: 59
Re: read and use signalK data

Openplotter is a Raspberry Pi Linux distribution that contains a number of pre packaged marine applications. Two of the primary apps being OpenCPN (a chart plotter) and SignalK (a marine data aggrigator).

I think your question is, can one SignalK instance send data to another SignalK instance and the answere is yes. These can be running on the same computer or on a separate computer.

SignalK is very flexible. Once all the data flowing to a master SignalK source, OpenCPN can be pointed to that data source for its required data.

I hope this helps you understand some of the nuances of the various terminology.
B25Matt is offline   Reply With Quote
Old 06-06-2021, 02:04   #3
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,115
Re: read and use signalK data

You can use the data of SignalK simply on other systems. Point in the receiving system:

network signalK (then the ipadres of the server can be wired or wireless) port 3000

The signalK dashboard is: (Ip adress server):3000

It is HTML en can be used on every system.

Then can also be done with the instruments application MXTommy/Kip:

(Ipadres server):3000/@mxtommy/kip/#/page/0

But you have to install MXTommy/kip first from the webapps and arrange all your instruments.



Bram
verkerkbr is offline   Reply With Quote
Old 06-06-2021, 15:37   #4
Registered User
 
wefleenor's Avatar

Join Date: Nov 2010
Location: Pittsburg, CA
Boat: 49ft custom power catamaran
Posts: 120
Re: read and use signalK data

My apologies for failing to properly define my question. I currently run a Pi4 with openplotter that takes in gps and depth from nmea2000 and heading from nmea0183. I also have radar overlay on it. I wish to run a second Pi4 with openplotter just to have a full screen and view on a different scale the plotter. How can I retrieve the gps from the first Pi4 so the plotters are synced? Thanks.

FWIW - I have a 3rd Pi4 which I sue to obtain the signalK data and plot values of interest.
wefleenor is offline   Reply With Quote
Old 06-06-2021, 15:51   #5
Registered User
 
Dsanduril's Avatar

Join Date: Aug 2011
Location: Petersburg, AK
Boat: Outremer 50S
Posts: 4,229
Re: read and use signalK data

The options are myriad, some depend on how much you want to get into the details. And some depend on how you have the signals configured on the primary (do they go into Signal K and then into O, or are there connections to the signals directly in the Connections tab of O?).

To me, by far the simplest, if OpenCPN is always running on the primary Pi, would be to go into OpenCPN on that Pi, configure a new network connection, "output on this connection", filter the output to only the sentences you actually need on the remote installation.

On the remote installation in OpenCPN create a new network connection and point it at the primary system. Voilą, whatever data you told OpenCPN to put on the network on the primary is available to the remote.

You can also easily do the same thing using Signal K, and by default the Signal K server is already running as a service on the primary, in that case you would create a new network connection on the secondary and point it at the Signal K server on the primary.

There are probably a half-a-dozen other ways to skin this cat, the point being that once the data is on the first Pi it can be put on a network connection and from there any device on the same network can receive the data.
Dsanduril is offline   Reply With Quote
Old 06-06-2021, 15:55   #6
Registered User

Join Date: May 2011
Location: Lake Ont
Posts: 8,561
Re: read and use signalK data

Quote:
Originally Posted by wefleenor View Post
FWIW - I have a 3rd Pi4 which I sue to obtain the signalK data and plot values of interest.
Wow, I've heard Americans are litigious, but I didn't think it extended to single board computers.

(but seriously, very interesting thread )
Lake-Effect is offline   Reply With Quote
Old 07-06-2021, 07:50   #7
Registered User

Join Date: Apr 2018
Location: Saugatuck, MI
Boat: Nauticat 32
Posts: 286
Re: read and use signalK data

I'm not convinced there is a real good reason to run multiple instances of SignalK on a boat. It seems to just over-complicate things. The whole point of SK is to get ALL the data from different sources and protocols in one cohesive system, which then disseminates that data. In my set up, I have two Pis (about to add a third), but only one is running SignalK and everything else connects to that. Just my way of doing things...
SCarns is offline   Reply With Quote
Old 07-06-2021, 14:35   #8
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: read and use signalK data

Don't forget our SignalK pages here
and if you have additional information please edit. (if you are a regular user, just PM me)
rgleason is offline   Reply With Quote
Old 07-06-2021, 17:22   #9
Registered User
 
wefleenor's Avatar

Join Date: Nov 2010
Location: Pittsburg, CA
Boat: 49ft custom power catamaran
Posts: 120
Re: read and use signalK data

Thanks Dsanduril, I think I can work out the details from your explanation.

SCarns, would you care to share how you connect the others to the server? Thanks.
wefleenor is offline   Reply With Quote
Old 08-06-2021, 04:17   #10
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,115
Re: read and use signalK data

Quote:
Originally Posted by rgleason View Post
Don't forget our SignalK pages here
and if you have additional information please edit. (if you are a regular user, just PM me)

Hi R. Gleason,

what is missing is how to install SignalK server on exsisting Linux system:

At first you need to install NPM (nodejs): sudo install npm.

Then the installation of SignalK:

sudo npm install -g --unsafe-perm signalk-server

Then must set the SignalK server to start:

sudo signalk-server-setup

Most of the items are: no

Then the signalK server starts at the starting of the system.

SignalK is HTML en can the dashboard be used in every browser: localhost: 3000

Or from a remote system: ipadres signalk server: Ip:3000

in OpenCPN you can use the signalk direct with: netwerk localhost signalk and poort 3000

From a remote server change localhost to ipadres of the server computer.

Windows install is also posible but not with the above procedure.


Bram
verkerkbr is offline   Reply With Quote
Old 08-06-2021, 08:18   #11
Registered User

Join Date: Apr 2018
Location: Saugatuck, MI
Boat: Nauticat 32
Posts: 286
Re: read and use signalK data

Quote:
Originally Posted by wefleenor View Post
SCarns, would you care to share how you connect the others to the server? Thanks.
I connect mine through wired ethernet and a router, but wifi would work well and the Pi can be set up as a wireless access point, so you can connect extra Pis to that one pi via wifi.
SCarns is offline   Reply With Quote
Old 08-06-2021, 17:25   #12
Registered User
 
wefleenor's Avatar

Join Date: Nov 2010
Location: Pittsburg, CA
Boat: 49ft custom power catamaran
Posts: 120
Re: read and use signalK data

Thanks, SCarns.
wefleenor is offline   Reply With Quote
Old 05-08-2023, 12:03   #13
Registered User

Join Date: May 2022
Posts: 15
Re: read and use signalK data

I installed SignalK on a Raspberry. This Raspberry is directly connected with Tinypilot as the server. On the Raspberry I connected a GPS receiver with an USB connection. That is all working well and I see in SignalK the data coming in, from the Tinypilot (compass) and from the GPS receiver (satellite).

On a tablet I installed OpenCPN with a Netwerk connection to SignalK/ Network/ IPadress of the Raspberry/Network port 3000. If I use the NMEA debugging of OpenCPN, I don't see any data coming in or going out. Also no GPS or Compass connection.

My question: A SignalK connection from OpenCPN on the tablet, can I normally see data that is coming in with NMEA0183 (what I expect with debugging)? Or is there a special reason for no connection between SignalK and OpenCPN?

Thanks
Bronno Mulder is offline   Reply With Quote
Old 05-08-2023, 23:53   #14
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,245
Re: read and use signalK data

Bronno..
Protocol:
NMEA0183 and Signal K data are two different data formats. SignalK data can't be seen in "NMEA Debug window"

If you want NMEA0183 from SignalK(SK) you have to use protocol TCP and port 10110.
If you want SignalK data from SK you have to use protocol Signal K and port 3000. (Please disable "Automatic server discovery" once used.)

The connection between OCPN and SK works fine if the tablet and Raspberry are both connected to the same IP network segment. (Like e.g. 192.168.1.xxx)
Hakan is offline   Reply With Quote
Old 06-08-2023, 04:33   #15
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: read and use signalK data

Some of these reports have been added to the Opencpn - SignalK manual.
Please feel free to add and edit this manual. I can't be relied on to do this all the time.
If you need access PM me!
rgleason is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenCPN and SignalK deanfourie OpenCPN 14 20-03-2020 04:09
Epsolar plugin for SignalK dmdelorme Electrical: Batteries, Generators & Solar 0 13-02-2019 11:28
Water Temp in OCPN via SignalK deepthought OpenCPN 5 22-09-2018 03:51
SignalK development ? verkerkbr OpenCPN 122 02-04-2018 10:30

Advertise Here


All times are GMT -7. The time now is 01:57.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.