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 24-04-2023, 11:20   #541
Registered User

Join Date: Aug 2021
Posts: 6
Re: Watchdog Plugin

Thanks for replying. I thought this would lead to a simple fix of just converting the bat to exe. I did this and was left with an exe that works just like the bat when applied manually, but it still fails to load from the command function of watchdog.

I tried your example of calc - and like you I found it worked as a command response (opening up on alarm). Not sure what the difference is?

Anyway, I found a temporary solution that works. I simply put the text of my BAT directly in to the 'command' box of Watchdog. There does constrain content due to the number of characters, but there is enough to get message out.

I was using Swithmail as the software referenced in the manual Send-It-Quiet, doesn't seem to be available anymore.

Would be nice to get a fix, but at the moment I can basic requirement of an e-mail if the boat drags on its mooring.

Thanks again.
johnwilde is offline   Reply With Quote
Old 24-04-2023, 12:54   #542
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,245
Re: Watchdog Plugin

Very well done!

So what's happening is probably the commend is calling the mail program with a switch to send the mail. So the one "answering" is the mail program's .exe-file responding a proper PID to make wxExecute happy?


Would you mind share the command string you used to get i working? I'm curious and others may benefit.
Thanks
Håkan
Hakan is online now   Reply With Quote
Old 24-04-2023, 13:51   #543
Registered User

Join Date: Aug 2021
Posts: 6
Re: Watchdog Plugin

I think you are correct. Maybe I could have played around with making a better exe that the process ‘accepts’?

The command I used was just copied from the BAT files created by the SwithMail software, with a few tweaks. The command (anonymised) is:

C:\PATH-TO\SwithMail.exe /s /from "SENDEREMAIL@gmail.com" /name "SENDER NAME" /pass "SENDER PASSWORD" /server "smtp.gmail.com" /p "587" /SSL /to "RECIPIENT EMAIL" /sub "Mooring Alarm!" /b "Check mooring" /html /priority "high"

The changes required were to provide the full path to the software, rather than just a relative path set in bat. Also, I had to trim the script, removing “cc” etc and keeping text body short to get to sufficiently limited characters.

Obviously SwithMail needs to be installed and path modified to wherever it is installed.

Also, for this use of gmail you need to use a App Specific Password.

Seems to work though - which I’m happy about.

Thanks again for pointing me in the right direction.
johnwilde is offline   Reply With Quote
Old 24-04-2023, 14:17   #544
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,245
Re: Watchdog Plugin

John...
Fantastic you get this to work!
I understand the hard visit will be less nervous?

Many thanks for sharing.
Hakan is online now   Reply With Quote
Old 24-04-2023, 23:18   #545
Registered User

Join Date: May 2012
Posts: 1,223
Re: Watchdog Plugin

John ...

Thanks. Using "mailsend-go" works with your fix as well.
https://github.com/muquit/mailsend-go

Mike
Rasbats is offline   Reply With Quote
Old 29-04-2023, 19:00   #546
Registered User

Join Date: Nov 2012
Location: Steinhatchee, FL
Posts: 402
Re: Watchdog Plugin

In my experience, (in the Windows world) if the script will run in a command prompt but does not work when it's called by another program the problem is usually one of permissions or paths.



Make sure that the process that watchdog is using has permission to access the network and make sure that all programs and files are referenced by their full path.


