Back to top
Vastuu Group

Entsoe Connector with Tests

Version: 1.0
Last updated: Sept. 16, 2020
|
Reading time: 2 min

Get it now

Entsoe Transparency Platform centrally collects and publishes electricity generation, transportation and consumption data and information for the pan-European market.

This connector has been designed to retrieve electricity prices from the Entsoe API.

Also included in this package is automated tests in the Robot framework.

You'll get a copy of the connector up and running with the following instructions set:

Prerequisites

Using environment variables is optional.

Connector generates RSA keys automatically, but keys can be also applied from the environment.

PRIVATE_KEY=-----BEGIN PRIVATE KEY-----\nMII...
PUBLIC_KEY=-----BEGIN PUBLIC KEY-----\nMII...

Issuing and renewing is free. Let's Encrypt SSL certificate by Greenlock Express v4, which is supported by including the following variables.

GREENLOCK_DOMAIN=www.example.com
GREENLOCK_MAINTANER=info@example.com

API key

An API key is required from https://transparency.entsoe.eu/ to work. Put in config/entsoe-electricity-price-product-code.json:

"securityToken": "<securityToken>"

Building Docker Image

docker build -t entsoe-connector

Encrypting configs

Command to encrypt config.json:

npm run generate

Output can be found at /temp folder

Basic running

docker run -p 8080:8080 -d entsoe-connector

Running with encrypted env variables

docker run -e CONFIGS=<encrypted value> -p 8080:8080 -d entsoe-connector

Request body example

{
  "timestamp": "2020-05-25T13:02:13.142Z",
  "productCode": "entsoe-electricity-price-product-code",
  "parameters": {
    "period": "2020-06-08T13:00Z/2020-06-09T22:00Z",
    "targetObject": "10YFI-1--------U"
  }
}

Get Entsoe connector and tests

Something not working?

Identified an issue? Report it to GitHub