Quick guide for creating and using Signal K on Raspberry Pi


Download wheezy image from here

start with settings for the local wifi system


update and upgrade the system

$ sudo apt-get update
$ sudo apt-get upgrade

follow the installation guide for Signal K on github
install the dependencies first
$ sudo apt-get install -y curl git build-essential 

get the node.js
 
$ curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -

$ sudo apt-get install -y nodejs npm

test your work, I got v9.3.0 on Dec 2017

$ node -v

I didn't install a Bonjour service
go over to install the Signal K Node Server

$ git clone https://github.com/SignalK/signalk-server-node.git

and install it - will take awhile

$ cd signalk-server-node

$ npm install

there was some deprecation warnings, I ignored. When it seems the process will never end, I stopped it and use a installation module after module. Start a test

$ bin/nmea-from-file

or do a

$ npm test

this will tell you the missed module like Cannot find module 'pem'
Now install a single module
$ npm install pem


publish test data

$ bin/nmea-from-file

and try to catch them

Start a browser and connect to http://ip-of-your-raspi:3000/signalk

or install a web socket command line interface to get a stream of data

$ npm install -g wscat

$
wscat --connect 'ws://localhost:3000/signalk/v1/stream?stream=delta'

To get your personal nmea data please have a look at the Configuration published in a blog (for Arduino but also useful for RaspPi)


At the end when all is running set up your AFTrack with this gps settings:
- Gps Mode. Online
- Online Gps: ip of your raspi
- Online Gps Port: 3000
- Select Signal K