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 --- tibber_prices2pgsql.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tibber_prices2pgsql.py') diff --git a/tibber_prices2pgsql.py b/tibber_prices2pgsql.py index 5c0af5c..046072f 100755 --- a/tibber_prices2pgsql.py +++ b/tibber_prices2pgsql.py @@ -12,11 +12,11 @@ from tzlocal import get_localzone # variables -apiKey = os.environ['tibber_token'] +apiKey = os.environ['el_tibber_token'] apiUrl = "https://api.tibber.com/v1-beta/gql" -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 = "tibber_prices" startTime = datetime.now(get_localzone()) - timedelta(days = 1) -- cgit v1.2.3