diff options
author | Dennis Eriksen <d@ennis.no> | 2022-10-04 08:24:52 +0200 |
---|---|---|
committer | Dennis Eriksen <d@ennis.no> | 2022-10-04 08:24:52 +0200 |
commit | 3575d93dd0349b1b5d5025cd2531ae9e811f5b69 (patch) | |
tree | 77f51d30d54edfd1e7dba5dbdd376696fa882b90 /elvia_gridtariff2pgsql.py | |
parent | adding grid tariff from elvia (diff) | |
download | energyscripts-3575d93dd0349b1b5d5025cd2531ae9e811f5b69.tar.gz |
adding prefix to environmental variables
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" |