Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 18-06-2011, 04:57   #16
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 3,945
Re: Chart Downloader/Updater Plugin

Thomas,
thanks! I'm not really sure whether it wouldn't be better to remove the plugin from the download page for now... The chart downloading is not as stable as it should be and I'm busy with other project for at least another two weeks, so the plugin code will very unlikely be reasonably stable until OpenCPN 2.5 release

Pavel
__________________

__________________
nohal is offline   Reply With Quote
Old 18-06-2011, 07:02   #17
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,708
Re: Chart Downloader/Updater Plugin

Pavel....

Any last minute API improvements desired to make this PlugIn easier/cleaner? We can add utility calls back to the core without breaking the current API. We just cannot add new methods to the PlugIn itself. VTable linkage problems......

Dave
__________________

__________________
bdbcat is online now   Reply With Quote
Old 18-06-2011, 08:17   #18
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 3,945
Re: Chart Downloader/Updater Plugin

Dave...
chart database access would be good - I could use the actual chart versions and not rely on file dates. But for the time being I can sure do without it.
The biggest problem I have is the download itself - the threads seem to behave a bit differently between Win and Linux and wx as a toolkit is a little suboptimal in HTTP area. I will figure it out, but currently have a solder in one hand and wire cutter in the other and time for coding is quite scarce.

Pavel
__________________
nohal is offline   Reply With Quote
Old 13-01-2015, 04:23   #19
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 3,361
Re: Chart Downloader/Updater Plugin

Quote:
Originally Posted by nohal View Post
A long time ago, I have prototyped https://github.com/nohal/chartdldr_pi
Quite a layer of dust on it, but at the other hand can be resurrected.

Pavel
I am thinking of trying to blow a little dust off this. I cloned the plugin from git into the plugins folder under OpenCPN. I have identified the following when trying to build the plugin for 4.0 as follows:

1) Edit CMakeLists.txt and uncomment the line #FIND_PACKAGE(wxWidgets REQUIRED) else there will be errors further down during CMake.

2) Edit chartcatalog.h to add #define TIXML_USE_STL before line #include "../../../include/tinyxml.h
because tinystr.h is no longer part of O.

Now I am stuck on checkedlistctrl.cpp which attempts to include several .xpm files directly into the cpp file. I don't think this will work as the compiler doesn't know what to do with these graphic files. Does anyone know how these graphic resources are supposed to be melded into the build of the plugin?

I am building under Linux (Mint) for the time being. Later we can try to get it building under Windows.
__________________
transmitterdan is online now   Reply With Quote
Old 13-01-2015, 05:28   #20
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 3,945
Re: Chart Downloader/Updater Plugin

Xpm is C code... I will have a look later today.

Pavel


Sent from my iPhone using Cruisers Sailing Forum
__________________
nohal is offline   Reply With Quote
Old 13-01-2015, 06:40   #21
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 3,361
Re: Chart Downloader/Updater Plugin

You are right. I think it is just some warnings about deprecated use of assignment of constant strings to char * array. Easy to fix that I think. It is building the .so now so all is well for the time being.
__________________
transmitterdan is online now   Reply With Quote
Old 13-01-2015, 07:38   #22
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 3,945
Re: Chart Downloader/Updater Plugin

transmitterdan...
I have just pushed an update to github, switching the plugin to the standard build system we now use. I have also created https://github.com/nohal/chartdldr_pi/issues with the stuff I remember needs fixing (The switch to wxCURL is absolutely critical)
I also very vaguely remember there was some change in the format of the NOAA catalog files.

Good luck

Pavel
__________________
nohal is offline   Reply With Quote
Old 13-01-2015, 12:26   #23
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 3,361
Re: Chart Downloader/Updater Plugin

Pavel,

Thanks, I'll pull it later today and see if I can get it running here. I got the old version running on my Linux system but haven't done any debugging yet. I'll wait until I get the latest git to start that. But I can see what you had in mind. Once I understand what you did we can have a discussion about what it needs to do and how it might be configured.
__________________
transmitterdan is online now   Reply With Quote
Old 15-01-2015, 04:00   #24
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,095
Re: Chart Downloader/Updater Plugin

It compiled for me, under windows earlier, 2 days ago. And the plugin works and looks like a very nice addition Pavel. I just had a problem with the download crashing O. I will go look at logs amd post anything i see relevant. The noaa chart selections work nicely, somewhat dependent on inet of course. ...might help new users with charts to get them started quickly! This is the first hurdle for a new user. Where do i get some charts. Once that is accomplished, they are pretty sure to contonue using the program.

