schedule

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DateOnly = "20060102"
View Source
const LastDateFile = "last.date"

Variables

View Source
var DurationMap = map[string]time.Duration{
	"30": time.Minute * 30,
	"15": time.Minute * 15,
}
View Source
var DurationMapDev = map[string]time.Duration{
	"30": time.Second * 3,
	"15": time.Second * 3,
}

Functions

This section is empty.

Types

type LightStateChange

type LightStateChange struct {
	GroupID      string       `json:"groupID"`
	LightID      string       `json:"lightID"`
	StateRequest StateRequest `json:"stateRequest"`
}

type Schedule

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

func New

func New() (*Schedule, error)

func (*Schedule) Running added in v1.0.5

func (s *Schedule) Running() bool

func (*Schedule) SprinklerCheckDate

func (s *Schedule) SprinklerCheckDate()

func (*Schedule) SprinklerRun

func (s *Schedule) SprinklerRun()

func (*Schedule) StartStop added in v1.0.5

func (s *Schedule) StartStop(option *bool) bool

func (*Schedule) Stop

func (s *Schedule) Stop()

type StateRequest

type StateRequest struct {
	On  bool  `json:"on"`
	Bri int32 `json:"bri"`
}

Jump to

Keyboard shortcuts

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