10 Commits

Author SHA1 Message Date
Ben Roberts
917d038bf9 Drop time-of-day tag which makes data difficult to use with victoria-metrics/promql 2020-08-31 14:01:47 +01:00
Ben Roberts
ca49193748 Cast config settings to floats 2020-08-31 14:01:38 +01:00
Ben Roberts
c6517663bc Update example config file with SMETS2 settings 2020-08-31 13:52:31 +01:00
Ben Roberts
73cf170e18 Handle unit conversion for SMETS2 gas meters
SMETS2 gas meter consumption is measured in m3 rather than kWh, so conversion
from one unit to the other is required.
Algorithm and description of terms is taken from:
https://www.theenergyshop.com/guides/how-to-convert-gas-units-to-kwh

This commit adds additional config file options to the `gas` section:
- `meter_type` (default `1` for backward compatibility)
  Enables unit conversion from m3 to kWh before reporting metrics to influxdb
- `volume_correction_factor` (default `1.02264`)
- `calorific_value` (default `40`)
2020-08-31 12:06:42 +01:00
Stephen Newey
1f0b88f9e9 Correct timezone handling for BST 2019-06-10 21:42:09 +01:00
Stephen Newey
d91deaa1e0 Fix Agile rates during summer time 2019-06-10 16:08:43 +01:00
Stephen Newey
d5963079cc Add Octopus referral link :) 2018-12-20 21:33:50 +00:00
Stephen Newey
a477721259 Add Agile costs 2018-11-18 13:06:52 +00:00
Stephen Newey
39637c7d39 Effective unit costs 2018-11-11 10:06:59 +00:00
Stephen Newey
c197367916 Inital commit 2018-11-10 15:28:41 +00:00