2.0.0 • Published 3 years ago

meteostat v2.0.0

Weekly downloads
63
License
MIT
Repository
github
Last release
3 years ago

Meteostat

npm npm bundle size NPM semantic-release

Meteostat is an open platform which provides free access to weather and climate data.

Documentation

Meteostat provides a convenient JavaScript wrapper for its JSON API.

See the JSON API docs for more information about the API.

Installation

To install the package, run:

npm install meteostat

or

yarn add meteostat

Usage

All you need to get started is an API key, which can be generated here. Once you have your API key, you can create a client:

import { Meteostat } from 'meteostat'

const meteostat = new Meteostat('YOUR_API_KEY_HERE')

;(async () => {
  try {
    const { data } = await meteostat.stations.nearby({ lat: '51.5085', lon: '-0.1257' })
    console.log(data)
  } catch (error) {
    console.log(error)
  }
})()

Reference

Data License

Meteorological data is provided under the terms of the Creative Commons Attribution-NonCommercial 4.0 International Public License. Please be aware that Meteostat uses data which is shared under WMO resolution 40.

All meteorological data sources used by the Meteostat project are listed here.

Contributing

Issues and pull requests are welcome.

License

MIT

1.1.2-dev.1

3 years ago

1.1.2-dev.0

3 years ago

2.0.0

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1-develop.3

3 years ago

1.0.1-develop.2

3 years ago

1.0.1-develop.4

3 years ago

1.0.1

3 years ago

1.0.1-develop.1

3 years ago

1.0.1-develop.0

3 years ago

0.0.1-develop.8

3 years ago

1.0.0

3 years ago

0.0.1-develop.7

3 years ago

0.0.1-develop.6

3 years ago

0.0.1-develop.5

3 years ago

0.0.1-develop.4

3 years ago

0.0.1-develop.3

3 years ago

0.0.1-develop.1

3 years ago

0.0.1-develop.2

3 years ago

0.0.1-develop.0

3 years ago