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 /entsoe2pgsql.py | |
parent | adding grid tariff from elvia (diff) | |
download | energyscripts-3575d93dd0349b1b5d5025cd2531ae9e811f5b69.tar.gz |
adding prefix to environmental variables
Diffstat (limited to 'entsoe2pgsql.py')
-rwxr-xr-x | entsoe2pgsql.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/entsoe2pgsql.py b/entsoe2pgsql.py index 8474184..12befd9 100755 --- a/entsoe2pgsql.py +++ b/entsoe2pgsql.py @@ -24,13 +24,13 @@ from dateutil import tz # > respond to your request. # 1: https://transparency.entsoe.eu/content/static_content/Static%20content/web%20api/Guide.html#_authentication_and_authorisation # 2: https://transparency.entsoe.eu/content/static_content/download?path=/Static%20content/API-Token-Management.pdf -apiKey = os.environ['entsoe_token'] +apiKey = os.environ['el_entsoe_token'] # https://transparency.entsoe.eu/content/static_content/Static%20content/web%20api/Guide.html apiUrl = "https://transparency.entsoe.eu/api?securityToken=" + apiKey -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 = "entsoe" startTime = datetime.now(get_localzone()) - timedelta(days = 7) |