Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 02-11-2015, 19:47   #1
Registered User

Join Date: Nov 2015
Posts: 3
Question Can I integrate openCPN to my own software

I wish to know does openCPN provide API to allow 3rd party application to use the data?

Basically I have a Google map application, and I want to display the weather data in overlays, such as tidal, sea level, pressure, etc. I read the developer manual but still don't know whether I can do this with openCPN.

Anybody can advise me? Thanks in advance.
Steven
__________________

__________________
logicgate is offline   Reply With Quote
Old 02-11-2015, 20:04   #2
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 4,025
Re: Can I integrate openCPN to my own software

There is a plug-in API where OpenCPN will run your code. Start to learn about how to build OpenCPN here: Developer Manual | Official OpenCPN Homepage

Then read about the plug-in interface here: PlugIn API | Official OpenCPN Homepage
__________________

__________________
transmitterdan is offline   Reply With Quote
Old 02-11-2015, 20:20   #3
Registered User

Join Date: Nov 2015
Posts: 3
Smile Re: Can I integrate openCPN to my own software

Thanks. But my intention is not let OpenCPN run my code, i want my software can use the OpenCPN data. I am looking for something like Weather API, openweathermap does not provide tidal data but I need the tidal data. So i want to know whether OpenCPN provide API or some kind of web services so my software can use it.

Steven

Quote:
Originally Posted by transmitterdan View Post
There is a plug-in API where OpenCPN will run your code. Start to learn about how to build OpenCPN here: Developer Manual | Official OpenCPN Homepage

Then read about the plug-in interface here: PlugIn API | Official OpenCPN Homepage
__________________
logicgate is offline   Reply With Quote
Old 02-11-2015, 22:07   #4
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,018
Re: Can I integrate openCPN to my own software

Quote:
Originally Posted by logicgate View Post
Thanks. But my intention is not let OpenCPN run my code, i want my software can use the OpenCPN data. I am looking for something like Weather API, openweathermap does not provide tidal data but I need the tidal data. So i want to know whether OpenCPN provide API or some kind of web services so my software can use it.

Steven
Steven...
No, OpenCPN is a desktop application, it provides no webservices and it has no headless mode with an API.

Pavel
__________________
nohal is offline   Reply With Quote
Old 03-11-2015, 00:49   #5
Registered User
 
Yens's Avatar

Join Date: Jul 2015
Posts: 50
Re: Can I integrate openCPN to my own software

If it's just tidal times and height predictions for ports, you will find the code for that in OpenCPN and other projects.

If you want to predict tidal currents, you will need to look at the MyOcean IBI model.


Quote:
Originally Posted by logicgate View Post
Thanks. But my intention is not let OpenCPN run my code, i want my software can use the OpenCPN data. I am looking for something like Weather API, openweathermap does not provide tidal data but I need the tidal data. So i want to know whether OpenCPN provide API or some kind of web services so my software can use it.

Steven
__________________
Yens is offline   Reply With Quote
Old 03-11-2015, 05:48   #6
Registered User

Join Date: Nov 2015
Posts: 3
Re: Can I integrate openCPN to my own software

thanks Nohal and Yens, I will check MyOcean IBI model.
__________________
logicgate is offline   Reply With Quote
Old 03-11-2015, 06:09   #7
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 4,025
Re: Can I integrate openCPN to my own software

Would it be a difficult task to create a plugin that via IP connection exposed the "data" that is available to all plugins? The so-called IP plugin could listen on a range of ports for a connection. When the connection is made then the plugin could pass requests that come in via IP back and forth via the existing plugin interface.

This might be interesting for various reasons. Not least of which is improving stability of the core. If such an interface could be efficiently implemented it would mean that OpenCPN could never be crashed by a plugin using the IP plugin interface. Maybe most plugins could use this mechanism and O could get away from having so many DLLs or .so plugins hanging off the core.
__________________
transmitterdan is offline   Reply With Quote
Old 03-11-2015, 19:43   #8
Registered User
 
Yens's Avatar

Join Date: Jul 2015
Posts: 50
Re: Can I integrate openCPN to my own software

Quote:
Originally Posted by transmitterdan View Post
OpenCPN could never be crashed by a plugin using the IP plugin interface
Hahaha... I've seen servers crashing from a single malformed packet.
__________________

__________________
Yens is offline   Reply With Quote
Reply

Tags
enc, opencpn, software

Thread Tools
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
Why Integrate the Autopilot ? Sabbatical II Marine Electronics 410 19-06-2014 16:07
Help Me Integrate My Mac hoppy Marine Electronics 6 24-10-2010 12:01



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 23:20.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.