diff options
Diffstat (limited to 'scripts/elvia.py')
-rw-r--r-- | scripts/elvia.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/elvia.py b/scripts/elvia.py index fea0f61..fffb6bf 100644 --- a/scripts/elvia.py +++ b/scripts/elvia.py @@ -1,7 +1,6 @@ #!/usr/bin/env python3 """ Get energy consumption from Elvia """ -import os import sys from datetime import datetime, timedelta @@ -9,7 +8,7 @@ import common import requests from tzlocal import get_localzone -apiKey = os.environ["el_elvia_token"] +apiKey = common.env("el_elvia_token") apiUrl = "https://elvia.azure-api.net/customer/metervalues/api/v1/metervalues" startTime = datetime.now(get_localzone()) - timedelta(days=2) |