Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 31-07-2013, 22:07   #406
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: grenada
Boat: bristol 27
Posts: 2,508
Re: WeatherFax...

Also in addition to the HF schedules.. I should like to have an option to retrieve weather fax images from the internet. This could allow automatic update with a single click to populate the list of fax images. Does anyone have a compiled list of urls for these? Maybe this is also possible via email and sailmail as well. Then there is the possibility of the wefax or satellite faxes, but I need to build an antenna.
__________________

__________________
boat_alexandra is online now   Reply With Quote
Old 31-07-2013, 23:58   #407
Registered User

Join Date: Nov 2007
Location: Probably and anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 2,824
Quote:
Originally Posted by boat_alexandra View Post
Also in addition to the HF schedules.. I should like to have an option to retrieve weather fax images from the internet. This could allow automatic update with a single click to populate the list of fax images. Does anyone have a compiled list of urls for these? Maybe this is also possible via email and sailmail as well. Then there is the possibility of the wefax or satellite faxes, but I need to build an antenna.
Here's a link about accessing noaa data by email. Would be a great feature

http://weather.noaa.gov/pub/fax/ftpmail.txt
__________________

__________________
conachair is online now   Reply With Quote
Old 01-08-2013, 21:37   #408
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: grenada
Boat: bristol 27
Posts: 2,508
Re: WeatherFax...

Ok, I'll look into it. both email and retrieval via urls should be supported.

Anyone get the chance to compile the latest git and play around with the HF schedules?
__________________
boat_alexandra is online now   Reply With Quote
Old 07-08-2013, 19:31   #409
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,623
Re: WeatherFax...

on July 30, Sean has made additional commits in github with changes to Weatherfax related to enabling schedules for download of faxes, etc. which we look forward to testing.

See Sean's note about the improvements in this post


I've tried to compile Sean's plugin, however there are output errors. Please see the attached file.
Attached Files
File Type: doc Output-weatherfax-errors.doc (16.7 KB, 34 views)
__________________
rgleason is online now   Reply With Quote
Old 21-08-2013, 09:21   #410
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,623
Re: WeatherFax...

Sean I hope you get this post. Your commits result in the attached cmake --build . output errors. I hope you can repair them. Let me know so I can recompile with the new features please.

cmake--build.output-weatherfax_pi.doc
__________________
rgleason is online now   Reply With Quote
Old 07-09-2013, 06:06   #411
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Westerly Pentland
Posts: 1,515
Re: WeatherFax...

Anybody knows where to find WeatherFaxInternetRetrieval.xml ?
This file is needed in latest Weatherfax_pi version but not in github.

Gerhard
__________________
CarCode is offline   Reply With Quote
Old 07-09-2013, 06:43   #412
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Westerly Pentland
Posts: 1,515
Re: WeatherFax...

By the way this weatherfax_pi version compiles OK with wxWidgets 2.9.5 and Xcode for Mac OS X. As usual however the wxFormBuilder is buggy with sizers and generates wrong item numbers. The line 17 in WeatherFaxUI.cpp must be: fgSizer8 = new wxFlexGridSizer( 3, 1, 0, 0 );
and not: fgSizer8 = new wxFlexGridSizer( 2, 1, 0, 0 );

Gerhard
__________________
CarCode is offline   Reply With Quote
Old 07-09-2013, 20:01   #413
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,623
Re: WeatherFax...

Gerhard, I ran into the same message about
WeatherFaxInternetRetrieval.xml This is best used in Linux right now. At the moment it does not compile for Windows, but there are some great features coming for Linux users.

Overview of improvements

File open, edit, delete, close - This is for weatherfax files, png, gif, jpg, tif, etc. Has all the good stuff to manipulate faxes and overlay on Opencpn.

Retrieve > Audio Capture
Failed to set stuff up with dsp, this only works on linux if you have /dev/dsp
--How would we get this setup for Linux?