Sent from my SCH-I545 using Cruisers Sailing Forum mobile app
__________________
rgleason is online now   Reply With Quote
Old 15-01-2015, 05:23   #25
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 3,361
Re: Chart Downloader/Updater Plugin

I have a script for Windows that retrieves charts for the US. It is easily configured. I put a link on my profile page in a conversation. If someone would look at it and tell me if it's appropriate we could give it to newbies. Same script could be easily converted to /bin/sh I think.
__________________
transmitterdan is online now   Reply With Quote
Old 15-01-2015, 08:49   #26
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,095
Re: Chart Downloader/Updater Plugin

Transmitter Dan,
Can you add a .txt or .pdf to the end of the script and upload here? Or is it too big? I'd like to see it. Might be a big help to new users. Of course getting Pavels chartdnldr working would be ideal.

If it is too big you can upload to Opencpn Beta File Thingie to the dedicated upload directory. I can then look at it and put it in another directory for others to download. (I've separated these functions for control and security now.)

OpenCPN Beta File Thingie upload uploadpass
__________________
rgleason is online now   Reply With Quote
Old 15-01-2015, 08:54   #27
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,095
Re: Chart Downloader/Updater Plugin

Quote:
I also very vaguely remember there was some change in the format of the NOAA catalog files.
There may be a change, but I was able to retrieve the catalogue and select specific charts by State, then go to the next step to download. I should go back and see if the Coast Guard Districts downloads are there, but it seemed to cover the entire US very nicely. It did take a little while to download the catalogue or index, so maybe there is some cleanup needed.... there too. But the main problem is getting wxcurl or libcurl or whatever working properly I believe. I am going to check my log file next.
__________________
rgleason is online now   Reply With Quote
Old 15-01-2015, 09:21   #28
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,095
Re: Chart Downloader/Updater Plugin

Pavel has Chart Source
Noaa RNC all charts (too big!) --and it is got hung up. Maybe do it in separate gulps?
Noaa ENC all charts (too big!) -- same problem.

Then would like to be able to have chart location remembered and be able to Browse to repoint it into an ENC or RNC or BSB or whatever folder, perhaps even being able to make a new folder. Right now it is forgetting where it was pointed between uses and selections.

Two Sessions
1. Chartdlr - 11:54 Failed due to trying to load NOAA ENC (All Charts)
It just sat there with CPU running on high and nothing downloaded but nothing crashed. I hit Cancel and Opencpn crashes and Crash report is sent.
2. Chartdlr - 12:01 Pick smaller indexs for a state, this time NOAA -RI initiate download and the catalogue is downloaded and everyting looks good. (See Screen shots). Then go to download two charts and I get a crash, well actually it gets hung up and I have to cancel. See shots.

Also see attached log please. Sorry about all the plugins.
Thank you Dan. I think it will work much better if we can get the thing downloading better.

Maybe I should get it running in debug mode to get some file and line numbers....
Attached Thumbnails
Click image for larger version

Name:	Chartdlr-1.png
Views:	118
Size:	24.5 KB
ID:	95528   Click image for larger version

Name:	Chartdlr-2.png
Views:	113
Size:	96.1 KB
ID:	95529  

__________________
rgleason is online now   Reply With Quote
Old 17-01-2015, 15:25   #29
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 8,095
Re: Chart Downloader/Updater Plugin

I think Pavel did some more on it so git fetch worked, compiled it and
saw that the RNC MA with selection of two Boston Harbor charts first started downloading from

http://www.charts.noaa.gov/RNCs/13270.zip
Which is the correct url because it works with Firefox, however curl isn't working yet so it hangs up with high CPU.

Probably something simple to fix. I will look at it maybe I can figure it out.
__________________
rgleason is online now   Reply With Quote
Old 18-01-2015, 06:21   #30
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 3,361
Re: Chart Downloader/Updater Plugin

Quote:
Originally Posted by rgleason View Post
Probably something simple to fix. I will look at it maybe I can figure it out.
Rick,

I'll take a look when I get back from sailing.

Dan
__________________

__________________
transmitterdan is online now   Reply With Quote
Reply

Tags
charts

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
OpenCPN PlugIn Development bdbcat OpenCPN 70 14-03-2017 04:01
Plugin: DashBoard SethDart OpenCPN 470 24-08-2016 20:34
BSB 4 PlugIn bdbcat OpenCPN 93 20-02-2016 03:41
Logbook Plug-in SethDart OpenCPN 98 10-01-2013 11:47
Chartwork Plugin mario f OpenCPN 10 29-03-2012 19:21


Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities


Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 13:51.


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.