Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateChargeProgress ¶
UpdateChargeProgress uploads power and energy data every 30 seconds
func UpdateEnergy ¶
func UpdateEnergy(chargeEnergy, greenEnergy float64)
UpdateEnergy accumulates the energy delta for later upload
Types ¶
type ChargeProgress ¶
type InstanceChargeProgress ¶
type InstanceChargeProgress struct {
InstanceID string `json:"instanceId"`
ChargeProgress
}
Click to show internal directories.
Click to hide internal directories.