Retrieve > HF Radio Schedules -Filter Tab - by Boat position or Station with all the freq and information needed. This alone will be helpful!!! All the stations need testing!!! Sean needs help with this.

Retrieve > Internet > URL
1 minute alarm tab and Capture Options Tab (not fully completed yet) - can't get it to retrieve anything because there are no URL's listed yet and we cannot add them. If we could edit and add the proper urls, this would be a big asset when planning and with wifi available.

Retrieve > Internet > Email (not implemented)

All the HF Radio stations need testing!!! Sean needs help with this. Thank you.

Attached Thumbnails
Click image for larger version

Name:	WxFax Devices-HF Radio Schedules Window.png
Views:	129
Size:	55.3 KB
ID:	66723   Click image for larger version

Name:	WxFax-HF-Radio-Schedules-boatloc-or-station.jpg
Views:	117
Size:	276.8 KB
ID:	66724  

Click image for larger version

Name:	WxFax-Retrieve-Internet-Retrieval.jpg
Views:	112
Size:	153.9 KB
ID:	66725  
__________________
rgleason is online now   Reply With Quote
Old 09-09-2013, 13:06   #414
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,623
Re: WeatherFax...

Sean has ugraded Weatherfax significantly for Linux. If you are a Linux user please test. Meanwhile the Windows version still does not seam to compile... I'd very much like to compile this for windows users...any ideas?

MSVC++ Build

Code:
1>------ Build started: Project: ZERO_CHECK, Configuration: Debug Win32 ------
2>------ Build started: Project: i18n, Configuration: Debug Win32 ------
3>------ Build started: Project: wmm-i18n, Configuration: Debug Win32 ------
4>------ Build started: Project: weatherfax-i18n, Configuration: Debug Win32 ------
5>------ Build started: Project: polar-i18n, Configuration: Debug Win32 ------
52>Project not selected to build for this solution configuration 
19>  WeatherFaxImage.cpp
18>  georef.c
18>C:\Data-Dart\Up-Soft\Navigation\opencpn-git\include\cutil.h(66): error C2054: expected '(' to follow 'inline'
18>C:\Data-Dart\Up-Soft\Navigation\opencpn-git\include\cutil.h(67): error C2085: 'roundint' : not in formal parameter list
18>C:\Data-Dart\Up-Soft\Navigation\opencpn-git\include\cutil.h(67): error C2143: syntax error : missing ';' before '{'
18>..\..\..\plugins\weather_routing_pi\src\georef.c(1169): warning C4033: 'DistGreatCircle' must return a value
19>..\..\..\plugins\weatherfax_pi\src\WeatherFaxImage.cpp(358): error C3861: 'isnan': identifier not found
19>..\..\..\plugins\weatherfax_pi\src\WeatherFaxImage.cpp(358): error C3861: 'isnan': identifier not found
19>..\..\..\plugins\weatherfax_pi\src\WeatherFaxImage.cpp(376): error C3861: 'isnan': identifier not found
19>..\..\..\plugins\weatherfax_pi\src\WeatherFaxImage.cpp(376): error C3861: 'isnan': identifier not found
12>  rtlsdr_pi-i18n: Done.
53>------ Build started: Project: ALL_BUILD, Configuration: Debug Win32 ------
53>  Build all projects
54>------ Skipped Build: Project: PACKAGE, Configuration: Debug Win32 ------
54>Project not selected to build for this solution configuration 
55>------ Skipped Build: Project: INSTALL, Configuration: Debug Win32 ------
55>Project not selected to build for this solution configuration 
========== Build: 18 succeeded, 2 failed, 19 up-to-date, 35 skipped ==========
__________________
rgleason is online now   Reply With Quote
Old 09-09-2013, 13:54   #415
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,623
Re: WeatherFax...

How about this solution? Don't know how to implement.

