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 11-08-2017, 08:10   #901
Registered User

Join Date: Mar 2017
Location: Brittany, France
Boat: First 30 (1976)
Posts: 329
Re: WeatherFax ...

Quote:
Originally Posted by rgleason View Post
In thinking about how to use this new feature, I realize we need to know the exact timing and date code for each url and be able to calculate the exact url within the plugin. This would mean the xml file format would have to support this type of information too, so it can be interpreted by the program. Is this what is happening?

I think we need some examples on how to use it.
I already gave an example of xml above...

If we take the Singapore url we were discussing at the origin of this change: http://www.weather.gov.sg/files/mari...731_203000.gif

It look like those charts are generated every hour (at half past the hour), and the URL cotnains the date and the hour. So we can propose several lines in the XML file:

yesterday 0h30 -> swell_72Hr_%Y%m%d_003000.gif, DateOffset=-1
yesterday 1h30 -> swell_72Hr_%Y%m%d_013000.gif, DateOffset=-1
...
yesterday 23:30 -> swell_72Hr_%Y%m%d_233000.gif, DateOffset=-1
today 0h30 -> swell_72Hr_%Y%m%d_003000.gif
today 1h30 -> swell_72Hr_%Y%m%d_013000.gif
...
today 23h30 -> swell_72Hr_%Y%m%d_233000.gif

Got the idea ?
stelian is offline   Reply With Quote
Old 11-08-2017, 11:46   #902
Registered User
 
rgleason's Avatar

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

Stelian, sorry. I think I get it now and will look over it more carefully when I get to my internet + desktop and can really focus on it. This looks great. I had not figured out the pattern at all. I thought they choose an hour/time to cycle all charts and then applied date/time to various charts, but it is simpler than that, they just use local time (?) and apply date-time of creation to each chart I guess. Going to have to read what you wrote more carefully later. Thanks.
rgleason is offline   Reply With Quote
Old 17-08-2017, 05:36   #903
Registered User

Join Date: Mar 2017
Location: Brittany, France
Boat: First 30 (1976)
Posts: 329
Re: WeatherFax ...

I have implemented the ability to call an external helper (script) from weatherfax in order to parse the HTML pages and find the correct URL for the weather faxes.

Find this here: https://github.com/stelian42/weather...83518796f6924d

This should be tested with Lyndon's script (which I didn't see...), and if it works well, I'll push everything to Sean.

The commit log is self explanatory:
Code:
Enable the use of an external helper in order to retrieve a fax URL.
     
Some fax URLs are dynamic, and cannot be described in WeatherFaxInternetRetrieval.xml. Finding the charts require (custom) parsing of the weather provider HTML pages and extracting the correct URL.

This commit delegates the parsing to an external script, which can be implemented in shell, perl, python, etc.

In order to use an external script, the <Map> XML tag must have a non NULL "Script" attribute, which is the name of the executable which will be called by weatherfax in order to find the URL of the fax.

This executable must be placed in the $prefix/share/opencpn/plugins/weatherfax_pi/data/ directory (or the corresponding folder on Windows/Mac). The executable will take three parameters on the command line:
   - the <Server> "Name" attribute
   - the <Region> "Name" attribute
   - the <Map> "Contents" attribute

The executable must return, on its standard output, on a single line, the URL to be used by weatherfax.

Example WeatherFaxInternetRetrieval.xml section:
   <Server Name="myserver">
     <Region Name="myregion">
       <Map Contents="mycontents" Area="1" Script="foobar.exe" />
       <Area Name="1" lat1="40N" lat2="70N" lon1="50W" lon2="50E" />
     </Region>
   </Server>

Example foobar.exe:
   #! /bin/sh

   echo http://www.weathercharts.net/noaa_uk...e_00z_last.gif
   exit 0
stelian is offline   Reply With Quote
Old 20-08-2017, 20:32   #904
Registered User
 
rgleason's Avatar

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

Lydon [LJH]
Quote:
Australia has an FTP site that appears to contain all of their products, but it does not appear to have an index. I will put together a catalog for you.
How is it going? Stelian has made changes to the plugin to accept python scripts and we would like to try it out!

Thanks..
rgleason is offline   Reply With Quote
Old 13-09-2017, 17:30   #905
Registered User
 
rgleason's Avatar

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

Weatherfax has been updated for Windows. See
Sean Depagnier's Plugins - Page 23 - Cruisers & Sailing Forums
rgleason is offline   Reply With Quote
Old 19-09-2017, 21:21   #906
Registered User
 
rgleason's Avatar

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

Weatherfax Update for Windows is now on github, see
http://www.cruisersforum.com/forums/...ml#post2482564
rgleason is offline   Reply With Quote
Old 29-10-2017, 12:02   #907
Registered User

