conkw documentation - OpenWeatherMapGrabber

This is the weather grabber. It relies on the one call api of the open weather map website.

Use cases

Usage

In order to use it, you need to:

Configuration

{
  "implementation":"net.pieroxy.conkw.webapp.grabbers.openweathermap.OpenWeatherMapGrabber",
  "name":"paris_weather",
  "config": {
    "toExtract":["minute","hour","day","current"],
    "token":"your api token here",
    "lat":48.8534,
    "lon":2.3488
  }
},

As this is a TimeThrottledGrabber, you can define ttl and errorTtl. See here for more details. The default ttl is 5 minutes.

Metrics always extracted:

Possible extractions:

current

Extracts the current weather.

Metrics:

minute

Extracts weather forecast on the next hour, mostly precipitations.

Metric, where <i> goes from 0 to 59:

hour

Extracts weather forecast on the next 48 hours, by the hour.

Metrics, where <i> goes from 0 to 47:

day

Extracts weather forecast on the next 7 days, by the day.

Metrics, where i goes from 0 to 7:

Final notes

There are a few metrics in the API that are not extracted, such as UV, dew point, wind gust, ...

If you need them, please provide a pull request or just open an issue. For reference, here is the documentation for the api.