opensprinkler2mqtt

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2018 License: MIT Imports: 10 Imported by: 0

README

opensprinkler2mqtt

Control an OpenSprinkler via MQTT

Uses the https://github.com/mqtt-smarthome architecture.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	OpenSprinklerURL string
	MQTTURL          string
	MQTTPrefix       string
	PollInterval     time.Duration
}

func (*Config) ApplyDefaults

func (c *Config) ApplyDefaults()

type Server

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

func New

func New(c Config) *Server

func (*Server) Command

func (s *Server) Command(toplevel string, cmd []byte)

func (*Server) Get

func (s *Server) Get(toplevel string, item string) (smarthome.Value, bool)

func (*Server) Run

func (s *Server) Run() error

func (*Server) Set

func (s *Server) Set(toplevel string, item string, value interface{})

type StationStatus

type StationStatus struct {
	Stations []int `json:"sn"`
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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