One small point - .bat was used for scripts on the 16 bit version of Windows (pre-NT). From NT forward the preferred extension is .cmd (ignoring powershell scripts for now). There may be some slight differences in the way the script runs as .bat vs .cmd. It is rare and hard to troubleshoot so just avoid the .bat extension all together unless you really intend to use the 16 bit command interpreter (assuming it's even still there).
__________________
Bill
"If I were in a hurry, I would not have bought a sail boat." Me
Be Free is offline   Reply With Quote
Old 22-05-2023, 09:08   #547
Registered User

Join Date: Jun 2022
Location: Cantabria
Boat: Jeanneau - Merry Fisher 925
Posts: 497
Re: Watchdog Plugin

I have a problem with Watchdog plugin.

O ver 5.8.2 latest version of plugin in master catalogue (windows 11 ARM64).

all data comes from Shipmodul Multiplexer via UDP.

I have two echo-sounders one connected to multiplexer via 0183 input and another one also to multiplexer via N2K connection. (both of them Furuno)

Set-up watchdog alarm for depth, with 0183 sounder O displays the depth but plugin doesn't recognise the depth. Nmea log stream attached and also screen shot 1,2 & 3.
if I switch on the plotter (2nd echo-sounder) the display of the plugin recognise the depth and works properly (screen-shot 4)

what is wrong with the readings of the 0183 sounder?
because data is shown in O.
Attached Thumbnails
Click image for larger version

Name:	sshot-1.png
Views:	39
Size:	105.9 KB
ID:	275696   Click image for larger version

Name:	sshot-2.png
Views:	40
Size:	60.9 KB
ID:	275697  

Click image for larger version

Name:	sshot-3.png
Views:	43
Size:	101.8 KB
ID:	275698   Click image for larger version

Name:	sshot-4.png
Views:	40
Size:	97.0 KB
ID:	275699  

Attached Files
File Type: pdf NMEA_log.zip.pdf (4.5 KB, 10 views)
__________________
Corsair

Roses don't bloom on the sailor's grave
Corsair63 is offline   Reply With Quote
Old 22-05-2023, 09:22   #548
Registered User

Join Date: Nov 2015
Location: Ireland
Posts: 471
Re: Watchdog Plugin

One of those two sentence types (the one with no f and M in it) does not comply with the NMEA format published at:

https://gpsd.gitlab.io/gpsd/NMEA.htm...low_transducer
AedanC is offline   Reply With Quote
Old 22-05-2023, 10:21   #549
Registered User

Join Date: Mar 2011
Posts: 718
Re: Watchdog Plugin

I have no idea which repo is used to build the plugin.

However looking at what I presume to be the original source at https://github.com/seandepagnier/watchdog_pi the bug lies not in the NMEA data stream that is being received, but in the watchdog plugin's NMEA parser.

The problem seems to lie in the Depth (DPT) sentence.

A sentences of the form $--DPT,x.x,x.x,x.x*hh<CR><LF> is a valid version 3 sentence.

A sentence of the form $--DPT,x.x,x.x*hh<CR><LF> is a valid version 2 sentence, it omits the maximum range field.

The watchdog's NMEA parser was written for DPT version 2 sentences, which is why the plugin is working for one transducer and not the other. There is an updated NMEA parser that supports both version 2 and 3 sentences which would be the appropriate fix for whoever maintains the plugin.

My guess is that your NMEA 183 transducer (or the chartplotter it is connected to) generates version 2 sentences, whereas the version 3 sentences are presumably being generated by the Ship Modul multiplexer, when it converts the data from your NMEA 2000 depth transducer.

I don't know why it is not working with the Depth Below Transducer (DBT) sentence, which is of the form $--DBT,x.x,f,x.x,M,x.x,F*hh<CR><LF>

Perhaps try filtering the DPT sentence to see if erroneous DPT sentences are causing the plugin to ignore DBT sentences.

Note also the Depth Below Surface (DBS) sentence. Not sure what is generating it but it is misconfigured as it should not have the same values as Depth Below Transducer (DBT). It's irrelevant anyway as the watchdog plugin does not parse DBS sentences.
stevead is offline   Reply With Quote
Old 22-05-2023, 11:34   #550
Registered User

Join Date: Jun 2022
Location: Cantabria
Boat: Jeanneau - Merry Fisher 925
Posts: 497
Re: Watchdog Plugin

Confused:

I've been investigating about the received NMEA sentences from both devices also from your link and my NMEA library info.

Quote:
DBT - Depth below transducer
1 2 3 4 5 6 7
| | | | | | |
$--DBT,x.x,f,x.x,M,x.x,F*hh<CR><LF>
Field Number:

Water depth, feet
f = feet
Water depth, meters
M = meters
Water depth, Fathoms
F = Fathoms
Checksum

In real-world sensors, sometimes not all three conversions are reported. So you might see something like $SDDBT,,f,22.5,M,,F*cs

Example:
$SDDBT,7.8,f,2.4,M,1.3,F*0D
Furuno Echo-Sounder (FCV-587):
$SDDBT,10.7,f,3.3,M,1.8,F*39

Furuno Plotter GP1971F:
Doesn't generate neither sends that sentence

As far as I see the sentence from Echo-sounder completely adhere to NMEA standard.


Quote:
DPT - Depth of Water
1 2 3 4
| | | |
$--DPT,x.x,x.x,x.x*hh<CR><LF>
Field Number:

Water depth relative to transducer, meters
Offset from transducer, meters positive means distance from transducer to water line negative means distance from transducer to keel
Maximum range scale in use (NMEA 3.0 and above)
Checksum

This sentence was incorrectly titled "Heading - Deviation & Variation" in [BETKE]. It’s documented at http://www.humminbird.com/normal.asp?id=853

Example: $INDPT,2.3,0.0*46
Furuno Echo-Sounder (FCV-587):
$SDDPT,3.3,0.0,9999.9*6C

Furuno Plotter (GP1971F):
$SDDPT,3.25,0.00,*7F

deducting from above the one that really send a conforming DPT sentence is the sounder (0183), just the one that is not read by watchdog but read by OCPN.
and the one from the plotter that is not conforming with the standard (or the third field consider 0.0) but is displayed in watchdog and also read by OCPN.

also I see that the example sentence doesn't conform with the standard missing one field for the max. range as per sentence explanation.

or am I wrong?

The one processed by shipmodul would be the plotter one (N2K)
__________________
Corsair

Roses don't bloom on the sailor's grave
Corsair63 is offline   Reply With Quote
Old 23-05-2023, 14:53   #551
Registered User

Join Date: Jun 2022
Location: Cantabria
Boat: Jeanneau - Merry Fisher 925
Posts: 497
Re: Watchdog Plugin

Quote:
Originally Posted by stevead View Post
...
The problem seems to lie in the Depth (DPT) sentence.

A sentences of the form $--DPT,x.x,x.x,x.x*hh<CR><LF> is a valid version 3 sentence.

A sentence of the form $--DPT,x.x,x.x*hh<CR><LF> is a valid version 2 sentence, it omits the maximum range field.
Hi Steve,

as far as I see in my both DPT sentences are of 3 fields, because the one generated (guess) by shipmodul coming from plotter N2K also has it by means of no data but the coma is in there as third separator.

Furuno Echo-Sounder (FCV-587) from 0183:
$SDDPT,3.3,0.0,9999.9*6C

Furuno Plotter (GP1971F) from N2k:
$SDDPT,3.25,0.00,*7F

and this second one is the one working, why? if it has also 3 data fields.

because if it would be generated with only two fields would be:
$SDDPT,3.25,0.00*7F
__________________
Corsair

Roses don't bloom on the sailor's grave
Corsair63 is offline   Reply With Quote
Old 05-06-2023, 08:45   #552
Registered User

Join Date: Dec 2021
Posts: 8
Re: Watchdog Plugin

Hello, I used flatpak to install OpenCpn 5.8.2-0 on my RPI4 (Debian 64) The Watchdog plugin doesn't appear in the plugin menu and I couldn't find a way to install it...Any assistance will be greatly appreciate.
BR, Yannick
Stadlo2 is offline   Reply With Quote
Old 05-06-2023, 09:09   #553
Registered User
 
rgleason's Avatar

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

Quote:
Originally Posted by Stadlo2 View Post
Hello, I used flatpak to install OpenCpn 5.8.2-0 on my RPI4 (Debian 64) The Watchdog plugin doesn't appear in the plugin menu and I couldn't find a way to install it...Any assistance will be greatly appreciate.
BR, Yannick
This plugin needs to be rebuilt fusing a new template, and also needs some work, I hope to be doing this in the next week.
rgleason is offline   Reply With Quote
Old 05-06-2023, 11:05   #554
Registered User

Join Date: Dec 2021
Posts: 8
Re: Watchdog Plugin

Ok, many thanks for that and well appreciated !
BR
Yannick
Stadlo2 is offline   Reply With Quote
Old 07-06-2023, 14:45   #555
Registered User

Join Date: Jun 2022
Location: Cantabria
Boat: Jeanneau - Merry Fisher 925
Posts: 497
Re: Watchdog Plugin

Hi all,

just thinking about the problem of this plugin that do not display the depth from my 0183 Echo-Sounder (from now ES) but displayed the depth from the N2K ES, I tried something else with the 0183.

I have that ES with NMEA output as ver 3.0 giving this output:
$SDDPT,3.3,0.0,9999.9*6C
absolutely conforming with the NMEA standard as per version info of NMEA sentences.
that ES has the option of transmitting version either 1.5 / 2.0 / 3.0 so I switched to version 2.0 and the output was:
$SDDPT,3.1,0.0*55
and voila the plugin started showing the depth.

as per info above it should be considered as two fields sentence that it isn't the standard in new versions of NMEA.

but is displayed a sentence 0183 converted from ES N2K with three fields:
$SDDPT,3.25,0.00,*7F
with null third field instead the proper one from 0183 ES with version 3.0 but only with the third filed as 9999.9

I don't know what to say?

well at least for the time being with version 2.0 in 0183 ES the plugin is working, but should not.

I haven't tested 1.5, it has been too much success and brain storming for one day. And my only neuron is almost firing sparks
__________________
Corsair

Roses don't bloom on the sailor's grave
Corsair63 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 646 01-07-2024 11:36
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 13:56.


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.