|
|
19-08-2020, 17:27
|
#1366
|
Registered User
Join Date: Feb 2015
Location: Northeast USA
Boat: Swan 38
Posts: 50
|
Re: WeatherFax ...
Has anyone been able to use a pactor modem (usb) to connect to the weatherfax plugin directly? It seems the only capture source is direct audio, and wondering if anyone has a workaround (or perhaps I am missing something). Setup is icom 802, to pactor II-Usb, to windows laptop win10 via usb.
|
|
|
19-08-2020, 18:43
|
#1367
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,996
|
Re: WeatherFax ...
I believe that the plugin rtldsr_pi was used to make a connection to weatherfax. This is a selection in the dropdown if it is installed (I believe). I have not tested this system, but Sean used it extensively to get weather reports as he sailed round the world. I do not know if it can be direct connected to Icom, etc. That would be a good improvement. PR's will be accepted.
|
|
|
20-08-2020, 09:01
|
#1368
|
Registered User
Join Date: Aug 2011
Location: Grötö
Posts: 32
|
Re: WeatherFax ...
mgh,
Could you check one thing?
If I use Airmail and try to get fax via Pactor it works.
My question is can you check if the display on Pactor changes to FAX.
Can you do the same using OpenCPN.
I cannot check this right now as my system is on its way to a new boat :-)
73 de SA6BQZ Gunnar
|
|
|
20-08-2020, 11:35
|
#1369
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,996
|
Re: WeatherFax ...
This is useful. When you learn more about what is possible, it would be very helpful to confirm and describe the process. We will then enter it into the wiki for the plugin. If there is something more needed, perhaps you can explain in detail. Sean has said that if someone gives him a Ham Radio receiver he will make the necessary changes, but he has been using RTLSDR all this time and no one has sent him a radio. Thankyou
Quote:
Originally Posted by vagspel
mgh,
Could you check one thing?
If I use Airmail and try to get fax via Pactor it works.
My question is can you check if the display on Pactor changes to FAX.
Can you do the same using OpenCPN.
I cannot check this right now as my system is on its way to a new boat :-)
73 de SA6BQZ Gunnar
|
|
|
|
20-08-2020, 13:00
|
#1370
|
Registered User
Join Date: Feb 2015
Location: Northeast USA
Boat: Swan 38
Posts: 50
|
Re: WeatherFax ...
vagspel, I can confirm that for Airmail, the fax LED does come on (and weatherfax reception works fine).
No luck getting opencpn weatherfax to work directly with pactor, even with rtlsdr-pi installed and enabled. I suspect it should be possible, but well beyond my skills. In any case, thanks for the suggestion rgleason. Pity, but it was worth a try.
|
|
|
20-08-2020, 13:44
|
#1371
|
Registered User
Join Date: Aug 2011
Location: Grötö
Posts: 32
|
Re: WeatherFax ...
This is something for Sean to have a look at when he has the time.
|
|
|
20-08-2020, 19:10
|
#1372
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,996
|
Re: WeatherFax ...
Quote:
Originally Posted by mgh
vagspel, I can confirm that for Airmail, the fax LED does come on (and weatherfax reception works fine).
No luck getting opencpn weatherfax to work directly with pactor, even with rtlsdr-pi installed and enabled. I suspect it should be possible, but well beyond my skills. In any case, thanks for the suggestion rgleason. Pity, but it was worth a try.
|
Sorry about that, but I don't have the equipment or the programming skills, so we need Sean or a clever programmer to do this.
However, it should be recorded in Tracker, under new features for Weatherfax. Would you mind if this has already been done?
Tracker is in the top menu of opencpn.org. You have to register if you need to add this feature to the list for weatherfax.
|
|
|
21-08-2020, 10:05
|
#1373
|
Registered User
Join Date: May 2012
Posts: 1,253
|
Re: WeatherFax ...
Fresh install of OpenCPN 5.2, Win 8.1. WeatherFax_pi 1.9.13.0.
WeatherFax produces a jigsaw icon in the list of plugins and does not run. The reason may be linked with issues I had with PhotoLayer. This is based heavily on WeatherFax.
For PhotoLayer and Windows I needed to change '#include <math.h>' and 'std::isnan' to '#include <cmath>' and just 'isnan'.
With this change the Ubuntu 14.04 (trusty) version of PhotoLayer failed to compile. An Internet search showed a bug for the compiler. The plugin manager (PhotoLayer) will use version 3.1.27 for Win and 3.1.21 for other OS.
Mike
|
|
|
21-08-2020, 11:59
|
#1374
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,996
|
Re: WeatherFax ...
Quote:
Originally Posted by Rasbats
Fresh install of OpenCPN 5.2, Win 8.1. WeatherFax_pi 1.9.13.0.
WeatherFax produces a jigsaw icon in the list of plugins and does not run. The reason may be linked with issues I had with PhotoLayer. This is based heavily on WeatherFax.
For PhotoLayer and Windows I needed to change '#include <math.h>' and 'std::isnan' to '#include <cmath>' and just 'isnan'.
With this change the Ubuntu 14.04 (trusty) version of PhotoLayer failed to compile. An Internet search showed a bug for the compiler. The plugin manager (PhotoLayer) will use version 3.1.27 for Win and 3.1.21 for other OS.
Mike
|
Thanks Mike, I need to update frontend2 to be current. Weatherfax 1.9.13.0 is working ok for windows, I just checked. I guess these failures are for linux? Its the first I've heard of it. Thanks!
|
|
|
22-08-2020, 14:57
|
#1375
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,996
|
Re: WeatherFax ...
Mike, using notepad++ Search "find in file" which is great, I get this
Quote:
Search "#include <math.h>" (11 hits in 10 files of 168 searched)
C:\Users\Rick\Documents\GitHub\weatherfax_pi\src\A boutDialog.cpp (1 hit)
Line 31: #include <math.h>
C:\Users\Rick\Documents\GitHub\weatherfax_pi\src\F axDecoder.cpp (1 hit)
Line 34: #include <math.h>
C:\Users\Rick\Documents\GitHub\weatherfax_pi\src\l ibaudiofile\alac\ag_dec.c (1 hit)
Line 33: #include <math.h>
C:\Users\Rick\Documents\GitHub\weatherfax_pi\src\l ibaudiofile\alac\ag_enc.c (1 hit)
Line 34: #include <math.h>
C:\Users\Rick\Documents\GitHub\weatherfax_pi\src\l ibaudiofile\debug.cpp (1 hit)
Line 33: #include <math.h>
C:\Users\Rick\Documents\GitHub\weatherfax_pi\src\l ibaudiofile\extended.c (1 hit)
Line 55: #include <math.h>
C:\Users\Rick\Documents\GitHub\weatherfax_pi\src\l ibaudiofile\modules\PCM.cpp (1 hit)
Line 30: #include <math.h>
C:\Users\Rick\Documents\GitHub\weatherfax_pi\src\l ibaudiofile\WAVE.cpp (1 hit)
Line 34: #include <math.h>
C:\Users\Rick\Documents\GitHub\weatherfax_pi\src\p lugingl\linmath.h (1 hit)
Line 4: #include <math.h>
C:\Users\Rick\Documents\GitHub\weatherfax_pi\src\w ximgkap.cpp (2 hits)
Line 30: #include <math.h>
Line 35: #include <math.h>
Search "opencpn_plugin" (4 hits in 2 files of 168 searched)
Search "std::isnan" (0 hits in 0 files of 168 searched)
|
So there is no std::isnan problem, but should I reallly just change math.h to cmath ?
Will I need some new files from somewhere?
|
|
|
22-08-2020, 15:38
|
#1376
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,996
|
Re: WeatherFax ...
Changed <math.h> to <cmath> with 11hits in 10 files after checking 168 files.
Quote:
Search "#include <math.h>" (11 hits in 10 files of 168 searched)
C:\Users\Rick\Documents\GitHub\weatherfax_pi\src\A boutDialog.cpp (1 hit)
Line 31: #include <math.h>
C:\Users\Rick\Documents\GitHub\weatherfax_pi\src\F axDecoder.cpp (1 hit)
Line 34: #include <math.h>
C:\Users\Rick\Documents\GitHub\weatherfax_pi\src\l ibaudiofile\alac\ag_dec.c (1 hit)
Line 33: #include <math.h>
C:\Users\Rick\Documents\GitHub\weatherfax_pi\src\l ibaudiofile\alac\ag_enc.c (1 hit)
Line 34: #include <math.h>
C:\Users\Rick\Documents\GitHub\weatherfax_pi\src\l ibaudiofile\debug.cpp (1 hit)
Line 33: #include <math.h>
C:\Users\Rick\Documents\GitHub\weatherfax_pi\src\l ibaudiofile\extended.c (1 hit)
Line 55: #include <math.h>
C:\Users\Rick\Documents\GitHub\weatherfax_pi\src\l ibaudiofile\modules\PCM.cpp (1 hit)
Line 30: #include <math.h>
C:\Users\Rick\Documents\GitHub\weatherfax_pi\src\l ibaudiofile\WAVE.cpp (1 hit)
Line 34: #include <math.h>
C:\Users\Rick\Documents\GitHub\weatherfax_pi\src\p lugingl\linmath.h (1 hit)
Line 4: #include <math.h>
C:\Users\Rick\Documents\GitHub\weatherfax_pi\src\w ximgkap.cpp (2 hits)
Line 30: #include <math.h>
Line 35: #include <math.h>
|
|
|
|
22-08-2020, 15:49
|
#1377
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,996
|
Re: WeatherFax ...
Mike, that is not working. Everthing fails with
[QUOTEo -c /ci-source/src/libaudiofile/extended.c /ci-source/src/libaudiofile/extended.c:55:10: fatal error: cmath: No such file or directory #include <cmath>[/QUOTE]
https://github.com/rgleason/weatherfax_pi
Using <cmath> in lieu of <math.h> does not seem to work. See Microsoft cmath
I can't find what is missing, some file or set of files?
It is not clear to me why this is not working so I am going to have to revert these changes.
|
|
|
22-08-2020, 16:33
|
#1378
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,996
|
Re: WeatherFax ...
Revert to math.h is building here I had to updated fe2 anyway, so this has not really been a bother. I think it wants to be math.h for this plugin.
|
|
|
22-08-2020, 18:22
|
#1379
|
Registered User
Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,996
|
Re: WeatherFax ...
Tested updated weatherfax v1.9.13.3 in windows and ubuntu bionic, both worked well using Import Plugin and Opencpn5.2. Ubuntu bionic Preferences shows selection for "rtlsdr" and "audio" capture. Windows shows just "audio". The reason for the difference is Ubuntu is all setup already for rtlsdr and windows isn't and needs the plugin rtlsdr. BTW the icons work ok, not perfect, but no puzzles.
My impression, Ubuntu is very smooth and nice graphically, but a little slow opening things, with just 2mb of memory. I think O works better in ubuntu than windows.
Will increment version and make PR to master catalog. Then later try to get rtlsdr working with the new frontend.
|
|
|
23-08-2020, 01:50
|
#1380
|
Registered User
Join Date: May 2012
Posts: 1,253
|
Re: WeatherFax ...
Rick...
Perhaps my problem with PhotoLayer came from somewhere else. Now sorted for Windows, I hope.
Mike
|
|
|
|
|
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 |
|
|
|
|
|