19>..\..\..\plugins\weatherfax_pi\src\WeatherFaxIm age.cpp(358): error C3861: 'isnan': identifier not found19>..\..\..\plugins\weatherfax_pi\src\WeatherFaxIm age.cpp(358): error C3861: 'isnan': identifier not found19>..\..\..\plugins\weatherfax_pi\src\WeatherFaxIm age.cpp(376): error C3861: 'isnan': identifier not found19>..\..\..\plugins\weatherfax_pi\src\WeatherFaxIm age.cpp(376): error C3861: 'isnan': identifier not found
===
isnan and isfinite support does not exist in math.h or cmath | Microsoft Connect
isnan and isfinite support does not exist in math.h or cmath
--How to fix this?
How To Test For NaN - C And C++ | Dream.In.Code

#include <iostream>
02
03 using namespace std;
04 bool is_nan(double x);
05 int main (int argc, const char * argv[])
06 {
07 double x = 10, y = 0;
08 x/=y;
09 x/=x;
10 if (is_nan(x)) {
11 cout << "x (" << x << ") is NOT a number.\n";
12 } else {
13 cout << "x (" << x << ") IS a number.\n";
14
15 }
16
17 return 0;
18 }
19
20 bool is_nan(double x) {
21 if (!(x >= 0) && !(x <=0)) {
22 return true;
23 }
24 return false;
25 }
==============



Also regarding the first errors:

52>Project not selected to build for this solution configuration
19> WeatherFaxImage.cpp
18> georef.c

18>C:\Data-Dart\Up-Soft\Navigation\opencpn-git\include\cutil.h(66): error C2054: expected '(' to follow 'inline'18>C:\Data-Dart\Up-Soft\Navigation\opencpn-git\include\cutil.h(67): error C2085: 'roundint' : not in formal parameter list18>C:\Data-Dart\Up-Soft\Navigation\opencpn-git\include\cutil.h(67): error C2143: syntax error : missing ';' before '{'18>..\..\..\plugins\weather_routing_pi\src\georef. c(1169): warning C4033: 'DistGreatCircle' must return a value


Tried to find opencpn-git/include/cutil.h ... Not successful
It appears that file georef.c asks for # include "cutil.h"

How do I get cutil.h?
__________________
rgleason is online now   Reply With Quote
Old 16-09-2013, 05:49   #416
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,623
Re: WeatherFax...

Read Dave's posts in the sticky beta thread.
Plugin Dependencies Problem:
Quote:
PlugIns must maintain their own local copies of all the files they need to build, independent of the main OCPN source tree. All you really need from the main tree is OCPNPlugIn.h, and it need not be current. It only needs to be current up to the PlugIn API revision supported by the PlugIn in question.
See the comment at the bottom of this page of Developer's ManualPlugIn API | Official OpenCPN Homepage
Refer to Forum Post 1042 http://www.cruisersforum.com/forums/f134/beta-test-technical-30929-70.html#post1340119 and following Posts 1042, 1044, 1046
http://www.cruisersforum.com/forums/f134/beta-test-technical-30929-70.html#post1341096
__________________
rgleason is online now   Reply With Quote
Old 07-10-2013, 21:55   #417
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,623
Re: WeatherFax...

Trying to solve compile in MSVC++

Weather
fax
Search on /src in cmake.txt for dependencies on Opencpn src
25 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/src)
128 INCLUDE_DIRECTORIES(${PLUGIN_SOURCE_DIR}/src/libaudiofile)
Look all right

MSVC++ Compile Errors
13>..\..\..\plugins\weatherfax_pi\src\WeatherFaxIm age.cpp(358): error C3861: 'isnan': identifier not found
13>..\..\..\plugins\weatherfax_pi\src\WeatherFaxIm age.cpp(358): error C3861: 'isnan': identifier not found
13>..\..\..\plugins\weatherfax_pi\src\WeatherFaxIm age.cpp(376): error C3861: 'isnan': identifier not found
13>..\..\..\plugins\weatherfax_pi\src\WeatherFaxIm age.cpp(376): error C3861: 'isnan': identifier not found
13> SchedulesDialog.cpp
In WeatherFaxImage.cpp
358 if(isnan(minp) || isnan(maxp))
359 return false;

