aboutsummaryrefslogtreecommitdiffstats
path: root/elvia2pgsql.py
diff options
context:
space:
mode:
authorDennis Eriksen <d@ennis.no>2022-10-04 08:24:52 +0200
committerDennis Eriksen <d@ennis.no>2022-10-04 08:24:52 +0200
commit3575d93dd0349b1b5d5025cd2531ae9e811f5b69 (patch)
tree77f51d30d54edfd1e7dba5dbdd376696fa882b90 /elvia2pgsql.py
parentadding grid tariff from elvia (diff)
downloadenergyscripts-3575d93dd0349b1b5d5025cd2531ae9e811f5b69.tar.gz
adding prefix to environmental variables
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)