aboutsummaryrefslogtreecommitdiffstats
path: root/elvia2pgsql.py
diff options
context:
space:
mode:
Diffstat (limited to 'elvia2pgsql.py')
-rwxr-xr-xelvia2pgsql.py6
1 files changed, 3 insertions, 3 deletions
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)