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 🙏

© 2026 – Pkg Stats / Ryan Hefner

signalk-mareas-ihm

v1.3.1

Published

Official tide predictions from the Spanish Hydrographic Institute (IHM).

Readme

signalk-mareas-ihm

🇪🇸 Español · 🇬🇧 English


Español

Plugin de Signal K para predicción de mareas en España usando datos oficiales del IHM (Instituto Hidrográfico de la Marina), con Visor de Fondeo integrado, alarmas inteligentes y soporte para domótica.

Características principales

Mareas

  • Predicción de mareas automática por GPS o selección manual de estación
  • Curvas de marea interactivas con HAT/LAT anuales, cursor interactivo y etiquetas de pleamar/bajamar
  • Coeficientes oficiales IHM con descarga automática
  • Consejo táctico para las Rías Baixas (experimental)
  • Caché offline de al menos 2 meses de predicciones

Visor de Fondeo

  • Mapa Leaflet con posición GPS en tiempo real y capas múltiples (ESRI, Bing, Google, IHM S-52, SonarChart, MBTiles offline)
  • Anchor Watch con alarma de garreo visual y sonora
  • Cadena largada con slider bidireccional y cálculo automático
  • Radio de borneo y alarma con etiquetas en la carta
  • Sincronización multi-dispositivo en tiempo real (SSE)

AIS Inteligente

  • Detección de colisión con targets AIS en zona de borneo
  • ACK por target individual — silencia alarma de un barco sin desactivar la alarma general
  • Detección de garreo ajeno — si un target ACKed se acerca >2m/min, la alarma se reactiva
  • Estimación de ancla de otros barcos mediante análisis de track (centroide + radio máximo)
  • Anillos de colisión persistentes en la carta

Alarmas Inteligentes

  • Alarma de varada solo cuando el barco está parado (SOG < 0.5kn)
  • Detección de sonda congelada, inestable, fuera de rango
  • Alarmas independientes de garreo, AIS y sonda con control individual
  • Previsión meteorológica integrada (Open-Meteo) con múltiples modelos

Domótica / KIP

  • Botones KIP para fondear/levar y activar/desactivar alarmas
  • Endpoints REST para Alexa, Google Home, Node-RED, MQTT
  • Endpoint toggle para mandos a distancia con un solo botón

Bilingüe completo

  • Interfaz en español e inglés en todas las vistas
  • Idioma sincronizado entre Landing, Mareas y Visor de Fondeo
  • Banderas de idioma en la barra inferior del visor

URLs

| URL | Función | |-----|---------| | /signalk-mareas-ihm/ | Landing — selector Mareas / Visor de Fondeo | | /signalk-mareas-ihm/mareas | Vista de Mareas (directo) | | /signalk-mareas-ihm/visorfondeo | Visor de Fondeo (directo) |

Domótica — Endpoints REST

# Fondear/Levar con un solo botón
curl -X POST http://openplotter.local:3000/signalk-mareas-ihm/api/anchor-watch/toggle

# Fondear en posición GPS actual
curl -X POST http://openplotter.local:3000/signalk-mareas-ihm/api/anchor-watch/drop

# Levar ancla
curl -X POST http://openplotter.local:3000/signalk-mareas-ihm/api/anchor-watch/lift

# Estado simple (para monitorización)
curl http://openplotter.local:3000/signalk-mareas-ihm/api/anchor-watch/simple

KIP — Paths para Boolean Control

| Path | Función | |------|---------| | environment.anchor.mareasIhm.anchorCommand | Fondear (true) / Levar (false) | | environment.anchor.mareasIhm.garreoAlarmCommand | Alarma garreo ON/OFF | | environment.anchor.mareasIhm.aisAlarmCommand | Alarma AIS ON/OFF |

Instalación

cd /home/pi
unzip -o signalk-mareas-ihm_v1.3.1_RevXX.zip
cd signalk-mareas-ihm
npm install && npm run build && npm pack
cd ~/.signalk
npm install /home/pi/signalk-mareas-ihm/signalk-mareas-ihm-1.3.1.tgz --save
sudo systemctl restart signalk

English

Signal K plugin for Spanish tide predictions using official data from IHM (Instituto Hidrográfico de la Marina), with integrated Anchor Watch Viewer, smart alarms and home automation support.

Main Features

Tides

  • Automatic tide prediction by GPS or manual station selection
  • Interactive tide curves with annual HAT/LAT, interactive cursor and high/low tide labels
  • Official IHM coefficients with automatic download
  • Tactical advice for the Rías Baixas (experimental)
  • Offline cache of at least 2 months of predictions

Anchor Watch Viewer

  • Leaflet map with real-time GPS position and multiple layers (ESRI, Bing, Google, IHM S-52, SonarChart, offline MBTiles)
  • Anchor Watch with visual and audible drag alarm
  • Chain deployed with bidirectional slider and automatic calculation
  • Swing and alarm radius with chart labels
  • Multi-device real-time sync (SSE)

Smart AIS

  • Collision detection with AIS targets in swing zone
  • Per-target ACK — silence alarm for one boat without disabling the general alarm
  • External dragging detection — if an ACKed target approaches >2m/min, alarm reactivates
  • Anchor estimation for other boats via track analysis (centroid + max radius)
  • Persistent collision rings on chart

Smart Alarms

  • Grounding alarm only when boat is stopped (SOG < 0.5kn)
  • Sounder detection for frozen, unstable, out-of-range readings
  • Independent alarms for drag, AIS and depth with individual control
  • Weather forecast integrated (Open-Meteo) with multiple models

Home Automation / KIP

  • KIP buttons for drop/lift and alarm enable/disable
  • REST endpoints for Alexa, Google Home, Node-RED, MQTT
  • Toggle endpoint for single-button remote controls

Full Bilingual

  • Interface in Spanish and English across all views
  • Language synced between Landing, Tides and Anchor Watch Viewer
  • Language flags in the viewer's bottom bar

URLs

| URL | Function | |-----|----------| | /signalk-mareas-ihm/ | Landing — Tides / Anchor Watch selector | | /signalk-mareas-ihm/mareas | Tides view (direct) | | /signalk-mareas-ihm/visorfondeo | Anchor Watch Viewer (direct) |

Home Automation — REST Endpoints

# Drop/Lift with single button
curl -X POST http://openplotter.local:3000/signalk-mareas-ihm/api/anchor-watch/toggle

# Drop anchor at current GPS
curl -X POST http://openplotter.local:3000/signalk-mareas-ihm/api/anchor-watch/drop

# Lift anchor
curl -X POST http://openplotter.local:3000/signalk-mareas-ihm/api/anchor-watch/lift

# Simple status (for monitoring)
curl http://openplotter.local:3000/signalk-mareas-ihm/api/anchor-watch/simple

Installation

cd /home/pi
unzip -o signalk-mareas-ihm_v1.3.1_RevXX.zip
cd signalk-mareas-ihm
npm install && npm run build && npm pack
cd ~/.signalk
npm install /home/pi/signalk-mareas-ihm/signalk-mareas-ihm-1.3.1.tgz --save
sudo systemctl restart signalk

© IHM — Datos oficiales del Instituto Hidrográfico de la Marina de España