Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

nicolasgrancher/weather-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

6 Commits

Repository files navigation

WeatherJS

Overview

WeatherJS is a set of javascript functions to work on weather and pollution data.

Features

Get apparent temperature

  • apparentTemperature(Tc, Vkmh, R, P) : Get apparent temperature. Use wind chill or heat index calculation based on temperature.

    • Tc : temperature in celsius
    • Vkmh : wind speed in km/h
    • R : relative humidity (between 0 and 1)
    • P : pressure in hPa
  • heatIndex(Tc, R, P) : Heat index calculation.

    • Tc : temperature in celsius
    • R : relative humidity (between 0 and 1)
    • P : pressure in hPa
  • windChill(Tc, Vkmh) : Wind chill calculation.

    • Tc : temperature in celsius
    • Vkmh : wind speed in km/h
  • dewPoint(Tc, R) : Dew point calculation.

    • Tc : temperature in celsius
    • R : relative humidity (between 0 and 1)

Conversion

  • fahrenheitToCelsius(Tf)
    • Tf : temperature in fahrenheit.
  • celsiusToFahrenheit(Tc)
    • Tc : temperature in celsius.

Get pollution ATMO index

  • getAtmoIndex(O3, SO2, NO2, PM10) : Get french pollution index ATMO
    • O3 : O3 value in μg/m3
    • SO2 : SO2 value in μg/m3
    • NO2 : NO2 value in μg/m3
    • PM10 : PM10 value in μg/m3

About

WeatherJS is a set of javascript functions to work on weather data.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

AltStyle によって変換されたページ (->オリジナル) /