diff options
author | Dennis Eriksen <d@ennis.no> | 2023-11-02 12:39:26 +0100 |
---|---|---|
committer | Dennis Eriksen <d@ennis.no> | 2023-11-02 12:39:26 +0100 |
commit | e4f40c884830d0da73703bc90c7e5011912b3c26 (patch) | |
tree | 2613deeb99f04a369e3c9e9b417ce05c69a212af | |
parent | new systemd-service with some protections (diff) | |
download | energyscripts-e4f40c884830d0da73703bc90c7e5011912b3c26.tar.gz |
add comment about manual starttime
-rw-r--r-- | scripts/elvia.py | 2 | ||||
-rw-r--r-- | scripts/elvia_gridtariff.py | 1 | ||||
-rw-r--r-- | scripts/entsoe.py | 1 | ||||
-rw-r--r-- | scripts/nb.py | 1 |
4 files changed, 5 insertions, 0 deletions
diff --git a/scripts/elvia.py b/scripts/elvia.py index e1ea6de..dab2329 100644 --- a/scripts/elvia.py +++ b/scripts/elvia.py @@ -15,6 +15,8 @@ apiUrl = "https://elvia.azure-api.net/customer/metervalues/api/v1/metervalues" startTime = datetime.now(get_localzone()) - timedelta(days = 2) startTime = startTime.isoformat('T') +#startTime = '2023-05-23T08:16:15.408667+02:00' # <- edit for manual starttime. Like when filling in missing info. + endTime = datetime.now(get_localzone()).isoformat('T') diff --git a/scripts/elvia_gridtariff.py b/scripts/elvia_gridtariff.py index f6b64f9..43f1940 100644 --- a/scripts/elvia_gridtariff.py +++ b/scripts/elvia_gridtariff.py @@ -18,6 +18,7 @@ meteringPointId = os.environ['el_meteringPointId'] startTime = datetime.now(get_localzone()) - timedelta(days = 2) startTime = startTime.strftime('%Y-%m-%d') +#startTime = '2023-05-23' # <- edit for manual starttime. Like when filling in missing info. endTime = datetime.now(get_localzone()) + timedelta(days = 2) endTime = endTime.strftime('%Y-%m-%d') diff --git a/scripts/entsoe.py b/scripts/entsoe.py index 63308c2..b1d9270 100644 --- a/scripts/entsoe.py +++ b/scripts/entsoe.py @@ -31,6 +31,7 @@ apiUrl = "https://web-api.tp.entsoe.eu/api?securityToken=" + apiKey startTime = datetime.now(get_localzone()) - timedelta(days = 7) startTime = startTime.strftime('%Y%m%d') +#startTime = '20230523' # <- edit for manual starttime. Like when filling in missing info. endTime = datetime.now(get_localzone()) + timedelta(days = 1) endTime = endTime.strftime('%Y%m%d') diff --git a/scripts/nb.py b/scripts/nb.py index db65cf7..c3bbe40 100644 --- a/scripts/nb.py +++ b/scripts/nb.py @@ -21,6 +21,7 @@ pg_table = "nbex" startTime = datetime.now(get_localzone()) - timedelta(days = 10) startTime = startTime.strftime('%Y-%m-%d') +#startTime = '2023-05-23' # <- edit for manual starttime. Like when filling in missing info. endTime = datetime.now(get_localzone()).strftime('%Y-%m-%d') |