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



Description

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.

    Consumption 
  - Grid Buy
  =====================================
     Locally supplied
  =====================================


Toggle State Changes

Activity


assigned to @btasker

verified

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 

Message

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)
verified

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 

Message

Update README for utilities/telegraf-plugins#11

+5 -0 (5 lines changed)
verified

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 

Message

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)