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

signalk-barometer-trend

v2.3.3

Published

Get pressure trend and weather predictions from a barometer over time

Downloads

66

Readme

Node.js Package

signalk-barometer-trend

Calculate pressure trend and get weather predictions from a barometer over time. Are there foul weather on the way?

Prerequisites

  • A barometer, i.e. the bme280, outputting 'environment.outside.pressure' to SignalK
  • Optional: GPS-coordinates to determinate if located in northern | southern hemisphere (default: northern)
  • Optional: Temperature sensor and GPS-altitude for increased precision

Install & setup

Install the plugin through the SignalK plugin interface. 'Enable' it through the Plugin Config interface.

SignalK Plugin Config

  • Sample Rate: More | fewer readings. This may result in a more | less "jumpy" barometer-trend. (Default = 60).
  • Altitude Offset: Ajust for any differences between your sensor altitude to GPS-altitude. (Default = 0).

Use

It might take a couple of minutes before the plugin show any data, as it need to collect pressure readings to calculate a trend. The plugin will not change the pressure readings you observe in SignalK - only internally for calculations.

The plugin outputs several new SignalK-values, such as:

'environment.outside.pressure.trend.tendency'
'environment.outside.pressure.trend.severity'
'environment.outside.pressure.prediction.pressureOnly'
...

The plugin saves all barometer readings every 3 minutes and when the plugin is disabled. Within a timeframe of 3 hours it should be able to read meaningful data when the plugin is started again.

SignalK Data Browser

Alarms

Based on the severity value it's possible to set an alarm, using the Simple Notification-plugin (see severity table below).

'environment.outside.pressure.trend.severity'

FALLING: | RISING: ------------ | ------------- (0) FALLING.STEADY | (0) RISING.STEADY (-1) FALLING.SLOW | (1) RISING.SLOW (-2) FALLING.CHANGING | (2) RISING.CHANGING (-3) FALLING.QUICKLY | (3) RISING.QUICKLY (-4) FALLING.RAPIDLY | (4) RISING.RAPIDLY

Contribute

Please feel free to contribute to this plugin by creating an issue and/or a Pull Request including test code.

Disclaimer

  • See all disclaimers by reading the README at the GitHub project 'barometer-trend', also by the same author, to understand the limitations of this plugin.

External links

Real world example

This is actual data while developing the plugin. A tropical wave, OT-48, was moving through the Caribbean creating local heavy rainfall and stormy winds in Guadeloupe.

SigK Pressure Trend

Meteo France - Guadeloupe Radar

The above GIF-animation is actual radar image from Meteo France at the time.
The above satelitte photo animation is from NOAA.