aboutsummaryrefslogtreecommitdiffstats
path: root/tibber_consumption2pgsql.py
diff options
context:
space:
mode:
Diffstat (limited to 'tibber_consumption2pgsql.py')
-rwxr-xr-xtibber_consumption2pgsql.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tibber_consumption2pgsql.py b/tibber_consumption2pgsql.py
index 6b61b9c..e710b8f 100755
--- a/tibber_consumption2pgsql.py
+++ b/tibber_consumption2pgsql.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_consumption"
startTime = datetime.now(get_localzone()) - timedelta(days = 1)