Skip to content

Region Connector for Denmark (Energinet)

This README will guide you through the process of configuring a region connector for Denmark.

Prerequisites

  • You have to have an account at the Eloverblik web portal.
  • In this web portal you have to generate an API key, also called refreshToken in this region connector's context, which you have to provide when sending a request.

Configuration of the Region Connector

The region connector needs a set of configuration values to be able to function correctly, right now only the URL to the API endpoints are needed and already provided. Right now the customer API endpoint is the only one in use.

Configuration valuesDescription
region-connector.dk.energinet.customer.client.basepathThe URL to the customer API endpoint.
region-connector.dk.energinet.pollingConfigures when future data should be polled. Uses Cron syntax. The default is 17 o'clock every day.
region-connector.dk.energinet.retryConfigures when unable-to-send permission requests should be resent. Uses Cron syntax. The default is 17 o'clock every day.

The region connector can be configured using Spring properties or environment variables. When using environment variables, the configuration values need to be converted in the following way:

  • Replace all non-alphanumeric characters with an underscore (_)
  • Optionally convert all letters to upper case
properties
region-connector.dk.energinet.customer.client.basepath=https://api.eloverblik.dk/
region-connector.dk.energinet.polling=0 0 17 * * *
region-connector.dk.energinet.retry=0 0 17 * * *
yaml
region-connector:
  dk:
    energinet:
      customer:
        client:
          basepath: https://api.eloverblik.dk/
      polling: 0 0 17 * * *
      retry: 0 0 17 * * *
dotenv
REGION_CONNECTOR_DK_ENERGINET_CUSTOMER_CLIENT_BASEPATH=https://api.eloverblik.dk/
REGION_CONNECTOR_DK_ENERGINET_POLLING=0 0 17 * * *
REGION_CONNECTOR_DK_ENERGINET_RETRY=0 0 17 * * *

Running the Region Connector via EDDIE

If you are using EDDIE, the region connector should appear in the list of available region connectors if it has been configured correctly.