diff options
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) |