heatmiser

package module
v0.0.0-...-089123f Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2015 License: MIT Imports: 4 Imported by: 0

README

HeatMiser Build Status GoDoc

Golang library for HeatMiser Wifi Thermostat.

Usage

package main

import "github.com/nigelramsay/heatmiser"
import "fmt"

func main() {
  h := heatmiser.New("http://192.168.1.7")

  fmt.Println("Current temperature: ", h.Current())
  fmt.Println("Target temperature: ", h.Target())
  fmt.Println("Heating enabled: ", h.Enabled())
}

Compatibility

This library is compatible with the following firmware revisions:

  • version 1.3

Authentication

The wifi thermostat uses Javascript to enforce the authentication, which essentially means that there is no authentication.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HeatMiser

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

HeatMiser holds the state of the HeatMiser wifi thermostat

func New

func New(baseURL string) *HeatMiser

New creates a new HeatMiser struct

func (*HeatMiser) Current

func (h *HeatMiser) Current() float64

Current returns the current reported temperature

func (*HeatMiser) Enabled

func (h *HeatMiser) Enabled() bool

Enabled returns true if the HeatMiser has enabled the burner

func (*HeatMiser) Target

func (h *HeatMiser) Target() float64

Target returns the target desired temperature

Jump to

Keyboard shortcuts

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