OpenPlotter V2, install guide
Updated 2023-01-02 !OpenPlotter(OP), a Boat Navigation application, is really a nice and simple installation of
- OpenPlotter(OP)
- OpenCPN(OC)
- SignalK(SK)
and other supporting applications for Your boat.
Please note that OP V2 is outdated use .......
........ OP V3 instead !!!!
This post, despite updated links to v2, is more kept as help to redirect to v3
Intro
Don't use the latest Raspberry Pi OS, Bullseye, with OP V2, it will not work !
Check out OP V3 which will run Bullseye 32/64 Bit, but please note that all applications are not released !
Just want to install SK ? Link here.
Please note ! There are 2 posts, using OpenCPN 5.2 +, with a more detailed information of the functions and the installations.
Installing from image(Option A)
In the documentation You can choose from different files with links for download.
Choose one of the files, download, unzip and use these instructions, with the downloaded OP file. Then go on with Final setup below.
Installing from Raspberry Pi OS(Option B)
This method is not possible anymore for V2 since there are no deb files and releases at GitHub.
I used the
Raspberry Pi OS Lite(RPiOS), Buster headless install, and just installed Pixel, VNC(or RDP) and
Chromium.
In a terminal/ssh session, always start updating with
$ sudo apt update && sudo apt full-upgrade -y && sudo apt clean
continue and install the dependencies
$ sudo apt install python3-wxgtk4.0 python3-ujson python3-pyudev whois vlc
Mark the row with the application You want to install and click on "Install" in the right part.
Every new application will create a separate Icon in "Other" from where it will be started.
After installing the "Serial" OP application You can add serial USB devices to OP.
(Another way, not recommended, is to add them direct in SK)
SK <=> OC connection
With both SK and OC, before 5.2, installed configure the connection between them, in OC, with;
Missing SDR AIS ?
OP is "shipped" with the the app "SDR VHF" which installs calibration programs and "rtl_ais". Instructions here.
It's a "systemd" process handled by the config file"/etc/systemd/system/openplotter-rtl_ais.service"
In a terminal/ssh session, always start updating with
$ sudo apt update && sudo apt full-upgrade -y && sudo apt clean
$ sudo apt install python3-wxgtk4.0 python3-ujson python3-pyudev whois vlc
Download the latest deb file from
https://github.com/openplotter/openplotter-settings/releases
$ wget https://github.com/openplotter/openplotter-settings/releases/download/v2.9.1-stable/openplotter-settings_2.9.1-stable_all.deb
Install with
$ sudo apt install ./openplotter-settings_2.9.1-stable_all.deb
Final setup
In the GUI, reached via
VNC viewer,
or direct connected with keyboard/mouse/monitor, open "Applications
=> Other => Settings"
Click on ”Add Sources” and after that "Update Candidates" which will
update the list of possible applications.
Mark the row with the application You want to install and click on "Install" in the right part.
Every new application will create a separate Icon in "Other" from where it will be started.
After installing the "Serial" OP application You can add serial USB devices to OP.
(Another way, not recommended, is to add them direct in SK)
SK <=> OC connection
With both SK and OC, before 5.2, installed configure the connection between them, in OC, with;
- Click the Options-icon
- Connections-tab
- Add Connection
- Network
- Protocol: TCP
- Address: "localhost"
- DataPort: 10110
- Check “Show NMEA Debug Window” to see incoming messages.
Missing SDR AIS ?
OP is "shipped" with the the app "SDR VHF" which installs calibration programs and "rtl_ais". Instructions here.
It's a "systemd" process handled by the config file"/etc/systemd/system/openplotter-rtl_ais.service"
If you want to check manually if there is AIS data available go to "SDR VHF => Processes" stop the AIS app and at a command line run the program with
$ sudo rtl_ais -R on -n
which will show the NMEA 0183 messages. For more information, or if You just want to install the AIS software without OP, check here
OP update
If You have been running OP for a while and want to update to the latest development, update with;
- In "OpenPlotter Settings", click on "Add Sources", then "Update Candidates" to check if there any updates
- In a ssh/Terminal session update, OP and RPiOS, with $ sudo apt full-upgrade -y && sudo apt clean
or
- use the "Install all available updates" button which will update everything except for the RPi OS
Remark
Don't miss the OP active forum !!
Thank you for a very useful installation guide. Worked fantastic.
ReplyDeleteThx! 👍
Deletegreat documentation - thanks
ReplyDeletesome questions:
- how to get also the op desktop settings?
- should one log into chrom with his usual credentials or must be the local username?
- somehow http://localhost does not respond
Thx. If I get You right the GUI, Pixel, shown in the picture, is reached via VNC, if running headless. There is a link in the start of the post "Rasbian Lite version". Otherwise via direct connected keyboard/mouse/monitor.
DeleteI may have not explained myself clearly. I use VNC and it works fine, but following your description with Raspian Lite, adding the GUI and installing the op-installer (settings, etc) I do not get the desktop gui configured. In op there was a default-op-desktop structure.
DeleteOK, in OP V2 its changed, You will have one app, in the "Other" folder per function. All according to the "Apps" list displayed in "OpenPlotter Settings".
DeleteI am doing a vanilla install on a raspi 4, and all is well until installing the 'signalk installer' from openplotter settings. It runs through the scripts fine, but then signalk won't load and dumps with an error as follows: Error: libnode.so.64: cannot open shared object file: No such file or directory
ReplyDeleteI also tried to completely remove nodejs and signal k, install via the instructions on the signalk git site, and also get errors. I'm presuming there as an update that broke it and that it's not openplotter-settings, but unsure. Any thoughts or suggestions?
Hi ! There have been a major update https://github.com/SignalK/signalk-server-node/pull/879 which maybe can be the origin. Will check.
DeleteSorry, but just did a fresh install on a RPi 4 and didn't get any error ?? So no clue. One way is to create an issue at the OP forum.
DeleteHi, Perfect using your links for update :-)
ReplyDeleteThere is something wrong with the link in the last update under settings:
XyGrib missing source:https//www.free-x.de/debian
Yes, got the same message from the beginning, but after a "Add Sources", "Update Candidates" in the GUI and then, "sudo apt update && sudo apt upgrade -y && sudo apt clean", in a Terminal You will get the latest and the message will disappeared.
DeleteYes that made the trick :-)
DeleteOnly thing now is that the charts in XyGrib are missing.
What did I do wrong?
I'm no GRIB guy, but starting the application shows a worldmap ?
DeleteNow I'm a GRIB guy ;-) Learned and tested with a download from https://opengribs.org/en/gribs and it works very nice.
DeleteNice😂 Xygrib with charts are included in the latest beta. Works perfect !
Deletecan't get signalk to open... in chromium : localhost does not allow connection...
ReplyDeleteHard to tell when I don't know which option You used....
DeleteDumb Question, is there a download for the V2 Stable? All I can find on the download page is the "not for production" version"
ReplyDeleteMany thanks
Matt
I can understand the confusion ! The images from 2020-01-13 are labeled "pre-release" but as You see in the picture in the beginning of this post the most important applications are labeled "stable". I have been running OP V2 since august and it works very well. So just update as the stable apps arrive.
DeleteThank you for clearing that up. :-)
DeleteMatt
my sdcard crashed an so iam have do install the distro again.... i try v2 but its not usable... first the gpio events are not implemented, big fail.. 1w-sensors are not implemented...big fail..there are so many apps which didnt interact in one overview ... but the look is better than in v1.. but in an productiv situation i prefer v1...
ReplyDeleteThe V2 is rock solid and I think the SK NodeRed plugin solves Your missing points. For 1w sensors use the SK "signalk-raspberry-pi-1wire" plugin.
DeleteGot htese messages in installing dependencies... what can I do ? (not very used to linux)
ReplyDeleteE: Unable to locate package python3-wxgtk4.0
E: Couldn't find any package by glob 'python3-wxgtk4.0'
E: Couldn't find any package by regex 'python3-wxgtk4.0'
Did You really run "sudo apt update" ? I did a new installation with Raspberry OS yesterday without any trouble. Another way is to use option A mentioned above.
Deleteit is an install i use for for a year now with v1 alpha that i want to upgrade to v2. Yes I ran the upgrade on the raspi 3b and followed all steps
DeleteIf I understand it right... Unfortunately You can't upgrade from OP 1 => 2. I really recommend starting from scratch with a fresh SD card, for OP 2, with option A or B mentioned above.
Deleteok... and at the same time I want to upgrade hardware from raspi3 to raspi4, so I will do a fresh install... thanks... keep you posted
ReplyDelete👍 Are doing a series of posts starting with this one https://pysselilivet.blogspot.com/2020/07/understandinstall-openplotteropencpnsig.html which maybe will help You.
DeleteSo far everything is working on a new install of OP 5.2.1. Found I had to force 4800 Baud on my ancient Delorme GPS dongle to get it to work. Now onto AIS. I'm having problems getting working channels. At first I blamed it on my antenna. Was using the one that came with the RTL dongle. Tried the masthead VHF antenna today with the same results. Ran the test and got these results:
ReplyDeletepi@openplotter:~ $ sudo systemctl stop openplotter-rtl_ais
pi@openplotter:~ $ sudo rtl_ais -R on -n
Edge tuning disabled.
DC filter enabled.
RTL AGC enabled.
Internal AIS decoder enabled.
Buffer size: 163.84 mS
Downsample factor: 64
Low pass: 25000 Hz
Output: 48000 Hz
Found 1 device(s):
0: Realtek, RTL2838UHIDIR, SN: 00000001
Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Log NMEA sentences to console ON
AIS data will be sent to 127.0.0.1 port 10110
Tuner gain set to automatic.
RTL AGC mode ON
Tuned to 162000000 Hz.
Sampling at 1600000 S/s.
Allocating 12 zero-copy buffers
Any suggestions? My location is Portsmouth, NH.
As an idea just the antenna and a defect SDR, since everything else looks right.
DeleteI'm getting good reception on the marine VHF radio on the boat. Don't have a way to test the antenna though. I didn't use a splitter, just connected directly. The SDR works well in the FM broadcast frequency range with the antenna it came with at home when I tested it with SDRSharp. Came in somewhat on marine band 156.8 Mhz. (channel 16). Can't get the local marine weather. I get it fine on my handheld here.
DeleteThink I'll try another more directional antenna and a new dongle.
Thanks for your help.
What am I doing wrong????
ReplyDelete-I have formatted a good SD card 32 Gb,
-Downloaded the Noobs and img files
-extracted the NOOBS in a directory and than copied to the SD card with CTRL+C CTRL+V command,
-SD in to the RPI and power it ON.....
on the screen appears on Rasperry at the tope left corner and a series of text where the most important is the message:
recover4.elf not found (6)
The same if I repeat all over again and install the img file.
I changed SD card.... same result......
I reprogrammed the same SD card with Raspbian..... and all works fine.
I don't get it.... please some idea?
It looks to me that the SD card is good ans the RPI as well....
so What am I doing wrong?
Thanks for your help and time
Andrea
Hard to tell.... But since it works with the Raspbian install why not use the option B above ?
Delete