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
Separate NMEA 0183 input profiles for docking and offshore?
#1
Hi everyone,
I'm running OpenPlotter 4 on a Raspberry Pi 5 and use the same system for both marina docking and offshore sailing. I have noticed that I need different NMEA 0183 input settings depending on the situation because some instruments are only connected while docked, while others are active only when I'm underway.
Is there a way to create and quickly switch between multiple serial input profiles without manually enabling, disabling, or editing each connection every time? For example, I'd like to have a "Dock" profile and an "Offshore" profile that restore all serial ports, baud rates, and related Signal K connections with a single action.
If this isn't currently supported, how are other OpenPlotter users handling this workflow? I'd be interested in hearing practical solutions that don't require reinstalling plugins or editing configuration files before every trip.
Reply
#2
(2026-07-11, 08:55 AM)sophiasm Wrote: Hi everyone,
I'm running OpenPlotter 4 on a Raspberry Pi 5 and use the same system for both marina docking and offshore sailing. I have noticed that I need different NMEA 0183 input settings depending on the situation because some instruments are only connected while docked, while others are active only when I'm underway.
Is there a way to create and quickly switch between multiple serial input profiles without manually enabling, disabling, or editing each connection every time? For example, I'd like to have a "Dock" profile and an "Offshore" profile that restore all serial ports, baud rates, and related Signal K connections with a single action.
If this isn't currently supported, how are other OpenPlotter users handling this workflow? I'd be interested in hearing practical solutions that don't require reinstalling plugins or editing configuration files before every trip.

The details are held in the file /home/pi/.openplotter/openplotter.conf but as there is no inbuilt facility to do it in openplotter any solution is a bit of a fudge.

I have tried the following - set up your serial connections you want in your docked profile and in a terminal:

Code:
cd /home/pi/.openplotter
sudo cp openplotter.conf openplotter.conf.docked

Then set up the connections as you want then in your offshore profile and:
 
Code:
cd /home/pi/.openplotter
sudo cp openplotter.conf openplotter.conf.offshore
If you change any of the openplotter settings in the future you'll need to do the above again to keep them up to date.


When you start OP you can manually switch between profiles by going into the directory and copying the profile you want so that it overwrites openplotter.conf but it's much easier if you do this with a script. I've tested it with a python script which seems to work fine. 

I've done this by placing a script in /home/pi/.openplotter/openplotter called profile.py. All I do then is to run the script:

Code:
python3 /home/pi/.openplotter/profile.py

And select which profile you want. Then restart signal K

I know it's messy but from my tests it seems to work ok.

NOTE I have done only basic testing !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)