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

iobroker.weatherflow_udp

v0.1.4

Published

Weatherflow UDP receiver

Downloads

85

Readme

Logo

Weatherflow UDP

NPM version Downloads Number of Installations (latest) Number of Installations (stable) Known Vulnerabilities

NPM

Tests: Windows: AppVeyor

weatherflow_udp adapter for ioBroker

Weatherflow UDP receiver Adapter to receive and parse UDP messages from Weatherflow smart weatherstations like Weatherflow Tempest. The adapter should be able to parse older stations like "Air" and "Sky" as well (but this is untested). Standard port the adpater listens on is 50222 but can be changed in setup.

Settings

The adapter provides a minimum set of setup options. The listening port can be changed, which should not be required as the port the weatherstation hub is sending can not be changed, to my knowledge.

The station height in meters above sea level is used to calculate the reduced pressure from local pressure as is provided by the station. Just use the same height as entered in the App. There may be small differences compared to the reduced pressure in the app depending on the formula used. The adapter uses the formula the german weather service DWD is using (http://dk0te.ba-ravensburg.de/cgi-bin/navi?m=WX_BAROMETER; nur noch hier).

When the debug checkbox is ticked, the adapter creates a lot of output in the log file. Should only be used for debugging.

Data and states by weatherflow

The adapter provides all parameters that are sent over the UDP protocol. States are in a tree below the hub and station ID. Caution: When sending data to databases for long term archiving, aliases for the states should be used to not lose the series if a unit needs replacement. There are some differences to what the Tempest-App provides, as the App gets the already processed data back from weatherflow servers. Given sufficient battery power, "device_status" and "obs_st" data and is updated every minute, "rapid_wind" is updated every 3 seconds. "evt_precip" and "evt_strike" are only updated (and created) when they happen. "hub_status" is updated every 10 seconds. Values from the station and the adapter calculated (see below) values are only created when received or due for calculation. This means it might take up to 24h to see everything, except rain start and lightning strike events, which might take days, weeks, months to appear ;-)

Adapter calculated states

In addition to the data provided by the system, the adapter calculates some additional data, which all have "adapter calculated" as a name suffix:

  • Wind average, gust and lull in beaufort
  • dewpoint calculated from temperature and humidty
  • feels like temperature calculated from temperature, humidity and average wind. Depending on temperature and wind or temperature or humidity either jsut the air temperature is displayed or wind chill or heat index is calculated.
  • Precipitation amount and duration as well as sunshine duration (>= 120 W/m2) are provided for the current and past hour as well as today and yesterday. Using previous hour and yesterday allows for easily storing data into a database on changes of the values.
  • Precipition intensity is provided according to this scale: none(0): 0 mm / hour; very light(1): > 0, < 0.25 mm / hour; light(2): ≥ 0.25, < 1.0 mm / hour; moderate(3): ≥ 1.0, < 4.0 mm / hour; heavy(4): ≥ 4.0, < 16.0 mm / hour; very heavy(5): ≥ 16.0, < 50 mm/hour; extreme(6): > 50.0 mm / hour
  • Raining is also shown as a boolean state (true, false) in precip_evt. It will be set to true if a precipiation event is received and if precipitation value is >0. After 3 minutes it is reset if it is no longer raining
  • Sunshine is also shown as a boolean state true if >= 120 W/m2 and false if less
  • Wind direction in cardinal letters (NSWE) calculated from wind direction in degrees. Further, the adapter provides a selection of useful minimum and maximum values of parameters for today and yesterday.
  • sensor_status as text to easily see which sensor(s) failed if this happens.
  • From sensor_status bits, the power mode is extracted (experimental)

Lightning distance

The protocol sends a lightning distance of 0 when no lightning was detected. Values of 0 are modified to 999 to avoid the impression that lightning strikes are directly overhead.

Changelog

0.1.4

(womi) updated to reflect latest requirements on dependencies, node.js, js-controller etc.

0.1.3

(Scrounger) calculation of absolute humidity added

0.1.2

(womi) Update js-controller >3.0.0; checked compatibility with js-controller 4.0

0.1.1

(womi) Fixed "invalid date" in timestamps

0.1.0

(womi) Compatibility with Admin 5; Stable version

License

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Copyright (c) 2024 womi [email protected]