# OpenWeatherPlugin

The plugin shows the current weather condition (icon and temperature) and one aditional information (see configuration below) provided by https://openweathermap.org/.

## REST API

### Get the OpenWeather related configuration .

    GET {{ORIGIN}}/rest/api/v1/display/uid/<PLUGIN-UID>/weather

    GET {{ORIGIN}}/rest/api/v1/display/alias/<PLUGIN-ALIAS>/weather

- PLUGIN-UID: The plugin unique id.
- PLUGIN-ALIAS: The plugin alias name.

### Set OpenWeather related configuration.

    POST {{ORIGIN}}/rest/api/v1/display/uid/<PLUGIN-UID>/weather?apiKey=<API-KEY>&latitude=<LATITUDE>&longitude=<LONGITUDE>&other=<OTHER>&units=<UNITS>

    POST {{ORIGIN}}/rest/api/v1/display/alias/<PLUGIN-ALIAS>/weather?apiKey=<API-KEY>&latitude=<LATITUDE>&longitude=<LONGITUDE>&other=<OTHER>&units=<UNITS>

- PLUGIN-UID: The plugin unique id.
- PLUGIN-ALIAS: The plugin alias name.
- API-KEY: The OpenWeather api key.
- LATITUDE: The latitude of the location.
- LONGITUDE: The longitude of the location.
- UNITS: `metric` or `imperial`
- OTHER: `uvIndex` or `humidity` or `windspeed` or `off`

### Configuration

Plugin UID:
API key:
Latitude:
Longitude:
Additional information:
Units: