Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DevicesAction action for listing devices DevicesAction = "devices" // Source constant for worker message Source = "netatmo" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type DashboardData ¶
type DashboardData struct {
Temperature float64 `json:"Temperature"`
Humidity float64 `json:"Humidity"`
Noise float64 `json:"Noise"`
CO2 float64 `json:"CO2"`
Pressure float64 `json:"Pressure"`
}
DashboardData contains dashboard data
type Device ¶
type Device struct {
StationName string `json:"station_name"`
ModuleName string `json:"module_name"`
Modules []struct {
ModuleName string `json:"module_name"`
BatterPercent int `json:"battery_percent"`
DashboardData DashboardData `json:"dashboard_data"`
} `json:"modules"`
DashboardData DashboardData `json:"dashboard_data"`
}
Device contains a device data
type StationsData ¶
type StationsData struct {
Body struct {
Devices []Device `json:"devices"`
} `json:"body"`
}
StationsData contains data retrieved when getting stations datas
Click to show internal directories.
Click to hide internal directories.