Documentation ¶
Index ¶
- func GetPowerCapacity(app *pocketbase.PocketBase, deviceId string) int
- func GetTotalUsageTime(app *pocketbase.PocketBase, deviceId string, period string) int
- func InsertDeviceHistory(app *pocketbase.PocketBase, deviceType string, deviceValue bool, ...) error
- func InsertInfraredData(app *pocketbase.PocketBase, infraredVal bool, createdAt time.Time) error
- func InsertTemperatureAndHumidityData(app *pocketbase.PocketBase, humidVal int, tempVal int, createdAt time.Time) error
- func UpdateThresholdData(app *pocketbase.PocketBase, deviceType string, val int, createdAt time.Time) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPowerCapacity ¶
func GetPowerCapacity(app *pocketbase.PocketBase, deviceId string) int
func GetTotalUsageTime ¶
func GetTotalUsageTime(app *pocketbase.PocketBase, deviceId string, period string) int
func InsertDeviceHistory ¶
func InsertDeviceHistory(app *pocketbase.PocketBase, deviceType string, deviceValue bool, createdAt time.Time) error
func InsertInfraredData ¶
func InsertInfraredData(app *pocketbase.PocketBase, infraredVal bool, createdAt time.Time) error
func InsertTemperatureAndHumidityData ¶
func InsertTemperatureAndHumidityData(app *pocketbase.PocketBase, humidVal int, tempVal int, createdAt time.Time) error
func UpdateThresholdData ¶
func UpdateThresholdData(app *pocketbase.PocketBase, deviceType string, val int, createdAt time.Time) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.