# SunrisePlugin

The plugin shows the current sunrise / sunset times for a configured location.

Configure the time format in the plugin configuration JSON file. The format itself is according to strftime(). For colorization text properties can be added.

## REST API

### Get location

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

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

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

### Set location

    POST {{ORIGIN}}/rest/api/v1/display/uid/<PLUGIN-UID>/location?longitude=<LONGITUDE>&latitude=<LATITUDE>

    POST {{ORIGIN}}/rest/api/v1/display/alias/<PLUGIN-ALIAS>/location?longitude=<LONGITUDE>&latitude=<LATITUDE>

- PLUGIN-UID: The plugin unique id.
- PLUGIN-ALIAS: The plugin alias name.
- LONGITUDE: The longitude of the location.
- LATITUDE: The latitude of the location.

### Configuration

### Location

Plugin UID:
Latitude:
Longitude: