brew

package module
v0.0.0-...-043a1a8 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

README

Go package to facilitate tracking of coffee brew processes via remote (e.g. Bluetooth) scales

Github Release GoDoc Go Report Card Build/Test Status

This package allows to extract weight and timing data from Bluetooth-based remote scales, providing automatic detection, tracking and analysis of coffee / espresso brew processes. Data tracking can be configured to the setup at hand and results can be emitted to e.g. an InfluxDB for long-term tracking.

NOTE: This package is currently work in progress. Interfaces and implementation are subject to change.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Brew

type Brew struct {
	ID         string           // ID of brew
	Start      time.Time        // Start of the brewing process
	End        time.Time        // End of the brewing process
	DataPoints scale.DataPoints // Data points collected as part of the brewing process
	ShotType   ShotType         // Type of brew (single / double / unknown)
}

Brew denotes a brew process

type ShotType

type ShotType int

ShotType denotes the type of brew (single or double)

const (

	// UnknownShot denotes an invalid / unknown shot type
	UnknownShot ShotType = iota

	// SingleShot denotes a single shot brew
	SingleShot

	// DoubleShot denotes double shot brew
	DoubleShot
)

func ShotTypeFromString

func ShotTypeFromString(t string) ShotType

ShotTypeFromString allows to generate a ShotType from a string

func (ShotType) String

func (t ShotType) String() string

String returns a string representation of the shot type

Directories

Path Synopsis
cmd
brew command
export command
fixer command
import command
db

Jump to

Keyboard shortcuts

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