Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 08-07-2014, 06:00   #571
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: WeatherFax...

BACKTRACE
weatherfax attempt at backtrace with MSVC++
Internet Image retrieval Boston 24hr & 48hr surface 500mb
Unhandled exception at 0x00000000 in opencpn.exe: 0xC0000005: Access violation.
Break
Sean
Let me know what you don't need and what else you do need from the attached please. I don't know if a "backtrace" is just the CALL STACK?
Thanks.
Attached Files
File Type: doc Backtrace-weatherfax-pi-internet-retrieval.doc (201.3 KB, 53 views)
rgleason is offline   Reply With Quote
Old 08-07-2014, 06:19   #572
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: WeatherFax...

Under weatherfax_pi current git, I have tested loading files, and retrieval of HF schedules with the MSVC debugger running. These seem to work although there is hesitation and I wait because of the debug overhead. In release version it is much faster.

I have used and tested the release version without debug running, and it File > Open loads image files off the hard disk well and the Retrieve >HF fax schedule works fine.
The Retrieve > Internet Internet Retrieval seems to have a problem right now... see above please. I can retrieve NOAA > Boston > 48hr Wind/Wave
Then double click it says "such and such already retrieved 28 minutes ago. Reetrieve it" "Yes" "Use file" or something. I hit yes. then break.

Stop debug and restart, do same thing same file and answer "yes" load the downloaded one... and it says something like "Failed to load input file and gives the path and file.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2014-07-08 09.11.58.png
Views:	206
Size:	100.6 KB
ID:	84639   Click image for larger version

Name:	Screenshot 2014-07-08 08.36.58.png
Views:	166
Size:	223.0 KB
ID:	84640  

Attached Files
File Type: doc Backtrace-weatherfax-pi-internet-retrieval.doc (201.3 KB, 47 views)
File Type: doc Log File Weatherfax.doc (54.2 KB, 52 views)
File Type: doc Settings File-Weatherfax.doc (37.3 KB, 46 views)
rgleason is offline   Reply With Quote
Old 13-07-2014, 09:53   #573
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,422
Re: WeatherFax...

Latest beta for weatherfax available. Please do final testing before imminent release:
Download opencpnplugins from SourceForge.net

Windows specific problems:
The plugin is unable to open TIFF files, so the noaa weather faxes don't work.

I believe possible solutions:

