garage

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: BSD-3-Clause Imports: 8 Imported by: 1

README

garage

Garage Door Opener

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(id, model, name string) dean.Thinger

Types

type Door

type Door struct {
	Name   string
	Relay  relay.Relay
	Sensor Sensor
	// contains filtered or unexported fields
}

type Garage

type Garage struct {
	*device.Device
	Door Door
}

func (*Garage) Run

func (g *Garage) Run(inj *dean.Injector)

func (*Garage) ServeHTTP

func (g *Garage) ServeHTTP(w http.ResponseWriter, req *http.Request)

func (*Garage) Setup

func (g *Garage) Setup()

func (*Garage) Subscribers

func (g *Garage) Subscribers() dean.Subscribers

type MsgClick

type MsgClick struct {
	Path    string
	Clicked bool
}

type MsgPosition

type MsgPosition struct {
	Path string
	Dist int32
	Min  int32
	Max  int32
}

type Sensor

type Sensor struct {
	vl53l1x.Vl53l1x `json:"-"`
	Dist            int32
	Min             int32
	Max             int32
	// contains filtered or unexported fields
}

Directories

Path Synopsis
cmd
gen-uf2 command

Jump to

Keyboard shortcuts

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