GithubHelp home page GithubHelp logo

open-meteo-wmo-to-emoji's Introduction

open-meteo wmo to ☀️

Description

The @akaguny/open-meteo-wmo-to-emoji package provides a function, openWeatherWMOToEmoji, that translates World Meteorological Organization (WMO) weather codes into corresponding emojis. The package is available as an NPM module and is intended for use in web applications and other software projects.

Installation

npm install @akaguny/open-meteo-wmo-to-emoji

Usage

import { openWeatherWMOToEmoji } from '@akaguny/open-meteo-wmo-to-emoji';

const emoji = openWeatherWMOToEmoji(01); // ☀️

Input Format

The package accepts weather codes as numbers, corresponding to the WMO standard:

  • 0 - Clear
  • 1, 2, 3 - Mainly clear, partly cloudy, overcast
  • 45, 48 - Fog and depositing rime fog
  • 51, 53, 55 - Drizzle: Light, moderate, and dense intensity
  • 56, 57 - Freezing Drizzle: Light and dense intensity
  • 61, 63, 65 - Rain: Slight, moderate and heavy intensity
  • 66, 67 - Freezing Rain: Light and heavy intensity
  • 71, 73, 75 - Snow fall: Slight, moderate, and heavy intensity
  • 77 - Snow grains
  • 80, 81, 82 - Rain showers: Slight, moderate, and violent
  • 85, 86 - Snow showers slight and heavy
  • 95, 96, 99 - *Thunderstorm: Slight or moderate, with or without hail

Requirements

The package has no dependencies and can be used in any environment that supports JavaScript.

License

The package is distributed under the MIT license.

Contributing

  • build with npm run build
  • publish with npm run deploy

open-meteo-wmo-to-emoji's People

Watchers

Alexey avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.