handlers

package
v0.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Apron

type Apron struct {
	LastRun     string
	LastRunTime map[string]time.Time
}

Apron - Apron all the things!

func (*Apron) AddDevice

func (t *Apron) AddDevice(radio string)

AddDevice - Add a device to the hub

func (*Apron) AddDeviceToGroup

func (t *Apron) AddDeviceToGroup(id string, groudID string)

AddDeviceToGroup - Add a device to a group

func (*Apron) AddGroup

func (t *Apron) AddGroup(name string)

AddGroup - Add a group to the hub

func (*Apron) DeleteDevice

func (t *Apron) DeleteDevice(id string)

DeleteDevice - Delete a device from the hub

func (*Apron) DeleteDeviceFromGroup

func (t *Apron) DeleteDeviceFromGroup(id string, groudID string)

DeleteDeviceFromGroup - Delete a device from a group

func (*Apron) DeleteGroup

func (t *Apron) DeleteGroup(id string)

DeleteGroup - Delete a group from the hub

func (*Apron) ListDevices

func (t *Apron) ListDevices() []ApronDeviceGroup

ListDevices - Gets a list of devices

func (*Apron) ListGroupNodes

func (t *Apron) ListGroupNodes(id string) []ApronDeviceGroup

ListGroupNodes - Gets a list of nodes in a group

func (*Apron) ListGroups

func (t *Apron) ListGroups() []ApronDeviceGroup

ListGroups - Gets a list of groups

func (*Apron) UpdateDevice

func (t *Apron) UpdateDevice(id string, attr string, value string) bool

UpdateDevice - Update a device on the hub

func (*Apron) UpdateDeviceName

func (t *Apron) UpdateDeviceName(id string, name string)

UpdateDeviceName - Update the name of a device

func (*Apron) UpdateGroup

func (t *Apron) UpdateGroup(id string, attr string, value string) bool

UpdateGroup - Update a group on the hub

type ApronDeviceGroup

type ApronDeviceGroup struct {
	ID    int64
	Name  string
	Nodes []ApronDeviceGroup
}

ApronDeviceGroup - A device/group listed in the Apron database

type BT added in v0.2.5

type BT struct {
}

BT - BT all the things!

func (*BT) FindPerson added in v0.2.5

func (t *BT) FindPerson(mac string) string

FindPerson - Find a device w/l2ping

func (*BT) Up added in v0.2.5

func (t *BT) Up()

Up - Bring hci0 up (the wink hub seems to turn it off sometimes)

type RGB

type RGB struct {
	LastRun     string
	LastRunTime time.Time
}

RGB - RGB all the things!

func (*RGB) Flash

func (t *RGB) Flash(color string, alternative string, microseconds string)

Flash - Add a device to the hub

func (*RGB) Update

func (t *RGB) Update(color string) bool

Update - Add a device to the hub

type Sqlite3

type Sqlite3 struct {
	Zigbee string
	Zwave  string
	Lutron string
	// contains filtered or unexported fields
}

Sqlite3 - Query the aprondb

func (*Sqlite3) States

func (t *Sqlite3) States() ([]string, error)

States - Return the current state of the aprondb

type Tail

type Tail struct {
	// contains filtered or unexported fields
}

Tail - Tail the wink hub log file

func (*Tail) Start

func (t *Tail) Start(deviceUpdated chan bool)

Start - Start the tailing process, send notifications over the channel

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL