diff options
Diffstat (limited to 'elvia_gridtariff2pgsql.py')
-rwxr-xr-x | elvia_gridtariff2pgsql.py | 9 |
1 files changed, 5 insertions, 4 deletions
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" |