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 /tibber_consumption2pgsql.py | |
parent | adding grid tariff from elvia (diff) | |
download | energyscripts-3575d93dd0349b1b5d5025cd2531ae9e811f5b69.tar.gz |
adding prefix to environmental variables
Diffstat (limited to 'tibber_consumption2pgsql.py')
-rwxr-xr-x | tibber_consumption2pgsql.py | 6 |
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) |