ohaus

package module
v0.0.0-...-5062a4a Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2017 License: MIT Imports: 10 Imported by: 0

README

Read weights from an Ohous Ranger 3000 scale

save it with a timestamp and make it available as a graph while reading

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datum

type Datum struct {
	Time   time.Time `json:"time"`
	Weight float64   `json:"weight"`
	Unit   string    `json:"unit"`
}

type Scale

type Scale struct {
	PortName string
}

func (Scale) Open

func (scale Scale) Open() (port *serial.Port, err error)

func (Scale) Read

func (scale Scale) Read(port *serial.Port) (value string, err error)

func (Scale) Reader

func (scale Scale) Reader(c chan Datum)

func (Scale) TestReader

func (scale Scale) TestReader(c chan Datum)

Directories

Path Synopsis
cmd
reader command
web command

Jump to

Keyboard shortcuts

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