SailawayNMEA

sailawaynmea panel icon

SailawayNMEA generates a NMEA feed from the SimGame 'Sailaway'.

Aim

To use OpenCPN as a chart display for the Sailaway multiplayer SimGame.

Requirements

OpenCPN 5.0.0 and above.

SailawayNMEA

This plugin was inspired by and used a lot of code ideas from the OpenSource C# program 'SailawayToNMEA' created by Daniel López Lacalle:

Sailaway:

Sailaway is a SimGame player that can be installed on Windows and OSX, or via Wine on Linux. It connects to a multiplayer sailing simulator/game on the Internet. Highly realistic.
Over 9000 players so far. The basic edition is free!

SailawayNMEA uses the API offered by 'Sailaway' to provide a JSON feed from that program to OpenCPN. The JSON is then read and the NMEA sentences produced fed to OpenCPN.

An Internet connection is needed to load the boat data and provide the feed.
After registering, playing and without running the Sailaway game you have 7 days where you can still obtain a feed, which could be useful for testing NMEA work.

Important:

You need to have registered with Sailaway, chosen a boat and started sailing to provide a feed to OpenCPN.
It is best to start sailing at minumum speed! Registration gives you a user name which is used to load the boats you are sailing.

Install

The OpenCPN program should be closed before starting the installation. Double-click on the installer '.exe' file.

0.0

Follow the steps and finish installing.

Start OpenCPN and select Options→Plugins from the toolbar. Enable the SailawayNMEA plugin.

0

This will place the Sailaway button on the toolbar.

1

Using the plugin

Click the plugin button and the dialog will open.

3

The plugin uses UDP to feed the data to OpenCPN. The connection to the Sailaway server is via TCP/IP.

Default ports are 57343 for UDP and 10110 for TCP/IP. Set them up as shown here:

4

Enter your user name. Press 'Enter' or the button 'Load Boats' to download the boats you have chosen in Sailaway from the server.

5

6

It is useful to open Dashboard to see the data.

7

To avoid creating excessive load on the Sailaway server the sailing data is only downloaded every 10 minutes.This is at the request of the developer of Sailaway.

To provide a continuous NMEA feed DR positions are calculated. You can disable this but performance will be impacted.

Press the 'Start Server' button to start the feed of sailing data.

8

If you have Sailaway running and you alter course you will see this on the chart display.

9

10

Just remember the 10 minute refresh rate.

The NMEA sentences produced from the sailing data.

11

I positioned myself in Sailaway so that I could see another player in the distance.

12

Depths across the virtual world have been added to the server. Transducer depth can be set. (This is not a good example)

13

To compare with the data displayed in the Sailaway game.

14

A course alteration.

a

b

TODO:

1. Save user name in config.

2. Extract the route from the JSON feed and display on the chart.