|
|
31-07-2013, 22:07
|
#406
|
Registered User
Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,451
|
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.
|
|
|
31-07-2013, 23:58
|
#407
|
cruiser
Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,030
|
Quote:
Originally Posted by boat_alexandra
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
|
|
|
01-08-2013, 21:37
|
#408
|
Registered User
Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,451
|
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?
|
|
|
07-08-2013, 19:31
|
#409
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 18,139
|
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.
|
|
|
21-08-2013, 09:21
|
#410
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 18,139
|
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
|
|
|
07-09-2013, 06:06
|
#411
|
Registered User
Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,547
|
Re: WeatherFax...
Anybody knows where to find WeatherFaxInternetRetrieval.xml ?
This file is needed in latest Weatherfax_pi version but not in github.
Gerhard
|
|
|
07-09-2013, 06:43
|
#412
|
Registered User
Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,547
|
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
|
|
|
07-09-2013, 20:01
|
#413
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 18,139
|
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.
|
|
|
09-09-2013, 13:06
|
#414
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 18,139
|
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 ==========
|
|
|
09-09-2013, 13:54
|
#415
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 18,139
|
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?
|
|
|
07-10-2013, 21:55
|
#417
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 18,139
|
Re: WeatherFax...
Trying to solve compile in MSVC++
Weatherfax
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;
http://www.cruisersforum.com/forums/...ml#post1335370
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.
|
|
|
08-10-2013, 08:25
|
#418
|
Registered User
Join Date: May 2012
Posts: 1,266
|
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
|
|
|
08-10-2013, 09:24
|
#419
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 18,139
|
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
|
|
|
08-10-2013, 09:52
|
#420
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 18,139
|
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.
|
|
|
|
|
Thread Tools |
Search this Thread |
|
|
Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
Advertise Here
Recent Discussions |
|
|
|
|
|
|
|
|
|
|
|
|
Vendor Spotlight |
|
|
|