Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 22-05-2020, 22:35   #1
Registered User
 
MikadoII's Avatar

Join Date: Jul 2012
Location: Mount Dandenong Vic Australia
Boat: S&S Defiance 30 ft.
Posts: 14
Remote position and track plotting.

As a complete beginner with OpenCPN I am thinking of using it as a plotter at home to display a boat's position out on the water. The position info could be transferred via the internet or possibly as sms messages on the 4G network. I am an Engineer and Programmer but know nothing of OpenCPN. Has anyone done anything along these lines please?
cheers
Geoff
__________________

__________________
Twits twitter
MikadoII is offline   Reply With Quote
Old 22-05-2020, 23:42   #2
Registered User
 
Freedom45's Avatar

Join Date: Jan 2012
Location: Somewhere in the Pacific
Boat: Kristen 52
Posts: 281
Re: Remote position and track plotting.

We keep track of buddy boats while underway by dropping a mark then edit it with their position.....
__________________

__________________
I Sail, Therefor I ARRrrr...
Freedom45 is online now   Reply With Quote
Old 22-05-2020, 23:54   #3
Registered User

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,005
Re: Remote position and track plotting.

should be many ways to do it without too much programming if you have web access on the boat, node-red might be the quickest, on the boat use node-red to send the nmea sentence as mqtt to a web based mqtt broker then at home more red to get that nmea off the mqtt broker and forward it as as a local udp message which opencpn can see. Haven't tried that though...
conachair is online now   Reply With Quote
Old 23-05-2020, 00:48   #4
Registered User

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,005
Re: Remote position and track plotting.

Quote:
Originally Posted by conachair View Post
Haven't tried that though...
Just tried it, it works. a simulator running on a raspbery pi, node red sending to a cloud based mqtt broker, laptop with node red reading the mqtt and sending it to opencpn via udp. All nmea messages getting sent, not just lat & long

This is a free cloud based mqtt broker though anyone can see the data should they be interested

conachair is online now   Reply With Quote
Old 23-05-2020, 17:56   #5
Registered User
 
MikadoII's Avatar

Join Date: Jul 2012
Location: Mount Dandenong Vic Australia
Boat: S&S Defiance 30 ft.
Posts: 14
Re: Remote position and track plotting.

Conachair. Thanks for your suggestion and testing. I will add node-red and mqtt to OpenCPN for my study list and see what I can do. Ive also decided that I should know more about Linux so the current isolation is not all that bad a thing at the moment.
__________________
Twits twitter
MikadoII is offline   Reply With Quote
Old 23-05-2020, 19:17   #6
Registered User
 
MikadoII's Avatar

Join Date: Jul 2012
Location: Mount Dandenong Vic Australia
Boat: S&S Defiance 30 ft.
Posts: 14
Re: Remote position and track plotting.

Quote:
Originally Posted by conachair View Post
should be many ways to do it without too much programming if you have web access on the boat, node-red might be the quickest, on the boat use node-red to send the nmea sentence as mqtt to a web based mqtt broker then at home more red to get that nmea off the mqtt broker and forward it as as a local udp message which opencpn can see. Haven't tried that though...
Could you please post your node-red diagram.
__________________
Twits twitter
MikadoII is offline   Reply With Quote
Old 23-05-2020, 19:31   #7
Registered User

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,005
Re: Remote position and track plotting.

Quote:
Originally Posted by MikadoII View Post
Conachair. Thanks for your suggestion and testing. I will add node-red and mqtt to OpenCPN for my study list and see what I can do. Ive also decided that I should know more about Linux so the current isolation is not all that bad a thing at the moment.
Go for signalk, no question! Runs on linux or windows but a raspberry pi is perfect for use on a boat, openplotter has everything you might need.
It's all in there, node-red available as a signalk app and mqtt available as an app and as a node-red node. Little signalk can't do.
Sorry, deleted the flows already but looked ike this >

TCP node reads the data signalk puts out on TCP 10110, which can be basically anything coming in which can be an nmea sentence. This get sent to a cloud mqtt broker. Other end is pretty much the reverse though would be better going mqtt to UDP the set up a signalk connection to the udp port. Then you gain all the benefits of having the data as signalk.


http://signalk.org/
and a stripped down demo>
http://demo.signalk.org/admin/#/dashboard
conachair is online now   Reply With Quote
Old 23-05-2020, 19:43   #8
Registered User
 
Dsanduril's Avatar

Join Date: Aug 2011
Location: Petersburg, AK
Boat: Outremer 50S
Posts: 2,950
Re: Remote position and track plotting.

And if the boat has AIS you could either a)use a receiver if they are in range of your home to get their position; or b)subscribe to an internet AIS provider that provides such data. Both of those cost $, but may be viable depending on what options are available.

If you just want to see position and they have AIS you could always just use MarineTraffic or one of their competitors.
Dsanduril is offline   Reply With Quote
Old Yesterday, 18:20   #9
Registered User
 
MikadoII's Avatar

Join Date: Jul 2012
Location: Mount Dandenong Vic Australia
Boat: S&S Defiance 30 ft.
Posts: 14
Re: Remote position and track plotting.

Conachair. At the moment I am trying to get on top of OpenCPN, Linux for a RasbPi, Node-red, MQTT etc. Also I am limited by the boat device.

It uploads the lat and long to ThingSpeak on a regular basis. Using node-red I can get this info down as follows:


"{"created_at":"2020-05-30T00:02:29Z","entry_id":3,"latitude":"-38.31","longitude":"145.2043","elevation":null}"


My problem is getting it into OpenCPN. My node-red diagram is below

OpenCPN is set up as below
What am I missing please? Your assistance would be greatly appreciated.
Geoff
Attached Thumbnails
Click image for larger version

Name:	gjc.jpg
Views:	2
Size:	26.3 KB
ID:	216159   Click image for larger version

Name:	gjc1.jpg
Views:	2
Size:	37.5 KB
ID:	216160  

__________________

__________________
Twits twitter
MikadoII is offline   Reply With Quote
Reply

Tags
remote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
ENC Chart Plotting and Android Capt. Mike Maurice Navigation 15 02-12-2019 05:19
Tracking and plotting multiple GPS devices BrianCarrollr OpenCPN 35 01-12-2016 14:32
Plotting Route / Track for Website / Blog hoppy Navigation 5 22-09-2011 11:34
Plotting Position noelex 77 Navigation 5 05-04-2010 02:04

Advertise Here


All times are GMT -7. The time now is 02:17.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.