Documentation ¶
Index ¶
- type Client
- func (c *Client) Cycle(identifier string, nameOrIP string)
- func (c *Client) NightLightOff(identifier string, nameOrIP string)
- func (c *Client) NightLightOn(identifier string, nameOrIP string)
- func (c *Client) PanelLockOff(identifier string, nameOrIP string)
- func (c *Client) PanelLockOn(identifier string, nameOrIP string)
- func (c *Client) PowerOff(identifier string, nameOrIP string)
- func (c *Client) PowerOn(identifier string, nameOrIP string)
- func (c *Client) PublishStates()
- func (c *Client) Run()
- func (c *Client) States() ([]State, error)
- func (c *Client) Wait(identifier string, nameOrIP string, val string)
- type Opts
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Opts // contains filtered or unexported fields }
Client - The Client for accessing data
func (*Client) NightLightOff ¶
NightLightOff - NightLight Command
func (*Client) NightLightOn ¶
NightLightOn - NightLight Command
func (*Client) PanelLockOff ¶
PanelLockOff - PanelLock Command
func (*Client) PanelLockOn ¶
PanelLockOn - PanelLock Command
func (*Client) PublishStates ¶
func (c *Client) PublishStates()
PublishStates - Fetch & sendState states from the Litter Robot API
func (*Client) Run ¶
func (c *Client) Run()
Run - Publish states via the API or incoming UDP (depending on configuration)
type Opts ¶ added in v0.3.0
type Opts struct { Local bool Email string Password string APIKey string APILookupInterval time.Duration // contains filtered or unexported fields }
Opts - Options for the litter robot lib
type State ¶
type State struct { LitterRobotID string LitterRobotSerial string PowerStatus string UnitStatus string CycleCount string CycleCapacity string CyclesAfterDrawerFull string DFICycleCount string CleanCycleWaitTimeMinutes string NameOrIP string PanelLockActive bool NightLightActive bool DidNotifyOffline bool DFITriggered bool SleepModeActive bool }
State - The state of the litter robot
Click to show internal directories.
Click to hide internal directories.