From 3575d93dd0349b1b5d5025cd2531ae9e811f5b69 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Tue, 4 Oct 2022 08:24:52 +0200 Subject: adding prefix to environmental variables --- elvia_gridtariff2pgsql.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'elvia_gridtariff2pgsql.py') diff --git a/elvia_gridtariff2pgsql.py b/elvia_gridtariff2pgsql.py index b72f7de..7b97aee 100755 --- a/elvia_gridtariff2pgsql.py +++ b/elvia_gridtariff2pgsql.py @@ -10,13 +10,14 @@ from datetime import datetime from datetime import timedelta from tzlocal import get_localzone +# API documentation: https://elvia.portal.azure-api.net/docs/services/gridtariffapi/operations/post-digin-api-v-tariffquery-meteringpointsgridtariffs? -apiKey = os.environ['elvia_grid_api_key'] +apiKey = os.environ['el_elvia_grid_api_key'] apiUrl = "https://elvia.azure-api.net/grid-tariff/digin/api/1/tariffquery/meteringpointsgridtariffs" -meteringPointId = os.environ['meteringPointId'] +meteringPointId = os.environ['el_meteringPointId'] -pg_db = os.environ['pg_db'] -pg_host = os.environ['pg_host'] +pg_db = os.environ['el_pg_db'] +pg_host = os.environ['el_pg_host'] pg_table = "elvia_gridtariff" -- cgit v1.2.3