framework

package
v0.0.0-...-13dad8c Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const AWS_DEFAULT_REGION = "us-east-1"
View Source
const DefaultDB = "bbqberry"

DefaultDB is the default database name that should be used if an override is not provided

View Source
const HUE_ALERT_GROUP = "Patio"
View Source
const HUE_KEY = "5EPXHOGHzm7TGha3IFumdF2bTLdcwuae-21iQguC"

Variables

View Source
var Config config

Config contains information about the running service

View Source
var Disabled = false
View Source
var Enabled = true

Functions

func AdafruitAD8495ThermocoupleVtoKCF

func AdafruitAD8495ThermocoupleVtoKCF(v float32) (tempK int32, tempC int32, tempF int32)

AdafruitAD8495ThermocoupleVtoKCF converts the voltage read from the Adafruit Thermocouple breakout board to temperatures in Kelvin, Celsius and Fahrenheit

func ConvertAnalogToCF

func ConvertAnalogToCF(a int32) (int32, int32)

ConvertAnalogToCF converts the given analog value to its corresponding celsius & fahrenheit value

func ConvertAnalogToVoltage

func ConvertAnalogToVoltage(analog int32) float32

ConvertAnalogToVoltage converts an analog reading to its corresponding voltage value

func ConvertCToKF

func ConvertCToKF(tempC float32) (tempK, tempF float32)

ConvertCToKF converts a celsius temperature to kelvin and fahrenheit

func ConvertCToKFInt32

func ConvertCToKFInt32(tempC float32) (tempK, tempF int32)

ConvertCToKFInt32 converts a celsius temperature to kelvin and fahrenheit

func ConvertCelsiusToAnalog

func ConvertCelsiusToAnalog(c int32) (a int32)

ConvertCelsiusToAnalog converts the given celsius to its corresponding analog value

func ConvertCelsiusToVoltage

func ConvertCelsiusToVoltage(c int32) (v float32)

ConvertCelsiusToVoltage converts a celsius temperature to its corresponding voltage

func ConvertVoltageToAnalog

func ConvertVoltageToAnalog(v float32) (a int32)

ConvertVoltageToAnalog converts the given voltage to its corresponding analog value

Types

type CmdOptions

type CmdOptions struct {
	LogFile                  string `short:"f" long:"logfile" description:"Specify the log file" default:""`
	Verbose                  bool   `short:"v" long:"verbose" description:"Show verbose debug information"`
	ConfDir                  string `short:"c" long:"conf" description:"The path to the directory containing config resources" default:"./etc"`
	StaticDir                string `short:"s" long:"static" description:"The path to the directory containing static resources" default:"./static"`
	TemperatureLoggerEnabled bool   `short:"L" long:"logger" description:"Run the temperature logger"`
	LightShow                string `` /* 143-byte string literal not displayed */
}

func NewCmdOptions

func NewCmdOptions() *CmdOptions

func (*CmdOptions) GetProbesConf

func (o *CmdOptions) GetProbesConf() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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