Join Date: Jun 2017
Posts: 9
Re: WeatherFax ...

Quote:
Originally Posted by boat_alexandra View Post
I should have a raspberry 3 soon and will begin testing.

I have just migrated to this platform since my chromebook has died...
Hi Sean have you been able to get the SDR capture to work on Rasberry Pi? I still can't get it up and running.
benito334 is offline   Reply With Quote
Old 10-12-2017, 06:39   #908
SFH
Registered User
 
SFH's Avatar

Join Date: Jun 2013
Location: Danish
Boat: Jeanneau Yacht 53
Posts: 99
Send a message via Skype™ to SFH
Re: WeatherFax ...

Hi

I am trying to get Weatherfax aligned with my map but to no avail. Have read the manual but still no success. I am using Passageweather for Gibraltar and The Med

What am I doing wrong?


SFH is offline   Reply With Quote
Old 10-12-2017, 07:42   #909
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 3,050
Re: WeatherFax ...

Hello SFH
Quote:
Originally Posted by SFH View Post
Hi
I am trying to get Weatherfax aligned with my map but to no avail. Have read the manual but still no success. I am using Passageweather for Gibraltar and The Med
What am I doing wrong?
I just tried the same display, with version 1.7005. At first try, I had the same problem. I did a second try, and even several, and with successive time slots, and each time, everything worked fine.

But, why and how was everything arranged ?????

Gilletarom
Gilletarom is offline   Reply With Quote
Old 10-12-2017, 09:32   #910
Registered User
 
rgleason's Avatar

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

Evidently you do not have the updated version, I believe

See attached. Download here for Windows https://opencpn.org/OpenCPN/plugins/weatherfax.html
Attached Thumbnails
Click image for larger version

Name:	Predictwind-Med.jpg
Views:	114
Size:	424.3 KB
ID:	160343  
rgleason is offline   Reply With Quote
Old 10-12-2017, 09:59   #911
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 3,050
Re: WeatherFax ...

hello RGleson
Quote:
Evidently you do not have the updated version, I believe

See attached. Download here for Windows https://opencpn.org/OpenCPN/plugins/weatherfax.html
Hum ... I have it, so ????
Gilletarom is offline   Reply With Quote
Old 10-12-2017, 10:55   #912
Registered User
 
rgleason's Avatar

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

Sorry Gillatarom, that was addressed to SFH! ...or are you having trouble too with the most current version of weatherfax?

Please post your issue as a screenshot, it helps.
rgleason is offline   Reply With Quote
Old 10-12-2017, 11:10   #913
Registered User
 
rgleason's Avatar

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

In doing some further testing, I see that the Predictwind has changed the coordinates of some of its faxes.

See the attached. The weather faxes below the highlighted one in the list are offset slightly now. There may be others. This has occurred in both Gibraltar and Med.

This is fixed by using the Weatherfax Wizard. I have done this twice for the entire world and I an now just maintaining my area. Others are going to have to learn how to do this and send me the proper files to include for their area. Sorry.

I just don't have time for do the entire world, send me the proper XML files and I will include them in the next update.

PS: It is an easy fix using the Wizard. Then you just have to tell me which faxes are changed and the coordinateset.xml
Attached Thumbnails
Click image for larger version

Name:	Screenshot (33).jpg
Views:	99
Size:	422.0 KB
ID:	160344  
rgleason is offline   Reply With Quote
Old 10-12-2017, 14:13   #914
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 3,050
Re: WeatherFax ...

Hello RGleason,

I understood from reading you that the mistake can be corrected. And you say that the correction is easy to implement!

I still believe that before arriving to make corrections, if I get there, I will have to perform a lot of tests and this while performing the update of the French tutorial simultaneously.

Gilletarom
Gilletarom is offline   Reply With Quote
Old 10-12-2017, 20:40   #915
Registered User
 
rgleason's Avatar

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

Quote:
Originally Posted by Gilletarom View Post
Hello RGleason,

I understood from reading you that the mistake can be corrected. And you say that the correction is easy to implement!

I still believe that before arriving to make corrections, if I get there, I will have to perform a lot of tests and this while performing the update of the French tutorial simultaneously.

Gilletarom
It is not a mistake. The publisher of the files has changed the origin of the fax download so that the previous coordinates not longer are exactly aligned.

This happens on a reoccuring basis and we have no control. I have corrected 1000 of these over the last 2.5-3 years for the entire world. Others who have local needs will need to maintain their URL's and CoordinateSets and share them so that we can keep them current.

It means someone (NOT YOU) locally (FRANCE) will need to learn the system and share the results.

Sorry, but that is how it is.
rgleason is offline   Reply With Quote
Reply

Tags
paracelle

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Advertise Here


All times are GMT -7. The time now is 15:49.


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.