1. disable noaa for windows users
2. rebuild wxwidgets from source with tiff support and distribute this with opencpn
3. hack in lib tiff support for windows only (Since I lack windows I can't apply this)
4. use gif files for windows users and waste their internet bandwidth
seandepagnier is offline   Reply With Quote
Old 13-07-2014, 11:47   #574
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: WeatherFax...

OpenCpn Beta Login rguser, rgpass
File Thingie 2.5.7

The following files have been updated:

3.2.2 PI Win
weatherfax_pi-1.1-ov3.2.2-win32

Keep an eye on file dates, as that will often signal a new file has been uploaded. Older files will now be are deleted.

Please test weatherfax_pi it is ready for release. In windows, TIF files can't be downloaded, resulting in "Failure to download". Sean has explained this situation, and various alternatives for TIF. NOAA Boston uses TIF so these fail gracefully with an error message. On other file types this plugin works great.
rgleason is offline   Reply With Quote
Old 16-07-2014, 05:47   #575
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: WeatherFax...

Git Pull, and compile after copy of PVW32Con.exe to buildwin directory
Ran cpack to make the installer.exe ... completed successfully

Then used the installer to install into Opencpn v3.3.1824 and v3.2.2 successfully.
Then ran v3.3.1824 and loaded NOAA Boston 24 hr successfully!
Then ran v3.2.2 and loaded NOAA Boston 48 hr successfully!

The very efficient low KB size NOAA TIFF Internet images work in weatherfax now.

Awesome, not perfect from a programming point of view, but seamless and simple to the user!
Beautiful job!! Thanks Sean and Pavel.

Can we upload to Opencpn Beta? PVW32Con.exe which is used for conversion appears to be Windows freeware as stated on their website.

PictView for Windows
"..All versions of PictView for Windows are freeware."

Only their DLL version is purchase as I understand it.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2014-07-16 08.21.51.png
Views:	151
Size:	215.0 KB
ID:	85055   Click image for larger version

Name:	Screenshot 2014-07-16 08.25.25.png
Views:	184
Size:	207.3 KB
ID:	85056  

rgleason is offline   Reply With Quote
Old 16-07-2014, 10:25   #576
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: WeatherFax...

Sean has advised that with "Internet Retrieval" if you don't go into a "Trez facile" Overlay Automatique onto charts, there is a problem with a corrupted CoordinateSets.xml located somewhere in your C:/Users directory where your images are being stored.

This old file was located on my machine in
C:\Users\All Users\opencpn\plugins\weatherfax
I viewed it with Notebook++ and it was empty, probably corrupted from a previous compile. I simply deleted coordinateSets.xml and then restarted Opencpn 3.3.1824, then opened the Weatherfax plugin and tried
Internet Retrieval of NOAA ---> Boston ---> 24hr Surface
and it Overlaid directly on top of Opencpn Charts without any Weatherfax Wizard coming up (which is used to establish unknown coordinates).

Sean explains the process further:
Quote:
"Rick,
Ok, it looks like the file is being installed.
When the program exits, it will write it to: C:\users\Public\Application Data\opencpn\plugins\weatherfax> or somewhere similar.

So there are two copies of this file, the installed one which you have, which is only used the first time. After that a second one is written which contains possible user modifications or additional coordinates.

If however this second one is corrupted or empty (possible from debugging) then you would see your behavior. The easiest way would be to remove the second one forcing it to be rewritten from the installed version.
Sean"
For me, it appears the first installed file is located in:
C:\ProgramData\opencpn\plugins\weatherfax
The second installed file which includes additional user coordinates is located in:
C:\Users\All Users\opencpn\plugins\weatherfax

So if you use "Internet Retrieval" and the Wizard comes up rather than immediate overlay on a chart, try deleting this second file. For most users this will never have to be done, because it will be seamless. Note that there may be some occasional images that don't have coordinates defined than may require your additional input through the wizard, to achieve the instantaneous overlay, but this will generally not be required when using the Internet Retrieval.

Why? because the Weather services provide the coordinate data embedded in their images and Sean has pulled this information out directly via the Weatherfax plugin.

See attached image of what the Automatique Chart Overlay looks like.
What a great weather tool! Be weather savy current using Opencpn and Sean's Weatherfax Plugin.

I think I am going to upload this now to Opencpn Beta File Thingie, because you Windows users are going to want to try this out. (Note I have not gotten "portaudio" working on my machine yet so for me direct use of "Audio Capture" and HF Schedules (with SSB) is not possible. However I can File Open weatherfax image files and Retrieve Internet weatherfax files via internet with this quick and elegant interface!

OpenCpn Beta Login rguser, rgpass
File Thingie 2.5.7

The following files have been updated:

3.2.2 PI Win
weatherfax_pi-1.1-ov3.2.2-c-win32 - New with Internet Retrieval Overlay
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2014-07-16 12.46.32.png
Views:	226
Size:	287.6 KB
ID:	85073  
rgleason is offline   Reply With Quote
Old 16-07-2014, 11:15   #577
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,546
Re: WeatherFax...

It is not a good idea to spread files all over a system.
No Uninstaller will be able to clean the system when the user wants to uninstall a software.
It seems some guides are needed how to program plugins.

Gerhard
CarCode is online now   Reply With Quote
Old 17-07-2014, 18:22   #578
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: WeatherFax...

@Gerhard: Both these locations are actually just one, at least on Windows 7. Yes, Microsoft recently invented symbolic links And it is inside OpenCPN's data folder, I would say it is exactly how a plug-in should behave.
@Sean: Sent you a pull request with fixes for the rest of the Windows stuff. And check your e-mail, the Redmond folks return everything as undeliverable (with "The email address you specified couldn't be found or is invalid")

Pavel
nohal is offline   Reply With Quote
Old 17-07-2014, 21:21   #579
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: WeatherFax...

Sean and Pavel working together have brought this plugin leaps forward now, fixing some conversion problems with monochrome TIFFs from NOAA, and addressing portaudio problems, and fixing some user interface questions so things are clearer.

It compiles beautifully and runs very effectively, overlaying weatherfax charts from all over the world onto Opencpn Charts, via audio, ssb, file or internet download. This really is a tool I will use! For the time being it will be used via internet download, but I hope to receive in the maill a RtlSdr USB soon to try that!

Its uploaded to Opencpn Beta File thingie. Look for the version with weatherfax and a "-d" should be the only one there under 3.2.2 folder.


OpenCpn Beta Login rguser, rgpass
File Thingie 2.5.7

The following files have been updated:

3.2.2 PI Win
weatherfax_pi-1.1-ov3.2.2-d-win32 - New Inet retrieval overlay
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2014-07-17 23.56.30.png
Views:	209
Size:	282.7 KB
ID:	85139  
rgleason is offline   Reply With Quote
Old 18-07-2014, 05:55   #580
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: WeatherFax...

Sean has been working on this, 3 - 4 commits overnight... Here is the latest version look for "ov3.2.2-e" last night was too late I put ov3.3.3-d instead of ov3.2.2-d sorry..

OpenCpn Beta Login rguser, rgpass
File Thingie 2.5.7

The following file has been updated:
3.2.2 PI Win
weatherfax_pi-1.1-ov3.2.2-e-win32 - New with Internet retrieval overlay.

PLEASE NOTE This plugin runs in OPENCPN v3.2.2 (stable) so many many users can test it and actually use it! It is much better than the previous version, so you owe it to yourself to try it, you will not be unhappy.

We have a job to do now... test the plugin and make sure ALL of the urls are correct and load properly...
1. If the url is wrong, find the correct one by search....correct it in the XML file and advise us here.
2. Also they should overlay in the right place on the charts... if they do not please advise which ones are askew....
3. Additionally if one does not load, it may be because of a bad internet connection, or a slow connection on the other end....or it may be the url has changed, please check it and see if the url is correct....advise if it is not.
4. We need to check all the urls!! That's our job as Beta Users too.

Find your Weatherfax Data files here:
C:\Program Files (x86)\OpenCPN\plugins\weatherfax\data
WeatherFaxInternetRetrieval.xml
CoordinateSets.xml
These can be carefully edited with a good text editor, I use notepad++ but there are other free good editors. After you find the corrected url, find the entry in weatherfaxinternetretrieval.xml and carefully edit and save, then test it. I am not so familiar with the embedded coordinates and the coordinateSets.xml and will have to advise as we learn more. It would be helpful to have an image inspector of some sort that would show the embedded images, so that beta testers could check overlay position inaccuracies..... There are two examples of possible problems/errors in the URL's illustrated below... These are unlikely to have anything to do with the plugin itself. We users need to either get the correct url or find the correct coordinates.

Thanks very much guys.
===
Brought up v3.2.2-e and it works fine.

URL's
Tried Weather SA South Africa Weather SA and it would not download, prompted do you have a good internet connection.... Good note and way to fail... but I wondered if it is something else...causing it?

Fiji Metero South Pacific Mean Sea Level Analysis 12 am

Now I note in the message that we should check the urls and report if they have changed....

This is something the Beta Testers can do while testing!

Chile worked better this morning, got the full Streamline 10000-500hpa

NOAA Kodiak Alaska Sea Ice - doesnt overlay correctly but image works.

Thanks for the great work Sean, I thought it was finished last night!
Rick
Attached Thumbnails
Click image for larger version

Name:	Correct the Image Coordinates and advise.png
Views:	183
Size:	234.7 KB
ID:	85146   Click image for larger version

Name:	Coordinates may be missing Image Wizard appears-determine coords-advise.png
Views:	189
Size:	207.3 KB
ID:	85147  

Click image for larger version

Name:	Screenshot 2014-07-18 08.14.55.png
Views:	332
Size:	301.0 KB
ID:	85148   Click image for larger version

Name:	Screenshot 2014-07-18 08.15.44.png
Views:	150
Size:	341.3 KB
ID:	85149  

Click image for larger version

Name:	Screenshot 2014-07-18 08.19.39.png
Views:	152
Size:	285.4 KB
ID:	85150  
rgleason is offline   Reply With Quote
Old 18-07-2014, 07:12   #581
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,422
Re: WeatherFax...

When the fax appears calibrated incorrectly it usually means there are different images which use different coordinates that they alternate. It seems mostly rare, and I will remove the calibration for ice..

The alternative is to offer the user a list of possible coordinates to select from if there are more than one, but this a feature for the future.

I think the south africa one doesn't work because the server is down?
seandepagnier is offline   Reply With Quote
Old 18-07-2014, 20:15   #582
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: WeatherFax...

weatherfax_pi-1.1-ov.3.2.2-f-win32 updated, removes coords for Ice and several other improvements to the interface.
rgleason is offline   Reply With Quote
Old 18-07-2014, 23:42   #583
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,422
Re: WeatherFax...

I think in future versions I will have some sort of merging ability for when the user modifies the coordinates and when there are new coordinate changes.
seandepagnier is offline   Reply With Quote
Old 19-07-2014, 03:53   #584
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,711
Images: 2
Re: WeatherFax...

I think that is a good idea... how do we easily maintain this and upate it for everyone? Nobody should be saddled with the whole task. Some way to share the new records and import? Or is that messy. --Maybe when someone has an update for an area, they upload the files with the corrections to this thread?

Sean how does one edit/create these records? Use Image Wizard to determine coordinates?
2. Establish coordinate record in coordinatesets.xml?
3. Reference the coordinate record in the new record for URL in weatherfaxinternetretrieval.xml?

I had thought the images themselves had the coordinate information in the record, like Photo Properties - Georeferencing? I have looked at several image properties and have not found that information however. I suppose if the image record had that info the coordinates could be extracted from that? ..so I guess that you use the Image Wizard to overlay an image/fax/satellite image and use those saved coords?

weatherfaxinternetretrieval.xml recorda -typical
Code:
 <Server Name="NOAA" Url="http://weather.noaa.gov/pub/fax/">
       <Region Name="Boston">
                    <Map Url="PPAE11.TIF" Contents="24HR 500MB Forecast VT00Z 10E-95W NW Atlantic" Area="4" />
       <Area Name="8" lat1="22N" lat2="51N" lon1="40W" lon2="98W" />
coordinatesets.xml records -typical
Code:
    <Coordinate Name="NOAA - Boston - 8" X1="139" Y1="44" Lat1="50.00000" Lon1="-95.00000" X2="1532" Y2="938" Lat2="25.00000" Lon2="-45.00000" Mapping="Mercator" MappingMultiplier="1.0000" MappingRatio="1.0000" />
rgleason is offline   Reply With Quote
Old 19-07-2014, 14:56   #585
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,422
Re: WeatherFax...

I have made a bunch of recent changes which is the reason to delay release. Mainly dealing with audio decoding and the HF Schedules.

I think it's working well.. but it would be good to stress test by loading audio files, and then changing the options while it's decoding and stuff like that.
seandepagnier is offline   Reply With Quote
Reply

Tags
paracelle


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
For Sale: SSB, Tuner, Amp, WeatherFax Palarran Classifieds Archive 7 19-03-2011 07:22
Help with WeatherFax and SeaTTY desierto Navigation 2 12-12-2008 20:36
Basic Weatherfax reception Tnflakbait Marine Electronics 3 23-09-2008 21:55
How do I set myself up with weatherfax? tracker_46 Marine Electronics 4 12-10-2006 14:51
Weatherfax Recommendations Please Salacia Marine Electronics 3 03-07-2005 13:28

Advertise Here


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


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.