diff options
author | Dennis Eriksen <d@ennis.no> | 2022-10-04 08:24:52 +0200 |
---|---|---|
committer | Dennis Eriksen <d@ennis.no> | 2022-10-04 08:24:52 +0200 |
commit | 3575d93dd0349b1b5d5025cd2531ae9e811f5b69 (patch) | |
tree | 77f51d30d54edfd1e7dba5dbdd376696fa882b90 /nb2pgsql.py | |
parent | adding grid tariff from elvia (diff) | |
download | energyscripts-3575d93dd0349b1b5d5025cd2531ae9e811f5b69.tar.gz |
adding prefix to environmental variables
Diffstat (limited to 'nb2pgsql.py')
-rwxr-xr-x | nb2pgsql.py | 4 |
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) |