owm

package
v0.0.0-...-e2aaeb7 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Platform

type Platform struct {
	Running bool
}

Platform is the handle to the OWM sensors

func (Platform) AddAccessory

func (o Platform) AddAccessory(a *tfaccessory.TFAccessory)

AddAccessory adds an OWM location and registers it with HC

func (Platform) Background

func (o Platform) Background()

Background starts up the go process to periodically update the sensors values

func (Platform) GetAccessory

func (o Platform) GetAccessory(name string) (*tfaccessory.TFAccessory, bool)

GetAccessory looks up an OWM sensor

func (Platform) Shutdown

func (o Platform) Shutdown() platform.Control

Shutdown is called by the platform management to shut things down

func (Platform) Startup

func (o Platform) Startup(c *config.Config) platform.Control

Startup is called by the platform management to get things going

Jump to

Keyboard shortcuts

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