Cruisers Forum
 


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 23-02-2023, 16:16   #1
Registered User

Join Date: Dec 2011
Boat: Blue Buoy Del Rey 50
Posts: 201
Anchor Watch

I have 2 questions related to Anchor Watch.



1. Is there some way I can run a script/program or call something if the anchor drags?


2. I see in the opencpn.conf which contains "AnchorWatch1GUID=" a guid when a watch is set and nothing when not set. But it does not change until you quiet OpenCPN is there somewhere else I can check for the Anchor Watch if it is set or not?


TIA
deepthought is offline   Reply With Quote
Old 23-02-2023, 20:52   #2
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 3,761
Re: Anchor Watch

TIA.
Check the plugin Watchdog and the "Command" function for a Anchor alarm->"Alarm action"
Hakan is offline   Reply With Quote
Old 24-02-2023, 12:14   #3
Registered User

Join Date: Dec 2011
Boat: Blue Buoy Del Rey 50
Posts: 201
Re: Anchor Watch

@Hakan: thanks but would be nice if I can send the info to the script this seems to just let me run a program is there way to send some variable with it or something?



I am trying to get the anchor locate and if its set to another app.



Thanks
deepthought is offline   Reply With Quote
Old 24-02-2023, 13:36   #4
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 3,761
Re: Anchor Watch

Use the command function as you like. To start a script of yours for example. Use A RPi and any GPIO and trig a big horn or whatever you need?

BTW: What's wrong with OCPN and available plugins?
Hakan is offline   Reply With Quote
Old 25-02-2023, 05:07   #5
Registered User

Join Date: Dec 2011
Boat: Blue Buoy Del Rey 50
Posts: 201
Re: Anchor Watch

@Hakan: Its not I need to trigger a script as much as I would like the anchor drop location. Do you know if there is some way I can get the gps location of the actual anchor watch somehow?



There is nothing wrong with OCPN and or its plugins. I am trying to get this info to somewhere else.


Thanks
deepthought is offline   Reply With Quote
Old 01-03-2023, 10:37   #6
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 5,716
Re: Anchor Watch

You currently can't get this information. It would be an easy code addition (~one line) that would send a JSON message to the plugin API with the GUID of the waypoint used, which you then could retrieve in eg. JavaScript plugin and do whatever you want...
nohal is offline   Reply With Quote
Old 03-03-2023, 06:13   #7
Registered User

Join Date: Dec 2011
Boat: Blue Buoy Del Rey 50
Posts: 201
Re: Anchor Watch

Would you care to share a patch or the line to add where?



Thanks


Quote:
Originally Posted by nohal View Post
You currently can't get this information. It would be an easy code addition (~one line) that would send a JSON message to the plugin API with the GUID of the waypoint used, which you then could retrieve in eg. JavaScript plugin and do whatever you want...
deepthought is offline   Reply With Quote
Old 03-03-2023, 07:17   #8
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 5,716
Re: Anchor Watch

I have prepared a pull request implementing this, https://github.com/OpenCPN/OpenCPN/pull/3049/files
nohal is offline   Reply With Quote
Old 04-03-2023, 08:25   #9
Registered User

Join Date: Dec 2011
Boat: Blue Buoy Del Rey 50
Posts: 201
Re: Anchor Watch

@nohal: thank you very much
deepthought is offline   Reply With Quote
Old 04-03-2023, 08:28   #10
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 5,716
Re: Anchor Watch

BTW, the patch has already been merged, so you can now simply use the CI builds of OpenCPN from https://cloudsmith.io/~david-registe...able/packages/
nohal is offline   Reply With Quote
Reply

Tags
anchor

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
Pocket watch that chimes out watch bells dmksails Fishing, Recreation & Fun 2 05-11-2016 04:45
Daily Track, Anchor Watch, Layers Visibility . . . PjotrC OpenCPN 0 16-09-2011 10:55
OpenCPN - Anchor Watch svrevelations OpenCPN 3 26-08-2011 06:18
Anchor Watch Prototype PjotrC OpenCPN 32 12-05-2010 22:17
Anchor Watch unbusted67 Seamanship & Boat Handling 16 25-08-2009 02:23

Advertise Here


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


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2023, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2023, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.