Documentation ¶
Index ¶
- type Client
- func (c *Client) Cycle(robotId string)
- func (c *Client) Insights(id string, days, timezoneOffset int) ([]Insight, error)
- func (c *Client) NightLightOff(robotId string)
- func (c *Client) NightLightOn(robotId string)
- func (c *Client) PanelLockOff(robotId string)
- func (c *Client) PanelLockOn(robotId string)
- func (c *Client) PowerOff(robotId string)
- func (c *Client) PowerOn(robotId string)
- func (c *Client) RefreshToken()
- func (c *Client) States() ([]State, error)
- func (c *Client) Wait(robotId string, val string)
- type Config
- type Insight
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client - The Client for interacting with the Litter Robot API.
func (*Client) Insights ¶
Insights - return the Litter Robot Insights over the specified number of days.
func (*Client) NightLightOff ¶
NightLightOff - Turn nightlight off.
func (*Client) NightLightOn ¶
NightLightOn - Turn nightlight on.
func (*Client) PanelLockOff ¶
PanelLockOff - Disable the panel lock.
func (*Client) PanelLockOn ¶
PanelLockOn - Enable the panel lock.
func (*Client) RefreshToken ¶
func (c *Client) RefreshToken()
RefreshToken - Refreshes the access_token granted by the initial client creation.
type Config ¶
type Config struct { ApiUrl string AuthUrl string ClientId string ClientSecret string Email string Password string ApiKey string }
Config - Configuration for the Litter Robot client
type Insight ¶
type Insight struct { AverageCycles float64 `json:"averageCycles"` TotalCycles int `json:"totalCycles"` }
Insight - represents a Litter Robot Insights response.
type State ¶
type State struct { CleanCycleWaitTimeMinutes float64 CyclesAfterDrawerFull float64 CycleCapacity float64 CycleCount float64 CyclesUntilFull float64 DidNotifyOffline bool DFICycleCount float64 DFITriggered bool LitterRobotID string LitterRobotSerial string Name string NightLightActive bool PanelLockActive bool PowerStatus string SleepModeActive bool UnitStatus float64 }
State - the exported state of the Litter Robot.
Click to show internal directories.
Click to hide internal directories.