Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NotificationTypeAlert = "ALERT" NotificationTypeReminder = "REMINDER" )
Functions ¶
func SetHumidityAlertSettings ¶
func SetHumidityAlertSettings(controllerID string, boxID int, as HumidityAlertSettings) error
func SetTemperatureAlertSettings ¶
func SetTemperatureAlertSettings(controllerID string, boxID int, as TemperatureAlertSettings) error
Types ¶
type HumidityAlertSettings ¶
type HumidityAlertSettings struct { MinNight float64 `json:"minNight"` MinDay float64 `json:"minDay"` MaxNight float64 `json:"maxNight"` MaxDay float64 `json:"maxDay"` }
func GetHumidityAlertSettings ¶
func GetHumidityAlertSettings(controllerID string, boxID int) (*HumidityAlertSettings, error)
type NotificationDataAlert ¶
type NotificationDataAlert struct { notifications.NotificationBaseData PlantID uuid.UUID `json:"plantID"` }
func NewNotificationDataAlert ¶
func NewNotificationDataAlert(title, body, imageUrl string, plantID uuid.UUID) (NotificationDataAlert, messaging.Notification)
func (NotificationDataAlert) ToMap ¶
func (n NotificationDataAlert) ToMap() map[string]string
type TemperatureAlertSettings ¶
type TemperatureAlertSettings struct { MinNight float64 `json:"minNight"` MinDay float64 `json:"minDay"` MaxNight float64 `json:"maxNight"` MaxDay float64 `json:"maxDay"` }
func GetTemperatureAlertSettings ¶
func GetTemperatureAlertSettings(controllerID string, boxID int) (*TemperatureAlertSettings, error)
Click to show internal directories.
Click to hide internal directories.