utilities/telegraf-plugins#11: Add local supply percentage stats

Issue Information

Issue Type: issue
Status: closed
Reported By: btasker
Assigned To: btasker

Created: 07-Jun-23 07:46


I'd like the plugin to expose the %age of power supplied locally as a field.

The API itself doesn't expose this stat, so I end up having to work it out at query time - it's a fairly simple equation so it makes as much sense for the plugin to calculate and expose it as a field.

  - Grid Buy
     Locally supplied

Toggle State Changes


assigned to @btasker


mentioned in commit github-mirror/telegraf-plugins@85fca95eb409c2fab0d7d69ebeb7fcaece0bf966

Commit: github-mirror/telegraf-plugins@85fca95eb409c2fab0d7d69ebeb7fcaece0bf966 
Author: B Tasker                            
Date: 2023-06-07T08:53:58.000+01:00 


Calculate energy supplied locally today (utilities/telegraf-plugins#11)

This adds two new fields

  • localSupplyToday: value (in kWh) of energy supplied locally today
  • localSupplyPercToday: Percentage of consumed energy supplied locally today

Whilst we're at it, it's probably worth adding equivalent totals too

+6 -0 (6 lines changed)

mentioned in commit github-mirror/telegraf-plugins@08d4e61409f314566be1309cf7afad2a2d98f5b7

Commit: github-mirror/telegraf-plugins@08d4e61409f314566be1309cf7afad2a2d98f5b7 
Author: B Tasker                            
Date: 2023-06-07T09:01:52.000+01:00 


Update README for utilities/telegraf-plugins#11

+5 -0 (5 lines changed)

mentioned in commit github-mirror/telegraf-plugins@f0bc5f6c1111acb2c9af92ae6f76a547416b2f0d

Commit: github-mirror/telegraf-plugins@f0bc5f6c1111acb2c9af92ae6f76a547416b2f0d 
Author: B Tasker                            
Date: 2023-06-07T09:00:05.000+01:00 


Add local supply totals (utilities/telegraf-plugins#11)

This adds two new total fields

  • localSupplyTotal: Total kWh supplied by local sources
  • localSupplyPercTotal: Percentage of total consumed energy supplied by local sources
+5 -0 (5 lines changed)