Documentation ¶
Index ¶
Constants ¶
View Source
const ( ReadThermostat = "read_thermostat" ReadStation = "read_station" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client working with netatmo API
func (*Client) GetHomeStatus ¶
func (c *Client) GetHomeStatus(home string) (*HomeStatus, error)
func (*Client) GetHomesData ¶
func (*Client) GetMeasure ¶
type Config ¶
type Config struct { Username string Password string RefreshToken string ClientID string ClientSecret string Scopes []string }
Config contains configuration for OAuth2
type Home ¶
type HomeStatus ¶
type HomeStatus struct {
Home *Home `json:"home"`
}
type Module ¶
type Module struct { Id string `json:"id"` Reachable bool `json:"reachable"` Type string `json:"type"` Bridge string `json:"bridge"` Anticipating bool `json:"anticipating"` FirmwareRevision float64 `json:"firmware_revision"` RfStrength float64 `json:"rf_strength"` WifiStrength float64 `json:"wifi_strength"` BatteryLevel float64 `json:"battery_level"` BatteryState string `json:"battery_state"` BoilerStatus bool `json:"boiler_status"` RoomId string `json:"room_id"` }
type ModuleMeasurePoint ¶
type ModuleMeasures ¶
type ModuleMeasures struct {
Measures []*ModuleMeasurePoint `json:"measures"`
}
type Room ¶
type Room struct { Reachable bool `json:"reachable"` Id string `json:"id"` Name string `json:"name"` Anticipating bool `json:"anticipating"` OpenWindow bool `json:"open_window"` MeasuredTemperature float64 `json:"therm_measured_temperature"` SetPointTemperature float64 `json:"therm_setpoint_temperature"` SetPointStartTime uint64 `json:"therm_setpoint_start_time"` SetPointEndTime uint64 `json:"therm_setpoint_end_time"` SetPointMode string `json:"therm_setpoint_mode"` }
Click to show internal directories.
Click to hide internal directories.