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 30-07-2015, 07:30   #1
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,418
Watchdog Plugin

I am starting a new thread. because the old thread was the watchman plugin which was later renamed.

Basically I rewrote the ui for the plugin and I was hoping to get some feedback. It might in a few cases be more annoying to use, but it's a lot more powerful now. That is because it can have many alarms for the same type.

For example, you can have a quiet sound play if you are off course 20 degrees, but a really loud one if it is 90 degrees. Similarly, you might have hard and soft alarms for other features, or like in the case of the draw plugin, a several boundary alarms each with different settings.

If there is something wrong or can be improved with the interface let me know.. it also corrects several bugs from before so I am hoping to release a new version of this plugin soon.
seandepagnier is offline   Reply With Quote
Old 30-07-2015, 15:11   #2
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,650
Images: 2
re: Watchdog Plugin

It is compiled and uploaded to
OpenCPN Beta File Thingie 2.5.7
rguser rgpass
4.1.718 Win PI directory

Sean it looks like you've been working on this a lot. Seems much more flexible with some really nice alarm features that can be configured, and it allows multiple alarms of the same type to be constructed. The first screens are a little blank but after forging ahead to see how it works ... I think this is going to become a favorite tool.

After setting up an Anchor Boundary in East Harbor, Fishers Island, NY. I tried to find the Boundary GUID in Ocpn_draw Boundary Properties to enter it and see if this works.

I guess there is a little more to do to get the GUID ID from Ocpn_Draw into Watchdog. ----Wait a minute... I did not update the opencpn.lib!!! Maybe that is needed, but it did compile fine.


(Later)
I recompiled Watchdog with the new opencpn.lib from yesterday. "Get GUID" does not seem to do anything.

I looked for a GUID in the Ocpn_Draw Properties box and in the Path and Point Manager and I did not find one listed. It might be a good idea to have those available in those two menus. Anyway I could not find it so I could not put it in manually.

I think this feature is almost there. I hope others will test this plugin over the next couple of months beccause it has changed a great deal in the UI.
Attached Thumbnails
Click image for larger version

Name:	Watchdog+Ocpn_Draw+needs-GUID.png
Views:	832
Size:	324.7 KB
ID:	106372  
rgleason is offline   Reply With Quote
Old 30-07-2015, 15:19   #3
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,650
Images: 2
re: Watchdog Plugin

Please Note if you are installing Watchdog into 4.1.718 Ocpn

Quote:
Don't forget to install and make sure that for a parallel install that the plugin dll and the ocpn_draw data directory have actually installed under "Plugins" directory. Verify it please. You may find the files under an extra Opencpn directory that the installer made which will be under your own Opencpn4.1.718 parallel install directory.
There has been some change in cmake files that is causing this. I think Pavel needs to fix. Happens with Ocpn_draw too.
rgleason is offline   Reply With Quote
Old 30-07-2015, 15:55   #4
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 1,077
re: Watchdog Plugin

Rick,
The Get Boundary GUID gets the GUID of the boundary surrounding the boats current location. This enables setting an anchor watch easily. I have updated the Path/Boundary properties box to show its GUID. You could copy/paste this into this field.

The intention, however, is for the watchdog to ask OD if a particular lat/lon is in a boundary and to have the boundary GUID passed back if it is. The watchdog could then use this whilst under way to see if the predictor was going to enter a boundary. The internal code is there, just not the JSON message, to see if a lat/lon is in a particular boundary.

Now that I know it works and that the watchdog can be used I think we need to workout what would be useful for this capability.

Jon
Attached Thumbnails
Click image for larger version

Name:	watchdog-OD GUID.png
Views:	794
Size:	170.6 KB
ID:	106377  
jongough is offline   Reply With Quote
Old 30-07-2015, 16:43   #5
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,650
Images: 2
re: Watchdog Plugin

I like this feature. You need to know where you are going, but how nice would it be to draw a boundary around areas where you don't want to go?

How would a user know that his boat needs to be within the boundary before getting thee GUID? Its easy enough to "move here" but maybe Watchdog should have a reminder even if it does not know a GUID or find one... perhaps message appears when the Watchdog does not find a Boundary with a GUID, saying "No boundary found, is the boat inside the boundary?"
rgleason is offline   Reply With Quote
Old 30-07-2015, 16:50   #6
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,650
Images: 2
re: Watchdog Plugin

Thanks Jon,
Moved the boat to the boundary, and tried to "Get Boundary GUID" and it was found. Then set Boundary alarm to 1 min. and then "move boat here" out of the boundary.

Watchdog say "Boundary time invalid" with no alarm.
I wonder why.
rgleason is offline   Reply With Quote
Old 30-07-2015, 18:32   #7
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 1,077
re: Watchdog Plugin

Rick,
The OD stuff is all I was really working on, but I needed a way to test that the JSON messaging was working, so I did a quick and dirty patch to the watchdog plugin so that I could do some testing. I used the anchor watch facility as it made it easy to test, move the boat in, get the GUID, move the boat out, get a blank.

