Skip to content

Region Connector for Spain (Datadis)

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

Prerequisites

  • Register a user with Datadis here.

Configuration of the Region Connector

The region connector needs a set of configuration values to be able to function correctly, how you provide these values depends on the way you deploy the region connector.

Configuration valuesDescription
region-connector.es.datadis.usernameUsername (DNI/NIF) used to log into the Datadis website private area.
region-connector.es.datadis.passwordPassword for the user used to log into the Datadis website private area.
region-connector.es.datadis.pollingConfigures when future data should be polled. Uses Cron syntax. The default is every day at 17:00. Do not poll more than once a day. Datadis limits the number requests to one per day. Smaller intervals will result in errors when polling data.
region-connector.es.datadis.retryConfigures the interval in which failed permission requests should be retried. Uses Cron syntax. The default is hourly.
region-connector.es.datadis.basepathChanges the base path used by the datadis clients. The default is https://datadis.es/

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.es.datadis.username=12345756X
region-connector.es.datadis.password=secret
region-connector.es.datadis.polling=0 0 17 * * *
region-connector.es.datadis.retry=0 0 * * * *
region-connector.es.datadis.basepath=https://datadis.es/
yaml
region-connector:
  es:
    datadis:
      username: 12345756X
      password: secret
      polling: 0 0 17 * * *
      retry: 0 0 * * * *
      basepath: https://datadis.es/
dotenv
REGION_CONNECTOR_ES_DATADIS_USERNAME=12345756X
REGION_CONNECTOR_ES_DATADIS_PASSWORD=secret
REGION_CONNECTOR_ES_DATADIS_POLLING=0 0 17 * * *
REGION_CONNECTOR_ES_DATADIS_RETRY=0 0 * * * *
REGION_CONNECTOR_ES_DATADIS_BASEPATH=https://datadis.es/

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.