HTTP server to handle Platform of Trust Broker API requests.
These instructions will get you a copy of the connector up and running.
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 is required from https://transparency.entsoe.eu/ to work. Put in config/entsoe-electricity-price-product-code.json:
"securityToken": "<securityToken>"
docker build -t entsoe-connector .
Command to encrypt config.json:
npm run generate
Output can be found at /temp folder
docker run -p 8080:8080 -d entsoe-connector
docker run -e CONFIGS=<encrypted value> -p 8080:8080 -d entsoe-connector
{
"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"
}
}