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 18-10-2013, 16:17   #1
Registered User

Join Date: Jul 2013
Location: Washington State, USA
Boat: 1983 Fu Hwa Seahorse
Posts: 86
First Plugin - Remembrancer

Hi all.

Just thought I'd do a quick post, to share a mostly-complete, simple lightweight plugin I developed over the past few weeks -- my first.

I am building an integrated chartplotter/autopilot with OpenCPN running on Raspberry Pi being the basis. The project is being documented on m blog OpenCPN | m/v C:\[ESC]

Remembrancer is a very basic reminder plugin. All it does is listen for OCPN messages when a route is activated (which will indicate the autopilot is engaged in my particular use case later), and then display an audio/visual alert every X seconds as defined in the properties. The alert is designed to remind the helmsman to do a safety sweep of the vessel.



It is very similar to the Watchman plugin -- and in fact if you are looking for a plugin to use, I would suggest you use that one as it has many more features and bug fixes. The reason I didn't simply use/update Watchman is two-fold:

1) I couldn't get it to run well on my Raspberry Pi instance - OCPN would crash on boot. I'm not sure if that was user error (most likely), setup error, installation error, if the RPi just doesn't have enough power, or if there is code in the plugin that is incompatible. I didn't research enough to find out, because....

2) I have some other ideas for plugins, and I thought this would be a good opportunity to re-learn C++ and plugin development. I think this project was a massive success on that front.

I only wrote (tested) a Linux/English version.

The code is stored at https://github.com/mmtsweng/remembrancer_pi
Please feel free to critique.

Thanks,
Matt B.
mattkab is offline   Reply With Quote
Old 19-10-2013, 03:09   #2
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: First Plugin - Remembrancer

Thanks for developing this little plugin and sharing it with us.
I managed to compile it an get it going with a few changes.

In the files alertdialog.h and propertydialog.h the line:

#include <dialogDefinitions.h>
was changed to
#include "dialogDefinitions.h"

I also had to move the ready made plugin manually from the build directory to the plugin directory, it was not done automatically with "sudo make install" (Linux) as expected. I have not checked the reason for this.

Apart from this the plugin seems to work " as advertised"

Thomas
cagney is offline   Reply With Quote
Reply

Tags
plug


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


Advertise Here


All times are GMT -7. The time now is 17:22.


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.