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 31-03-2020, 07:23   #1
Registered User
 
Rodemfr's Avatar

Join Date: Mar 2020
Location: Brittany, France
Boat: Django 750
Posts: 61
New weather plugin for OpenCPN : MeteoVache

Hi everybody,


Thanks to COVID-19' mandatory containement in France, I finally had time to build my first OpenCPN plug-in. That's what I'm presenting to you now.

It's a pretty small & simple plug-in which gives you weather forecast at cursor's position. Just right click on the map and request weather forecast, that's all.

Unlike other weather applications or plug-in, the amount of data provided by MeteoVache is somewhat minimalistic but it has the nice quality of requiring very little bandwidth on your internet connection, maiking it still usable when you pay for your data or chen your mobile phone is connected through Edge or GPRS.

I'm interested by the return of those who have some time to look at it !

There is no automatic installer at that time and you will have to install it manually.


Everything is there :

https://github.com/Rodemfr/meteovache_pi#download


Thanks !
Rodemfr is offline   Reply With Quote
Old 31-03-2020, 10:13   #2
Registered User

Join Date: Feb 2011
Posts: 1,108
Re: New weather plugin for OpenCPN : MeteoVache

Merçi, fonctionne très bien sur Windows 64 bits.
Thank you, work very well with Windows 64 bits.
Salutations.
P_Dub is offline   Reply With Quote
Old 31-03-2020, 11:17   #3
Registered User
 
Rodemfr's Avatar

Join Date: Mar 2020
Location: Brittany, France
Boat: Django 750
Posts: 61
Re: New weather plugin for OpenCPN : MeteoVache

Quote:
Originally Posted by P_Dub View Post
Merçi, fonctionne très bien sur Windows 64 bits.
Thank you, work very well with Windows 64 bits.
Salutations.
Thanks P_Dub.


Note that there is only European coverage for now, but I hope to add a new weather model with world coverage before the end of the week.
Rodemfr is offline   Reply With Quote
Old 01-04-2020, 02:26   #4
Registered User
 
Schnapsy's Avatar

Join Date: Jan 2018
Location: Dunkirk, France
Boat: ETAP 30i
Posts: 242
Images: 3
Re: New weather plugin for OpenCPN : MeteoVache

Bravo, cela fonctionne très bien.
L'idéal serait de pouvoir enregistrer automatiquement les fichiers téléchargés, avec par exemple comme nom : date_heure_seconde, ou tout autre item.


Well done, it works very well.
The ideal would be to be able to automatically save the downloaded files, with for example as name: date_heure_seconde, or any other item.
Schnapsy is offline   Reply With Quote
Old 01-04-2020, 03:19   #5
Registered User
 
Recy's Avatar

Join Date: Apr 2015
Location: Stockholm, Sweden
Boat: Sun Odyssey 45.2
Posts: 150
Re: New weather plugin for OpenCPN : MeteoVache

This is what I get and I am not able to select any data.


Edit; It works fine now. And thank you for a nice PI.
Attached Thumbnails
Click image for larger version

Name:	Namnlös.png
Views:	104
Size:	8.2 KB
ID:	211796  
Recy is offline   Reply With Quote
Old 01-04-2020, 03:45   #6
Registered User
 
Rodemfr's Avatar

Join Date: Mar 2020
Location: Brittany, France
Boat: Django 750
Posts: 61
Re: New weather plugin for OpenCPN : MeteoVache

Quote:
Originally Posted by Schnapsy View Post
Bravo, cela fonctionne très bien.
L'idéal serait de pouvoir enregistrer automatiquement les fichiers téléchargés, avec par exemple comme nom : date_heure_seconde, ou tout autre item.


Well done, it works very well.
The ideal would be to be able to automatically save the downloaded files, with for example as name: date_heure_seconde, or any other item.

That's exactly what I plan. Something like a preference panel in which you provide the destination folder and then a text file would be saved automatically at each request.


I will first finish adding a new model with world wide coverage on the server side...


Quote:
Originally Posted by Recy
This is what I get and I am not able to select any data


I see two possible causes :
- You have not requested weather forecast by right clicking somewhere in the map and selected "Weather forecast" item in the menu
- There is a bug


If you think it is the second case, can you just provide me your configuration ? (OpenCPN version and OS)


EDIT : Forget about it -> I just read your edit...



Thanks !
Rodemfr is offline   Reply With Quote
Old 01-04-2020, 03:45   #7
Registered User

Join Date: May 2012
Posts: 1,205
Re: New weather plugin for OpenCPN : MeteoVache

Thanks Ronan ... works well here on Win 8.1 64 bit.

Going forward 'zlib' is causing me problems for compiling standalone. I have 'zlib.lib' on my system from working with netCDF. Needed to copy 'zlib.h' and 'zconf.h' to the 'src' folder from the zlib source code. Not sure how to deal with this at the moment on Windows, but Sean Depagnier has used 'zlib' for the Weather Routeing plugin.

Problem here:

Code:
FIND_PACKAGE(ZLIB REQUIRED)
TARGET_LINK_LIBRARIES( ${PACKAGE_NAME} ${wxWidgets_LIBRARIES} ${ZLIB_LIBRARY})
'ocpn_plugin.h' had to be copied to the 'src' folder.

The final hurdle was the location of 'opencpn.lib'.
Code:
LINK : fatal error LNK1181: cannot open input file '..\..\release\opencpn.lib
Using Visual Studio 2017 I edited the link file location and built the plugin. Made an installer package at the same time, which worked fine.

Mike
Rasbats is offline   Reply With Quote
Old 01-04-2020, 05:52   #8
Registered User
 
Rodemfr's Avatar

