npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hoekens-anchor-alarm

v1.1.1

Published

Fork of signalk-anchoralarm-plugin with upgraded UI, historical tracks, and lazy mode.

Downloads

203

Readme

hoekens-anchor-alarm

This is a fork of the venerable signalk-anchoralarm-plugin by Scott Bender.

I wanted a simple, web-only anchor alarm with my own personal UI style and some features that may be controversial (like automatic alarm cancelling if your engines are running). If you want to use an external app or API, you are probably better off using the old plugin.

Some of the changes I've made:

  • Added historical tracks from @signalk/tracks-plugin
    • I recommend setting this to a resolution of 1000ms and 86400 points to keep. This gives you high resolution data for the last 24 hours. If you've got plenty of memory, you might as well use it.
  • Added a check to prevent anchor alarm from firing when engines are on
    • I always forget to turn the anchor alarm off and its annoying when it alarms as I'm motoring away.
    • If you're truly dragging and you have your motor(s) on, then you already know about it!
    • Plus, the act of turning on your engines will disable the alarm. One less thing to do in an urgent situation.
  • Lots of UI improvements:
    • Added colors to the historical tracks. Green = new, fading to red = old
    • Inital anchor position guess is now pretty accurate
    • Added a line to show distance and bearing to anchor
    • Added status panel with: wind speed/direction, depth, alarm status
    • Set anchor position now by dragging instead of panning.
    • Cleaned up alarm radius UI
    • Increased the max zoom
    • Added other boats + their tracks
    • More responsive UI

Usage

This plugin is intended to be used through the web interface with a phone or computer browser. Simply point your Web Browser to http://[signalk-server-ip-address]:[port-number]/hoekens-anchor-alarm/ and you can set your anchor alarm.

The way I use this app is to anchor the boat first, then once I'm settled I will use the webapp to set the anchor alarm. This is where its good to have a high resolution on the tracks, as you can usually see exactly where you dropped the hook. Make sure to set your radius a bit bigger to avoid false alarms.

If you have engine data in SignalK (propulsion.*.rpm or propulsion.*.state) then you can enable the engine check functionality. Then, when you leave the anchorage under engine power, it will automatically end the anchor watch. Additionally, if you are dragging anchor and you start your engines to reposition, it will also disable the anchor alarm. When your anchor is dragging, it can sometimes be hectic. There's no reason to bombard you with alarms when you are aware of it and getting it sorted.

Setup Requirements

In order to take advantage of the extra features, make sure your SignalK is setup to provide the following data:

  • navigation.headingTrue - if your plotter doesnt provide this, use derived-data plugin
  • environment.depth.belowTransducer - to guess the scope based on your current depth
  • sensors.gps.fromBow and sensors.gps.fromCenter - for more accurate anchor position guessing
  • data.environment.wind.directionTrue and environment.wind.speedApparent - for UI
  • propulsion.*.rpm or propulsion.*.state - used to determine if engines are on or not (optional)
  • design.length and design.beam - for future use with accurate size icons

Recommendations

This app pairs well with some other software:

  • Node-RED + Pushbullet for push notifications to your phone. Really great for when you're off the boat. Also works when you're on the boat to get an alarm on your phone.
  • signalk-autostate - Simply by using the anchor app, the plugin can automatically determine the difference between moored and anchored. You can then use this to automate things like an anchor light.
  • I highly recommend installing Tailscale on your devices. It makes it so easy to access SignalK remotely. Plus it's free and very simple to setup.

Attribution

Anchor icons created by Freepik - Flaticon