The OD code will return a GUID if the Lat/Lon passed to it is inside a boundary. This Lat/Lon does not need to be associated with the boat at all. In fact the OD plugin does not care, it just knows to check a location. So, when moving the watchdog plugin could make a request to the OD plugin once a minute (or whatever interval seems appropriate) to see if a 'predictor' Lat/Lon existed in a boundary. If it did an alarm could then be raised. The predictor could be based on COG and say time or distance, then this facility would be really useful (to me at least). But I started to get bogged down in understanding the watchdog alarm coding and did not want to spend too much time doing that at the expense of fixing up bugs in the OD plugin.

Now that we know that OCPN or a plugin can communicate with OD and that useful stuff can be passed back I just need to know what information is required and work out a message content that seems sensible. I would hope that other plugins could make use of this as well, perhaps the logbook plugin for logging the passing over or into a boundary. I am not sure I have time to build all the possibilities for all the plugins and OCPN as well as trying to get OD working and tidy.

Jon
jongough is offline   Reply With Quote
Old 31-07-2015, 21:37   #8
Registered User

Join Date: Sep 2012
Location: Baikal
Posts: 581
re: Watchdog Plugin

Why draw the boundaries of what is functional and complicate additional actions

It needs a simple alarm anchorage in two clicks.
1. activate / deactivate the alarm at his position the vessel
2. adjust the radius of the zone
Baikal is offline   Reply With Quote
Old 01-08-2015, 21:52   #9
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 1,077
re: Watchdog Plugin

I was using the anchor watch as a test to see if I could get the communications working. I do not have the ability to test with a GPS and moving, so I did the next best thing. Move the boat to see if it worked.

The more useful alarm will be for areas where there are uncharted dangers which you know about (there are plenty of these around Australia). These can be marked up on the chart and the watchdog can check to see if you are likely to enter one on your current course and raise an alarm if this is the case. There are also military zones which come and go and you normally get notified of an irregular area that is an exclusion zone via VHF, again, being able to mark these on the chart and to use the watchdog to help avoid them would be useful to me, if no one else. That was the whole purpose of building the boundaries capability.

Jon
jongough is offline   Reply With Quote
Old 01-08-2015, 22:39   #10
Registered User

Join Date: Sep 2012
Location: Baikal
Posts: 581
re: Watchdog Plugin

It would be nice to automatically synchronize the position of the vessel at anchor alarm activation plug WatchDog.
What do you think about this?
Baikal is offline   Reply With Quote
Old 01-08-2015, 23:03   #11
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 1,077
re: Watchdog Plugin

I am not quite sure I understand what you mean. Can you explain what you want the anchor alarm set too? Would you be looking to just set the anchor alarm to a set distance from the anchor waypoint or something else?

The interface to the watchdog alarms has just been changed, can you have a look at that and see if you can describe how you would like the anchor alarm to work?
jongough is offline   Reply With Quote
Old 01-08-2015, 23:44   #12
Registered User

Join Date: Sep 2012
Location: Baikal
Posts: 581
re: Watchdog Plugin

Quote:
Originally Posted by jongough View Post
I am not quite sure I understand what you mean. Can you explain what you want the anchor alarm set too? Would you be looking to just set the anchor alarm to a set distance from the anchor waypoint or something else?

The interface to the watchdog alarms has just been changed, can you have a look at that and see if you can describe how you would like the anchor alarm to work?
Now to install the anchorage is necessary to go to the configuration and press "Sync to Boat" - this is unnecessary manipulation!

Command "Sync to Boat" should be activated automatically when you turn on plug-in watchdog

========================

The problem in the plugin
Configuration enabled "Enable only if Watchdog Dialog is visible" cause it to crash OpenCPN after restarting the application.

[Settings / Watchdog]
Enabled = 3
DialogPosX = 884
DialogPosY = 324
Baikal is offline   Reply With Quote
Old 07-08-2015, 00:47   #13
Registered User

Join Date: Sep 2012
Location: Baikal
Posts: 581
re: Watchdog Plugin

boat_alexandra Please comment on the issue of automatic synchronization "Sync to Boat" when you turn on the anchor alarm
Baikal is offline   Reply With Quote
Old 09-08-2015, 23:50   #14
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,418
re: Watchdog Plugin

Quote:
Originally Posted by Baikal View Post
boat_alexandra Please comment on the issue of automatic synchronization "Sync to Boat" when you turn on the anchor alarm
All this button does is fill in the latitude and longitude with wherever the boat is.
seandepagnier is offline   Reply With Quote
Old 10-08-2015, 00:20   #15
Registered User

Join Date: Sep 2012
Location: Baikal
Posts: 581
re: Watchdog Plugin

Quote:
Originally Posted by boat_alexandra View Post
All this button does is fill in the latitude and longitude with wherever the boat is.
Let the plugin takes the coordinates automatically when an alarm is triggered.
Baikal 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Plugin: DashBoard SethDart OpenCPN 644 02-04-2024 16:55
OpenCPN PlugIn Development bdbcat OpenCPN 161 04-09-2019 12:50
UncleMag Intro - Watchdog for World Cruisers ! UncleMag Meets & Greets 4 03-02-2011 00:47
Florida to Bahamas Watchdog countrybimm Atlantic & the Caribbean 54 20-04-2010 15:50

Advertise Here


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


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.