db

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogData

func LogData(dbPath string, data DeviceData)

Types

type DeviceData

type DeviceData struct {
	DeviceId        string
	TempIndoor      float32
	TempOutdoor     float32
	HumidityIndoor  int
	HumidityOutdoor int
	CoolSetpoint    float32
	HeatSetpoint    float32
	EquipmentStatus int
}

type PeriodData

type PeriodData struct {
	Period          string
	TempIndoor      float32
	TempOutdoor     float32
	HumidityIndoor  float32
	HumidityOutdoor float32
	CoolSetpoint    float32
	HeatSetpoint    float32
	RunTime         int
}

func GetDataForDay

func GetDataForDay(dbPath string, deviceId string, day time.Time) []PeriodData

func GetDataForMonth

func GetDataForMonth(dbPath string, deviceId string, day time.Time) []PeriodData

func GetDataForYear

func GetDataForYear(dbPath string, deviceId string, day time.Time) []PeriodData

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL