Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 07-12-2016, 10:51   #1
Registered User
 
pa36651's Avatar

Join Date: Apr 2010
Location: Sweden
Boat: Hanse 342
Posts: 31
Pluggin tracker?

I would like a pluggin that work as a tracker for other boats during racing etc.
The idea is that a OCPN pluggin read data from a webserver. On the webserver boat data (GPRMC) is stored in a SQL-DB (eventID, boat name, time, date, speed, course).
The webserver SQL-DB get the data from a mobile phone with any OPENGTS-compatible app up and running.
Every boat joining a race (or similar) has the phone activated during the race. Everyone with OCPN+pluggin and eventID available can follow the race.
Wish list:
1. All boats shown in OCPN.
2. Boat name visible (option toggle on/off).
3. Tracking visible for all boats (option toggle on/off).
4. Optional speed/course in a info window when boat when mouse over.

The config of the pluggin must include:
5. URL for webserver.
6. Start date.
7. Start time
8. eventID.
9. time interval between data collection.
10. Own boat name (since it shall not be plotted in own OCPN window).

I have a webserver up and running for data collection, and also a viewer.
URL: www.durodrive.com

I would like to code the pluggin, but I'm total novice in coding.

/Petter
__________________

pa36651 is offline   Reply With Quote
Old 11-12-2016, 10:36   #2
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 5,518
Pluggin tracker?

Simplest thing is to convert the data to AIS NMEA format and send to OpenCPN via TCP/IP. No plugin required as O already displays track and other info for AIS targets.
__________________

transmitterdan is offline   Reply With Quote
Old 11-12-2016, 17:23   #3
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 13,530
Re: Pluggin tracker?

What a great idea.
I agree with TDan, convert the data to Nmea 0183 AIS sentences to be compatible with OpenCPN. The AIS format and OpenCPN's handling of AIS is built for this type of application.

However won't there need to be a plugin to connect to the website and create the data connection? Just as the plugin Squiddio downloads data from the internet?
In fact, that might be a good example to look at for coding.
rgleason is offline   Reply With Quote
Old 13-12-2016, 09:05   #4
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 13,530
Re: Pluggin tracker?

Might need an easy way to turn off normal AIS nmea in, which is done at the menubar AIS or in options - connections, and still have the race ais via internet showing.
rgleason is offline   Reply With Quote
Old 13-12-2016, 09:08   #5
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 13,530
Re: Pluggin tracker?

Yes TDan as usual, you're right, Tcp/ip connection will do it, just like the San Franciso AIS over the internet ..
rgleason is offline   Reply With Quote
Old 13-12-2016, 14:03   #6
Registered User

Join Date: May 2012
Posts: 656
Re: Pluggin tracker?

Had no luck with the ip address but "ais.exploratorium.edu" port 80 got me a San Francisco feed.

Mike

ok, found it ... 192.174.2.16 works.
Rasbats is offline   Reply With Quote
Old 20-12-2016, 00:41   #7
Registered User
 
pa36651's Avatar

Join Date: Apr 2010
Location: Sweden
Boat: Hanse 342
Posts: 31
Re: Pluggin tracker?

SanFransisco solution seems to be simple. I will try ta make an output on durodrive.com according to AIS standard. I will need ta make fake MMSI.... hopefully O does support that.
pa36651 is offline   Reply With Quote
Old 21-12-2016, 05:48   #8
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 5,518
Pluggin tracker?

pa,

You can look at my AIS converter Python script. It creates the proper NMEA data that OpenCPN requires. Look on github.com/transmitterdan
transmitterdan is offline   Reply With Quote
Old 23-12-2016, 02:20   #9
Registered User

Join Date: Sep 2012
Location: Baikal
Posts: 418
Re: Pluggin tracker?

It can have an idea how to relate to the Swedish open source gpsgate server monitoring server?
Baikal is offline   Reply With Quote
Old 23-12-2016, 05:56   #10
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 5,518
Re: Pluggin tracker?

Quote:
Originally Posted by Baikal View Post
It can have an idea how to relate to the Swedish open source gpsgate server monitoring server?
I think this might be an interesting project. In principle this should be something that can work. AIS tracking needs a text vessel name, coordinate, speed and heading. I think this data is available from gpsgate server. Gpsgate has an NMEA output via UDP among its choices. If it sends the required data in NMEA format then my Python script could be modified to translate that to AIS messages and send them to OpenCPN. In this way gpsgate vehicles could be shown in OpenCPN.

Does anyone have an NMEA output sample from gpsgate or can tell me how to get one?
transmitterdan is offline   Reply With Quote
Old 23-12-2016, 08:17   #11
Registered User

Join Date: Sep 2012
Location: Baikal
Posts: 418
Re: Pluggin tracker?

We need to write to the technical support support@gpsgate.com and learn from them as much as possible to capture the NMEA sentences.
If I have GPSgate server for testing
Baikal is offline   Reply With Quote
Old 23-12-2016, 11:07   #12
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 5,518
Re: Pluggin tracker?

Over next days i will set up a gpsgate test server and report back what I learn.
transmitterdan is offline   Reply With Quote
Old 24-12-2016, 16:13   #13
Registered User

Join Date: Aug 2012
Location: San Jose, CA, USA
Posts: 81
Re: Pluggin tracker?

For offshore races, bandwidth and allowed data sources are often severely limited. Thus would be good to have a generic API that can be fed from different sources. For this years PacCup we got daily position updates and could download positions updated every 4 hours from Yellow Brick side. We used airmail's web-to-email conversion to get them as text files.
nkiesel is offline   Reply With Quote
Old 26-12-2016, 02:37   #14
Registered User

Join Date: Aug 2012
Location: San Jose, CA, USA
Posts: 81
Re: Pluggin tracker?

another problem with using AIS NMEA like TLL is that these only have time but not date. Therefore, it seems we could not add information that is more than 24 hours old.

Another problem is that the whole AIS data assumes that a record received after another record is always newer. This would not be the case if positions are assembled from multiple sources (e.g. "real" AIS when competitor is close, and historic data from data upload).

Perhaps it would be better to create regular tracks and feed then from both AIS and the data upload?
nkiesel is offline   Reply With Quote
Old 26-12-2016, 23:28   #15
Registered User

Join Date: Aug 2012
Location: San Jose, CA, USA
Posts: 81
Re: Pluggin tracker?

I started working on a "fleet" plugin. Goals are

- has multiple sources for data
- AIS (via plugin message from AIS decoder)
- web (URL with scheduled download)
- files (watching directory for new files)

- creates tracks from that data
- use boat name (or MMSI?) as track name / GUID
- update tracks whenever new positions are available
- add rollover message for tracks (similar to what is done for AIS and routes), showing boat name (and AIS info if available)

stretch goals:
- pick different colors for the tracks
- render a boat icon (perhaps steal from AIS draw?)
- grouping of tracks into divisions
- time slider showing historic positions

So far I have a plugin that creates a hard-coded track when it's enabled. Next step will be web (downloading and parsing expedition format from ybtracking.com)
__________________

nkiesel is offline   Reply With Quote
Reply

Tags
plug

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
OpenCPN 4.2 with the Navico Radar pluggin James_Armstrong OpenCPN 15 12-10-2016 01:21
Norad Santa Tracker Agur's Wish Families, Kids and Pets Afloat 2 24-12-2015 03:16
Pluggin' Holes EchoPilot1975 Construction, Maintenance & Refit 1 25-12-2013 20:49
For Sale: SPOT Satellite Personal Tracker LeftRoamin Classifieds Archive 9 19-07-2009 06:27

Advertise Here


Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 14:31.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.