sbender9 / signalk-anchoralarm-plugin

SignalK Node Server Anchor Alarm Plugin
Apache License 2.0
13 stars 9 forks source link

Feature request: Allow lat/long to be input by pasting data copied from opencpn #32

Open boatybits opened 1 year ago

boatybits commented 1 year ago

I use an opencpn waypoint to monitor boat position when anchored, it would be very useful to be able to copy the anchor position waypoint lat/lon & paste the position into the anchoralarm plugin in signalk plugin config. Data from opencpn is formatted like this > "28° 51.6568' N 013° 49.7503' W" thnx.

JDaviso1 commented 8 months ago

Something similar would be helpful for me, too. I drop a pin on my chartplotter while I drop my anchor. I later set the anchor's position based on the pin's lat/lon. I would love a REST call to set the lat/lon. Perhaps something like:

curl -X POST -H "Content-Type: application/json" -d '{"latitude": 18.0942, "longitude": -65.4409}' http://localhost:3000/plugins/anchoralarm/setAnchorPosition

dsc03GIT commented 3 months ago

This feature would also help me. I have built an anchor couter from an esp32 and it is integrated into my Home Assistant - SignalK - node-red smart boat. The anchor counter feeds the lat-lon, chain lenght, etc into the system so they are available for automation. The REST call that JDaviso1 suggests above would be perfect. Thanks for the great plugin

dsc03GIT commented 3 months ago

Also I note that calling "setManualAnchor" returns a limit that needs to be formatted to 0ne decimal place similar to the Distance value. Right now it blows up the map values inset. Requires another call to setRadius with a trimmed value to clean up the display Thanks again