WeatherFax ...

See Celestial - Correction of similar isnan problem
https://github.com/seandepagnier/cel...05a464a1a1c438
if(points.size() < 2)
- return 0.0/0.0;
+ return NAN;

double maxdist = 0;
/* find farthest points */

IN another file:
#define NAN std::numeric_limits<double>::quiet_NaN ()

+#define isnan _isnan
+#define isinf(x) (!_finite(x))
+

===But that does not fit the problem.

__________________
rgleason is online now   Reply With Quote
Old 08-10-2013, 08:25   #418
Registered User

Join Date: May 2012
Posts: 293
Re: WeatherFax...

Rick,

I got this plugin to work in 3.3.910 by replacing 'isnan' by '_isnan' where the errors showed.

There were some tinyxml linker errors which went away by copying tinyxml.cpp, tinyxmlerror.cpp and tinyxmlparser.cpp from the main opencpn source into the weatherfax src folder. And then adding them to the Weatherfax project.

Plugin then worked in O 3.3.910, although fitting a sample fax to the chart was difficult.

Bit of a hack but it got the plugin going.

Mike
__________________
Rasbats is offline   Reply With Quote
Old 08-10-2013, 09:24   #419
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,623
Re: WeatherFax...

Thanks Rasbats, OK To remove MSVC++ compile errors:

A. Isnan errors
Browsing to opencpn-git/plugins/weatherfax_pi/src
With Notepad++ (is this allowed?) opened weatherfaximage.cpp
Went to line 358 if(isnan(minp) || isnan(maxp))
and changed to
358 if(_isnan(minp) || _isnan(maxp))

also line 376 if(_isnan(minp) || _isnan(maxp))

B. Remove Tiny Xml errors.

Copy tinyxml.cpp, tinyxmlerror.cpp, tinyxmlparser.cpp from opencpn/src
to opencpn/plugins/weatherfax_pi/src

Then in opencpn//plugins/weatherfax_pi cmakelist.txt file
edit with notepad++ or similar editor, adding three lines after line 75
src/icons.cpp <-- after this one
src/tinyxml.cpp
src/tinyxmlerror.cpp
src/tinyxmlparser.cpp


__________________
rgleason is online now   Reply With Quote
Old 08-10-2013, 09:52   #420
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 7,623
Re: WeatherFax...

It compiled and built but two failed. They were Grib and Weaterfax. Here are the output errors.

GRIB

Code:
12>     Creating library C:/Users/Rick/Documents/GitHub/OpenCPN/build/plugins/grib_pi/Debug/grib_pi.lib and object C:/Users/Rick/Documents/GitHub/OpenCPN/build/plugins/grib_pi/Debug/grib_pi.exp

12>GribOverlayFactory.obj : error LNK2019: unresolved external symbol "public: static class GribRecord * __cdecl GribRecord::MagnitudeRecord(class GribRecord const &,class GribRecord const &)" (?MagnitudeRecord@GribRecord@@SAPAV1@ABV1@0@Z) referenced in function "private: void __thiscall GRIBOverlayFactory::RenderGribIsobar(int,class GribRecord * *,class wxArrayPtrVoid * *,class PlugIn_ViewPort *)" (?RenderGribIsobar@GRIBOverlayFactory@@AAEXHPAPAVGribRecord@@PAPAVwxArrayPtrVoid@@PAVPlugIn_ViewPort@@@Z)

