Documentation ¶
Index ¶
- func AddScheduleCommand(scheduleCommand ScheduleCommand)
- func CreateTables(db *sql.DB)
- func CreateTablesV2(db *sql.DB)
- func DeleteScheduleCommand(id int)
- func LogBatteryCommand(scheduleCommand ScheduleCommand)
- func ParseTime(timeStr string) time.Time
- func Setup()
- func UpdateHomeChargeStatus(homeChargeStatus HomeChargeStatus)
- func UpdateScheduleCommand(scheduleCommand ScheduleCommand)
- type BatteryCommand
- type HomeChargeStatus
- type InfluxClient
- type Query
- type ScheduleCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddScheduleCommand ¶
func AddScheduleCommand(scheduleCommand ScheduleCommand)
func CreateTables ¶
func CreateTablesV2 ¶
func DeleteScheduleCommand ¶
func DeleteScheduleCommand(id int)
func LogBatteryCommand ¶
func LogBatteryCommand(scheduleCommand ScheduleCommand)
func UpdateHomeChargeStatus ¶
func UpdateHomeChargeStatus(homeChargeStatus HomeChargeStatus)
func UpdateScheduleCommand ¶
func UpdateScheduleCommand(scheduleCommand ScheduleCommand)
Types ¶
type BatteryCommand ¶
func GetBatteryCommands ¶
func GetBatteryCommands() []BatteryCommand
type HomeChargeStatus ¶
func GetHomeChargeStatus ¶
func GetHomeChargeStatus() (HomeChargeStatus, bool)
type InfluxClient ¶
type InfluxClient struct {
// contains filtered or unexported fields
}
func NewInfluxClient ¶
func (*InfluxClient) InfluxProductionTotal ¶
func (i *InfluxClient) InfluxProductionTotal() (float64, error)
type ScheduleCommand ¶
type ScheduleCommand struct { Id int BatteryCommandId int BatteryCommandName string TriggerType string TriggerTime time.Time TriggerSOC int Triggered bool }
func GetScheduleCommands ¶
func GetScheduleCommands(triggered_optional ...bool) []ScheduleCommand
Click to show internal directories.
Click to hide internal directories.