auto

package
v0.2024.4 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name     string `json:"name"`
	Type     string `json:"type"`
	Disabled bool   `json:"disabled,omitempty"`
}

type Factory

type Factory interface {
	New(services Services) service.Lifecycle
}

Factory constructs new automation instances.

type FactoryFunc

type FactoryFunc func(services Services) service.Lifecycle

func (FactoryFunc) New

func (f FactoryFunc) New(services Services) service.Lifecycle

type RawConfig

type RawConfig struct {
	Config
	Raw json.RawMessage `json:"-"`
}

func (*RawConfig) MarshalJSON

func (c *RawConfig) MarshalJSON() ([]byte, error)

func (*RawConfig) UnmarshalJSON

func (c *RawConfig) UnmarshalJSON(buf []byte) error

type Services

type Services struct {
	Logger          *zap.Logger
	Node            *node.Node // for advertising devices
	Database        *bolthold.Store
	GRPCServices    grpc.ServiceRegistrar // for registering non-routed services
	CohortManager   node.Remote
	ClientTLSConfig *tls.Config
	Now             func() time.Time
}

Directories

Path Synopsis
Package azureiot implements data upload to Azure IoT Hub.
Package azureiot implements data upload to Azure IoT Hub.
bms
Package history provides an automation that pulls data from a trait and inserts them into store.
Package history provides an automation that pulls data from a trait and inserts them into store.
Package lights provides automated control of lighting.
Package lights provides automated control of lighting.
Package meteremail provides an automation that collects the instantaneous meter readings for a set of given devices.
Package meteremail provides an automation that collects the instantaneous meter readings for a set of given devices.
Package occupancyemail provides an automation that creates a digest email of occupancy statistics.
Package occupancyemail provides an automation that creates a digest email of occupancy statistics.
Package resetenterleave provides an auto that resets enter/leave totals based on a cron-like schedule.
Package resetenterleave provides an auto that resets enter/leave totals based on a cron-like schedule.

Jump to

Keyboard shortcuts

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