Improve documentation.
All checks were successful
Build Docker image / build (push) Successful in 1m7s

This commit is contained in:
Pieter Hollander 2024-02-18 18:04:29 +01:00
parent ddfc896960
commit 82954046c2
Signed by: pieter
SSH key fingerprint: SHA256:HbX+9cBXsop9SuvL+mELd29sK+7DehFfdVweFVDtMSg

View file

@ -35,13 +35,13 @@ import (
// In practice, savings will be even higher when gas is not being consumed continuously.
//
// When Tariff 1 is active, Tariff 2 isn't.
// Therefore, only updating their values on-change should at least half their storage capacity requirements
// When energy is being imported, it is not being returned.
// Therefore, only updating their values on-change should save at least 75% storage capacity requirements
// An average month has 2 629 743.83 seconds.
// This saves at least:
// 2,629,743.83 seconds * 4 bytes = 10,518,975.32 bytes = 10,518.98 kB = 10.52 MB
// This applies both to Dt1 and Dt2 as well as Rt1 and Rt2, so should be doubled.
// 10.52 * 2 = 21.04 MB.
// In practice, savings will be even higher when electricity is not being consumed continuously.
// This applies both to Dt1 and Dt2 as well as Rt1 and Rt2, so should be quadrupled.
// 10.52 * 4 = 42.08 MB.
type Payload struct {
T string `json:"t"` // Timestamp