Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

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 12-02-2019, 14:06   #121
Registered User

Join Date: Aug 2012
Posts: 37
Re: Weather Routing Plug In - Does it Actually Work

try to attach (pdf == tar.gz)
Attached Files
File Type: pdf WR-no-work.pdf (1.18 MB, 33 views)
registry is offline   Reply With Quote
Old 12-02-2019, 15:53   #122
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,419
Re: Weather Routing Plug In - Does it Actually Work

Quote:
Originally Posted by registry View Post
I tried this and that, removed .opencpn completly, reinstalled new, didn't touch settings... nothing helped. It complains that it has "No Data: Fail" (if climatology is on) or "Grib:Fail" if Climatology is off.



See attach (Configuration, polars, boat, grib file, screenshots)



This error is probably because the grib file loaded does not cover the area and/or time specified in the configuration. To be sure:



1) Ensure the start and end positions are within the grib area.


2) Move the grib slider to the start time you want, and click the "grib time" button in the configuration.
seandepagnier is offline   Reply With Quote
Old 13-02-2019, 07:23   #123
Registered User

Join Date: Aug 2012
Posts: 37
Re: Weather Routing Plug In - Does it Actually Work

Quote:
Originally Posted by boat_alexandra View Post
This error is probably because the grib file loaded does not cover the area and/or time specified in the configuration. To be sure:



1) Ensure the start and end positions are within the grib area.


2) Move the grib slider to the start time you want, and click the "grib time" button in the configuration.



It does cover positions and timeframe as well. You can see it in Screensots, P1 (stsarting position) and P2 (end position) ar on western south baltic . Distance between them approx 10 nm, so, 3h should be runnign time and grib is for 10 days long.



Why Error is "Grib:failed" despite running "Grib" plugin? Can it bee that WR cannot retrieve data from Grib Plugin?
registry is offline   Reply With Quote
Old 13-02-2019, 09:16   #124
Registered User

Join Date: May 2012
Posts: 1,210
Re: Weather Routing Plug In - Does it Actually Work

Interesting. Maybe a red herring, but with the new beta I am having trouble with the 'Sail' option for 'ShipDriver_pi'. This relies on plugin messaging, asking for wind from the Grib plugin.

Mike
Rasbats is offline   Reply With Quote
Old 13-02-2019, 13:28   #125
Registered User

Join Date: Mar 2017
Location: Brittany, France
Boat: First 18
Posts: 323
Re: Weather Routing Plug In - Does it Actually Work

Something is wrong indeed with the grib request:


void RouteMap::SetNewGrib(GribRecordSet *grib)
{
std::cout << "griba " << grib << std::endl;
std::cout << "gribb " << grib->m_GribRecordPtrArray[Idx_WIND_VX] << std::endl;
std::cout << "gribc " << grib->m_GribRecordPtrArray[Idx_WIND_VY] << std::endl;
if(!grib ||
!grib->m_GribRecordPtrArray[Idx_WIND_VX] ||
!grib->m_GribRecordPtrArray[Idx_WIND_VY])
return;



Shows:


griba 0x55d827ce9eb0
gribb 0x5c6c9880
gribc 0
stelian is offline   Reply With Quote
Old 13-02-2019, 14:32   #126
Registered User

Join Date: May 2012
Posts: 1,210
Re: Weather Routing Plug In - Does it Actually Work

Found the problem with ShipDriver and it may be the same for Weather Routing.


The file 'GribRecordSet.h' in the main OpenCPN program has changed with the new beta. If WxR has not been updated to use this version it could be the reason for failure. Fixed ShipDriver by updating 'GribRecordSet.h'.

Mike
Rasbats is offline   Reply With Quote
Old 14-02-2019, 00:31   #127
Registered User

Join Date: Mar 2017
Location: Brittany, France
Boat: First 18
Posts: 323
Re: Weather Routing Plug In - Does it Actually Work

Quote:
Originally Posted by Rasbats View Post
Found the problem with ShipDriver and it may be the same for Weather Routing.


The file 'GribRecordSet.h' in the main OpenCPN program has changed with the new beta. If WxR has not been updated to use this version it could be the reason for failure. Fixed ShipDriver by updating 'GribRecordSet.h'.

Mike
Confirmed ! WR works perfectly with the new header file.

However, I wonder if by replacing the file the plugin will remain compatible with older OpenCPN versions ? I didn't see any conditional in the file...


Stelian.
stelian is offline   Reply With Quote
Old 14-02-2019, 03:47   #128
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,212
Re: Weather Routing Plug In - Does it Actually Work

It will not. It also will not if it switches to the new API version with multicanvas support.
nohal is offline   Reply With Quote
Old 14-02-2019, 04:35   #129
Registered User

Join Date: Mar 2017
Location: Brittany, France
Boat: First 18
Posts: 323
Re: Weather Routing Plug In - Does it Actually Work

Quote:
Originally Posted by nohal View Post
It will not. It also will not if it switches to the new API version with multicanvas support.

What's the recommended way of fixing this in this case ?
stelian is offline   Reply With Quote
Old 14-02-2019, 05:05   #130
Registered User

Join Date: Jun 2015
Posts: 379
Re: Weather Routing Plug In - Does it Actually Work

Quote:
Originally Posted by stelian View Post
Confirmed ! WR works perfectly with the new header file.

However, I wonder if by replacing the file the plugin will remain compatible with older OpenCPN versions ? I didn't see any conditional in the file...


Stelian.
There's a PR

https://github.com/seandepagnier/wea...ng_pi/pull/111
with all the stuff needed for a proper O V5 plugin.


Ther's also a new JSON grib msg:
GRIB_VALUES_REQUEST
Plugin like shipdriver could keep the old GribRecordSet.h for source compatibility and use this msg for requesting wind, current, gust or swell values.
Using the binary interface is not always the most efficient way, it's using a lot of RAM on 32bits system (window) you can hit the 2 or 3GB limit.
did-g is offline   Reply With Quote
Old 14-02-2019, 07:24   #131
Registered User

Join Date: Mar 2017
Location: Brittany, France
Boat: First 18
Posts: 323
Re: Weather Routing Plug In - Does it Actually Work

Quote:
Originally Posted by did-g View Post
There's a PR

https://github.com/seandepagnier/wea...ng_pi/pull/111
with all the stuff needed for a proper O V5 plugin.

Perfect ! It's up to Sean now.
stelian is offline   Reply With Quote
Old 15-02-2019, 03:51   #132
Registered User

Join Date: Mar 2017
Location: Brittany, France
Boat: First 18
Posts: 323
Re: Weather Routing Plug In - Does it Actually Work

Sean has merged the PR, everything works again.
stelian is offline   Reply With Quote
Old 16-02-2019, 13:49   #133
Registered User

Join Date: Aug 2012
Posts: 37
Re: Weather Routing Plug In - Does it Actually Work

Works for me as well. Sorry for whinning :-)
registry is offline   Reply With Quote
Reply

Tags
plug, weather


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
Changes on the Plug-in Download page & new plug-in packages nohal OpenCPN 8 04-07-2014 07:15
Composting toilets, do they actually work? Orrjames General Sailing Forum 33 19-05-2013 16:30
Does This Actually Work ? Cheechako Navigation 4 03-05-2012 05:56

Advertise Here


All times are GMT -7. The time now is 08:35.


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.