Improve documentation.
All checks were successful
Build Docker image / build (push) Successful in 1m7s
All checks were successful
Build Docker image / build (push) Successful in 1m7s
This commit is contained in:
parent
ddfc896960
commit
82954046c2
1 changed files with 4 additions and 4 deletions
8
main.go
8
main.go
|
@ -35,13 +35,13 @@ import (
|
||||||
// In practice, savings will be even higher when gas is not being consumed continuously.
|
// In practice, savings will be even higher when gas is not being consumed continuously.
|
||||||
//
|
//
|
||||||
// When Tariff 1 is active, Tariff 2 isn't.
|
// 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.
|
// An average month has 2 629 743.83 seconds.
|
||||||
// This saves at least:
|
// This saves at least:
|
||||||
// 2,629,743.83 seconds * 4 bytes = 10,518,975.32 bytes = 10,518.98 kB = 10.52 MB
|
// 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.
|
// This applies both to Dt1 and Dt2 as well as Rt1 and Rt2, so should be quadrupled.
|
||||||
// 10.52 * 2 = 21.04 MB.
|
// 10.52 * 4 = 42.08 MB.
|
||||||
// In practice, savings will be even higher when electricity is not being consumed continuously.
|
|
||||||
|
|
||||||
type Payload struct {
|
type Payload struct {
|
||||||
T string `json:"t"` // Timestamp
|
T string `json:"t"` // Timestamp
|
||||||
|
|
Loading…
Reference in a new issue