Skip to content

PlatformOfTrust/connector-entsoe

Repository files navigation

Multi-Connector

HTTP server to handle Platform of Trust Broker API requests.

Getting Started

These instructions will get you a copy of the connector up and running.

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 free Let's Encrypt SSL certificate by Greenlock Express v4 is supported by including the following variables.

GREENLOCK_DOMAIN=www.example.com
[email protected]

API key

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 config files

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"
  }
}

About

Connector to get electricity price from entsoe api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published