Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Inverter ¶
type Inverter struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"` Serial string `bson:"serial" json:"serial"` Power float64 `bson:"power" json:"power"` Voltage float64 `bson:"voltage" json:"voltage"` Frequency float64 `bson:"frequency" json:"frequncy"` Communication bool `bson:"communication" json:"communication"` Status bool `bson:"status" json:"status"` Switch bool `bson:"switch" json:"switch"` EnergyToday float64 `bson:"energyToday" json:"energyToday"` EnergyThisMonth float64 `bson:"energyThisMonth" json:"energyThisMonth"` EnergyThisYear float64 `bson:"energyThisYear" json:"energyThisYear"` TotalEnergy float64 `bson:"totalEnergy" json:"totalEnergy"` }
Inverter : model of an inverter installed in the PV system
func ListInverters ¶
ListInverters : reads all the current inverters in the DB
func (*Inverter) AddInverterToDB ¶
AddInverterToDB : adds info about a inverter to the DB
type TelemetryData ¶
type TelemetryData struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"` Serial string `bson:"serial" json:"serial"` Module string `bson:"module" json:"module"` LastTelemetryTime int64 `bson:"lastTelemetryTime" json:"lastTelemetryTime"` OutputVoltage float64 `bson:"outputVoltage" json:"outputVoltage"` InputVoltage float64 `bson:"inputVoltage" json:"inputVoltage"` InputCurrent float64 `bson:"inputCurrent" json:"inputCurrent"` }
TelemetryData : PV system state captured by the data acquisition service
func ListTelemetryData ¶
ListTelemetryData : reads telemetry data from DB using an filter
func (*TelemetryData) AddDataToDB ¶
AddDataToDB : adds a telemetry read to the DB
Click to show internal directories.
Click to hide internal directories.