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 --- elvia2pgsql.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'elvia2pgsql.py') diff --git a/elvia2pgsql.py b/elvia2pgsql.py index 665826d..4ed2430 100755 --- a/elvia2pgsql.py +++ b/elvia2pgsql.py @@ -11,11 +11,11 @@ from datetime import timedelta from tzlocal import get_localzone -apiKey = os.environ['elvia_token'] +apiKey = os.environ['el_elvia_token'] apiUrl = "https://elvia.azure-api.net/customer/metervalues/api/v1/metervalues" -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" startTime = datetime.now(get_localzone()) - timedelta(days = 2) -- cgit v1.2.3