Skip to content

Commit

Permalink
Merge pull request #8 from meteostat/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
rfoel authored Nov 20, 2020
2 parents 35f69d0 + 0377a04 commit 26312cc
Show file tree
Hide file tree
Showing 6 changed files with 565 additions and 1,078 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
name: Pre-release
name: Develop

on:
push:
branches:
- develop

jobs:
prerelease:
develop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm install
- run: npm run build
- uses: rfoel/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm test
- run: npm run lint
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
with:
node-version: 12
- run: npm install
- run: npm test
- run: npm lint
- run: npm run build
- run: npx semantic-release
env:
Expand Down
34 changes: 31 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,27 @@ Meteostat is an open platform which provides free access to weather and climate

## Documentation

See the [JSON API docs](https://dev.meteostat.net/api/) for more information about the API.
Meteostat provides a convenient JavaScript wrapper for its JSON API.

See the [JSON API docs](https://dev.meteostat.net/api) for more information about the API.

## Installation

To install the package, run:

```
npm install meteostat
# or
```

or

```
yarn add meteostat
```

## Usage

All you need to get started is your api key, which can be generated [here](https://auth.meteostat.net/). Create a client with the given api key:
All you need to get started is an API key, which can be generated [here](https://auth.meteostat.net/). Once you have your personal API key, you can create a client:

```javascript
import Meteostat from 'meteostat'
Expand Down Expand Up @@ -56,8 +62,12 @@ const meteostat = new Meteostat('YOUR_API_KEY_HERE')

## <a name="stations"></a> Weather Stations

The methods described in this chapter provide access to meta and weather data of actual weather stations. Alternatively, you can query data by geographical coordinates using [point data](#point).

### <a name="stations_search"></a> Finding Weather Stations

This method provides access to the data made available through the [_stations/search_](https://dev.meteostat.net/api/stations/search) endpoint. The method takes the same parameters and uses the same response format as the corresponding endpoint.

#### Parameters

| Parameter | Description | Type | Required | Default |
Expand Down Expand Up @@ -91,6 +101,8 @@ meteostat.stations.search({ query: 'Sao Paulo' })

### <a name="stations_nearby"></a> Nearby Weather Stations

This method provides access to the data made available through the [_stations/nearby_](https://dev.meteostat.net/api/stations/nearby) endpoint. The method takes the same parameters and uses the same response format as the corresponding endpoint.

#### Parameters

| Parameter | Description | Types | Required | Default |
Expand Down Expand Up @@ -120,6 +132,8 @@ meteostat.stations.nearby({

### <a name="stations_meta"></a> Meta Data

This method provides access to the data made available through the [_stations/meta_](https://dev.meteostat.net/api/stations/meta) endpoint. The method takes the same parameters and uses the same response format as the corresponding endpoint.

#### Parameters

| Parameter | Description | Type | Required | Default |
Expand Down Expand Up @@ -156,6 +170,8 @@ meteostat.stations.meta({

### <a name="stations_hourly"></a> Hourly Data

This method provides access to the data made available through the [_stations/hourly_](https://dev.meteostat.net/api/stations/hourly) endpoint. The method takes the same parameters and uses the same response format as the corresponding endpoint.

#### Parameters

| Parameter | Description | Type | Required | Default |
Expand Down Expand Up @@ -196,6 +212,8 @@ meteostat.stations.hourly({

### <a name="stations_daily"></a> Daily Data

This method provides access to the data made available through the [_stations/daily_](https://dev.meteostat.net/api/stations/daily) endpoint. The method takes the same parameters and uses the same response format as the corresponding endpoint.

#### Parameters

| Parameter | Description | Type | Required | Default |
Expand Down Expand Up @@ -232,6 +250,8 @@ meteostat.stations.daily({

### <a name="stations_climate"></a> Climate Normals

This method provides access to the data made available through the [_stations/climate_](https://dev.meteostat.net/api/stations/climate) endpoint. The method takes the same parameters and uses the same response format as the corresponding endpoint.

#### Parameters

| Parameter | Description | Type | Required | Default |
Expand Down Expand Up @@ -262,8 +282,12 @@ meteostat.point.climate({

## <a name="point"></a> Point Data

The methods described in this chapter provide access to meteorological data through geographical coordinates.

### <a name="point_hourly"></a> Hourly Data

This method provides access to the data made available through the [_point/hourly_](https://dev.meteostat.net/api/point/hourly) endpoint. The method takes the same parameters and uses the same response format as the corresponding endpoint.

#### Parameters

| Parameter | Description | Type | Required | Default |
Expand Down Expand Up @@ -306,6 +330,8 @@ meteostat.point.hourly({

### <a name="point_daily"></a> Daily Data

This method provides access to the data made available through the [_point/daily_](https://dev.meteostat.net/api/point/daily) endpoint. The method takes the same parameters and uses the same response format as the corresponding endpoint.

#### Parameters

| Parameter | Description | Type | Required | Default |
Expand Down Expand Up @@ -345,6 +371,8 @@ meteostat.point.daily({

### <a name="point_climate"></a> Climate Normals

This method provides access to the data made available through the [_point/climate_](https://dev.meteostat.net/api/point/climate) endpoint. The method takes the same parameters and uses the same response format as the corresponding endpoint.

#### Parameters

| Parameter | Description | Type | Required | Default |
Expand Down
Loading

0 comments on commit 26312cc

Please sign in to comment.