Github Mirror / telegraf-plugins: 7000947f




Add timestamp to meter info LP

Add timestamp to meter info LP

Commit 7000947f.

Authored 2023-07-06T13:10:37.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
# @@ -213,7 +213,7 @@ def main(api_key, octo_account):
# meter_info['consumption'] = getConsumption(meter_info, session)
#
# # Create some LP for the meter itself
# - lp = f'octopus_meter,mpan={meter_info["mpan"]},property={prop_info["id"]},account={prop_info["account_number"]} start_date="{prop_info["start_date"]}"'
# + lp = f'octopus_meter,mpan={meter_info["mpan"]},property={prop_info["id"]},account={prop_info["account_number"]} start_date="{prop_info["start_date"]}" {int(dt.now().strftime("%s")) * 1000000000}'
# lp_buffer.append(lp)
#
# prop_info['meters'].append(meter_info)
#