Skip to content

A js library with classes for weather condition data

Notifications You must be signed in to change notification settings

darsys/weatherdatatools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather data tools

weatherdatatools is a js library to facilitate working with weather data. This library means to provide objects in which to push weather condition readings (ie temperature, rainfall, wind speed, wind direction) over time that can then provide processed meaningful weather conditions.

Examples: average windspeed 5 minutes rainfall 24 hours average cardinal wind direction - SSW

Key components

condition : Base class for tracking a condition using an array of observations indexed by timestamps. The class includes typical array functions like avg, min, max, span, latest. A key feature of this class is the ability to filter observations by timeSpam which represents seconds before now. For example a timeSpan of 300 would be observations in the last 5 minutes (300 seconds)

rain : rain accumulation 5m,1h,12h,24h using a static rain value

wind_speed : windGust(tS=300), windAvg(tS=300), static wind_mph_kph(speedMPH)

wind_dir : avg(), cardinal, static cardinalFromDegree

temperature: : avg

humidity : avg

Example

const wdt = require('weatherdatatools')

const rain = 

Author

🤝 Support

Contributions, issues, and feature requests are welcome!

About

A js library with classes for weather condition data

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published