12>GribUIDialog.obj : error LNK2019: unresolved external symbol "public: __thiscall GribRecord::GribRecord(class GribRecord const &,class GribRecord const &,double)" (??0GribRecord@@QAE@ABV0@0N@Z) referenced in function "public: __thiscall GribTimelineRecordSet::GribTimelineRecordSet(class GribRecordSet &,class GribRecordSet &,double)" (??0GribTimelineRecordSet@@QAE@AAVGribRecordSet@@0N@Z)

12>GribUIDialog.obj : error LNK2019: unresolved external symbol "public: void __thiscall GribReader::copyMissingWaveRecords(void)" (?copyMissingWaveRecords@GribReader@@QAEXXZ) referenced in function "public: __thiscall GRIBFile::GRIBFile(class wxString,bool,bool)" (??0GRIBFile@@QAE@VwxString@@_N1@Z)

12>C:\Users\Rick\Documents\GitHub\OpenCPN\build\plugins\grib_pi\Debug\grib_pi.dll : fatal error LNK1120: 3 unresolved externals

===
WEATHERFAX
14>     Creating library C:/Users/Rick/Documents/GitHub/OpenCPN/build/plugins/weatherfax_pi/Debug/weatherfax_pi.lib and object C:/Users/Rick/Documents/GitHub/OpenCPN/build/plugins/weatherfax_pi/Debug/weatherfax_pi.exp

14>SchedulesDialog.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall wxGenericImageList::Add(class wxBitmap const &)" (__imp_?Add@wxGenericImageList@@QAEHABVwxBitmap@@@Z) referenced in function "public: void __thiscall SchedulesDialog::Load(void)" (?Load@SchedulesDialog@@QAEXXZ)

14>InternetRetrievalDialog.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall wxGenericImageList::Add(class wxBitmap const &)" (__imp_?Add@wxGenericImageList@@QAEHABVwxBitmap@@@Z)

14>SchedulesDialog.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall wxGenericImageList::GetImageCount(void)const " (?GetImageCount@wxGenericImageList@@UBEHXZ)

14>InternetRetrievalDialog.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall wxGenericImageList::GetImageCount(void)const " (?GetImageCount@wxGenericImageList@@UBEHXZ)

14>SchedulesDialog.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall wxGenericImageList::GetSize(int,int &,int &)const " (?GetSize@wxGenericImageList@@UBE_NHAAH0@Z)

14>InternetRetrievalDialog.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall wxGenericImageList::GetSize(int,int &,int &)const " (?GetSize@wxGenericImageList@@UBE_NHAAH0@Z)

14>SchedulesDialog.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall wxGenericImageList::Draw(int,class wxDC &,int,int,int,bool)" (?Draw@wxGenericImageList@@UAE_NHAAVwxDC@@HHH_N@Z)

14>InternetRetrievalDialog.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall wxGenericImageList::Draw(int,class wxDC &,int,int,int,bool)" (?Draw@wxGenericImageList@@UAE_NHAAVwxDC@@HHH_N@Z)

14>C:\Users\Rick\Documents\GitHub\OpenCPN\build\plugins\weatherfax_pi\Debug\weatherfax_pi.dll : fatal error LNK1120: 4 unresolved externals

36>------ Build started: Project: ALL_BUILD, Configuration: Debug Win32 ------
36>  Build all projects
37>------ Skipped Build: Project: PACKAGE, Configuration: Debug Win32 ------
37>Project not selected to build for this solution configuration 
38>------ Skipped Build: Project: INSTALL, Configuration: Debug Win32 ------
38>Project not selected to build for this solution configuration 

========== Build: 17 succeeded, 2 failed, [GRIB & Weatherfax] 4 up-to-date, 19 skipped ==========
It appears that these are for DEBUG errors and do not affect the release plugin. Is that true? How do I fix them, please? Thanks.

===
Later, nope no DLLS in the plugin/debug or plugin/release, BOTH grib and weatherfax are still failing, as the last output note says.
__________________

__________________
rgleason is online now   Reply With Quote
Reply

Tags
paracelle

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


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 12:52.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.