aboutsummaryrefslogtreecommitdiffstats
path: root/ticker_tibber.py
diff options
context:
space:
mode:
Diffstat (limited to 'ticker_tibber.py')
-rw-r--r--ticker_tibber.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/ticker_tibber.py b/ticker_tibber.py
index 166a1e1..e56d83b 100644
--- a/ticker_tibber.py
+++ b/ticker_tibber.py
@@ -30,6 +30,14 @@ async def _callback(pkg):
# collect some data
epoch = int(time.time())
lines = []
+ # accumulated consumption
+ line = "pulse_accumulatedConsumption value=%.2f %i" % \
+ (measurements['accumulatedConsumption'], epoch)
+ lines.append(line)
+ # accumulated cost
+ line = "pulse_accumulatedCost value=%.2f %i" % \
+ (measurements['accumulatedCost'], epoch)
+ lines.append(line)
# power
line = "pulse_power value=%ii %i" % (measurements['power'], epoch)
lines.append(line)