Join Date: Mar 2020
Location: Brittany, France
Boat: Django 750
Posts: 61
Re: New weather plugin for OpenCPN : MeteoVache

Thanks Mike,


I will make the plug-in able to compile standalone in the next version. Still have to read documentation and example to be sure to do it the right way...


Ronan.
Rodemfr is offline   Reply With Quote
Old 01-04-2020, 21:42   #9
Registered User

Join Date: Sep 2012
Location: Baikal
Posts: 581
Re: New weather plugin for OpenCPN : MeteoVache

Is it possible for the wind to make the metric system meters per second?
Baikal is offline   Reply With Quote
Old 01-04-2020, 23:02   #10
Registered User
 
Rodemfr's Avatar

Join Date: Mar 2020
Location: Brittany, France
Boat: Django 750
Posts: 61
Re: New weather plugin for OpenCPN : MeteoVache

Yes it is. I plan to add a preference panel. This will be the place to select display units (m/s, kt, bft, etc.)
Rodemfr is offline   Reply With Quote
Old 05-04-2020, 03:35   #11
Registered User
 
Rodemfr's Avatar

Join Date: Mar 2020
Location: Brittany, France
Boat: Django 750
Posts: 61
Re: New weather plugin for OpenCPN : MeteoVache

Hi everybody,


Here is a new version of the plugin (v0.3):


https://github.com/Rodemfr/meteovache_pi/releases


I added a preference panel allowing to change display units.
I cleaned-up the compilation process and generated a windows installer.

Some bugs have also been fixed here and there.
On the server side, I added a new model (Arpege 0.5°) with world wide coverage.


I did not have time to add manual and automatic saving of the weather report. It will be for the next release...


Best regards,


R.
Rodemfr is offline   Reply With Quote
Old 10-04-2020, 11:39   #12
Registered User
 
Rodemfr's Avatar

Join Date: Mar 2020
Location: Brittany, France
Boat: Django 750
Posts: 61
Re: New weather plugin for OpenCPN : MeteoVache

Hi,

Here is a new version of the plugin (v0.4):

https://github.com/Rodemfr/meteovache_pi/releases

I added a button to manually save weather forecasts to a text file.
I also added options in the preference panel (accessible via the plugin manager) to enable automatic save of every weather forecast. You can select the destination folder, the format (normal or column) and choose to compress it or not in a zip file.



I'm interest in any return concerning potential problems or ideas of improvement.


Thanks,

Ronan.
Rodemfr is offline   Reply With Quote
Old 11-04-2020, 02:34   #13
Registered User
 
AISEAG's Avatar

Join Date: May 2012
Location: Dahouet (Brittany)
Boat: BENETEAU
Posts: 491
Re: New weather plugin for OpenCPN : MeteoVache

Quote:
Originally Posted by Rodemfr View Post
Hi,

Here is a new version of the plugin (v0.4):

....

.
Thanks Ronan for this plugin.

Does it take in account the Grib option (UTC/Local Time ) ?

Serge
AISEAG is offline   Reply With Quote
Old 11-04-2020, 03:18   #14
Registered User
 
Rodemfr's Avatar

Join Date: Mar 2020
Location: Brittany, France
Boat: Django 750
Posts: 61
Re: New weather plugin for OpenCPN : MeteoVache

Hi Serge,


I'm not sure to understand what you mean by "Grib option UTC/Local time". What I can tell to you is how dates and time are handled in the plug-in :


Internally, all times are handled UTC, but when displayed in the report all dates are converted to the system current time zone.


Reading your remark, I think it might be a good idea to add a preference setting to select between UTC and local TZ in the preference dialog and to display the actual TZ in the report. I will add it for v0.5...


By the way, if there is anybody using OpenCPN on Raspberry PI ? I would be interested by a bit of help. I used my RPi Zero to compile the plugin but it has not enough memory to run OpenCPN and to verify that is is working properly. Could anywone test it on his RPi ? The binaries have been added to the v0.4 release page :


https://github.com/Rodemfr/meteovach...eases/tag/v0.4


Thanks !


Ronan.
Rodemfr is offline   Reply With Quote
Old 11-04-2020, 04:35   #15
Registered User
 
AISEAG's Avatar

Join Date: May 2012
Location: Dahouet (Brittany)
Boat: BENETEAU
Posts: 491
Re: New weather plugin for OpenCPN : MeteoVache

Quote:
Originally Posted by Rodemfr View Post
Hi Serge,


I'm not sure to understand what you mean by "Grib option UTC/Local time".
Hello

The explanation given is good for me.

A preference setting would be OK, may I suggest to use the one selected in Grib preference to avoid misreading beetween this plugin and Grib plugin

-----
Merci, les explications données sont suffisantes pour moi.

Pourvoir choisir son système de référence serai un plus, mais n'est il pas judicieux de prendre en compte le choix donné dans le plugin Grib pour éviter les erreurs de lecture entre les 2 plugin ?

Thanks/Merci
AISEAG is offline   Reply With Quote
Reply

Tags
enc, opencpn, 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
OpenCPN Weather Routing Plugin error volkerpetersen OpenCPN 29 05-08-2021 07:17
opencpn weather routing plugin not found usodimare OpenCPN 11 31-12-2019 03:27
An OpenCPN Plugin for the new Polar Weather Satellites? Alberg30Shill OpenCPN 15 17-06-2018 13:58
Plugin development... How to receive chart objects in my plugin? dmartinez OpenCPN 6 04-08-2017 00:56
Opencpn 4.4.0 - Weather Routing "Grib Plugin Not Supported" TiOlivier OpenCPN 7 22-07-2016 06:22

Advertise Here


All times are GMT -7. The time now is 18:36.


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.