Github Mirror / telegraf-plugins: 36b4abd2




Grab two days of consumption

Grab two days of consumption

Given that consumption info is collected once daily, worth grabbing a couple of days so that we don't get gaps if data becomes available late

Commit 36b4abd2.

Authored 2023-07-06T13:10:59.000+01:00 by B Tasker in project Github Mirror / telegraf-plugins

+1 lines -1 lines

Commit Signature

Changes

diff --git a/octopus-energy/octopus-energy.py b/octopus-energy/octopus-energy.py
--- a/octopus-energy/octopus-energy.py
+++ b/octopus-energy/octopus-energy.py
# @@ -12,7 +12,7 @@ def getConsumption(meter, session):
# '''
# # Calculate the `from` date to apply (1 day ago)
# tday = dt.now()
# - yday = tday - tdel(days=1)
# + yday = tday - tdel(days=2)
#
# from_str = yday.strftime("%Y-%m-%d %H:%M:%SZ")
#
#