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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址