Add kWH cost to daily email

This commit is contained in:
Aart van Halteren
2022-09-22 22:02:28 +02:00
parent 5d86e65d8d
commit 9587277c65
2 changed files with 13 additions and 3 deletions

View File

@@ -118,8 +118,10 @@ class Cost
title = "Verbruikskosten (incl. belastingen en BTW) - %s" % date.strftime("%A, %e %B %Y")
xlabel = "uur"
ylabel = "EUR"
GR.savefig("easy_cost_%s.png" % date.strftime("%F"), title: title, xlabel: xlabel, ylabel: ylabel)
GR.savefig("plots/easy_cost_%s.png" % date.strftime("%F"), title: title, xlabel: xlabel, ylabel: ylabel)
# return the sum cost
costs.sum
end