Documentation
¶
Index ¶
- type Client
- func (c *Client) Cycle(identifier string)
- func (c *Client) NightLightOff(identifier string)
- func (c *Client) NightLightOn(identifier string)
- func (c *Client) PanelLockOff(identifier string)
- func (c *Client) PanelLockOn(identifier string)
- func (c *Client) PowerOff(identifier string)
- func (c *Client) PowerOn(identifier string)
- func (c *Client) PublishStates()
- func (c *Client) Register(l Observer)
- func (c *Client) Run()
- func (c *Client) States() ([]State, error)
- func (c *Client) Wait(identifier string, val string)
- type Event
- type Observer
- type Publisher
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// 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 - Run a UDP server to listen for packets from the LR
type Observer ¶
type Observer interface {
ReceiveState(Event)
}
Observer - Receieve observations from a publisher
type State ¶
type State struct {
LitterRobotID string
LitterRobotSerial string
PowerStatus string
UnitStatus string
CycleCount string
CycleCapacity string
CyclesAfterDrawerFull string
DFICycleCount string
CleanCycleWaitTimeMinutes 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.