aboutsummaryrefslogtreecommitdiffstats
path: root/nb2pgsql.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 /nb2pgsql.py
parentadding grid tariff from elvia (diff)
downloadenergyscripts-3575d93dd0349b1b5d5025cd2531ae9e811f5b69.tar.gz
adding prefix to environmental variables
Diffstat (limited to 'nb2pgsql.py')
-rwxr-xr-xnb2pgsql.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nb2pgsql.py b/nb2pgsql.py
index 6a6ffe3..3993c41 100755
--- a/nb2pgsql.py
+++ b/nb2pgsql.py
@@ -15,8 +15,8 @@ from tzlocal import get_localzone
# I'm not sure I understand Norges Banks json-model. It seems a lot easier to just get the CSV, and convert it to JSON.
apiUrl = "https://data.norges-bank.no/api/data/EXR/B.EUR.NOK.SP?format=csv&locale=en"
-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 = "nbex"
startTime = datetime.now(get_localzone()) - timedelta(days = 10)