Documentation ¶
Index ¶
- Constants
- Variables
- func AdafruitAD8495ThermocoupleVtoKCF(v float32) (tempK int32, tempC int32, tempF int32)
- func ConvertAnalogToCF(a int32) (int32, int32)
- func ConvertAnalogToVoltage(analog int32) float32
- func ConvertCToKF(tempC float32) (tempK, tempF float32)
- func ConvertCToKFInt32(tempC float32) (tempK, tempF int32)
- func ConvertCelsiusToAnalog(c int32) (a int32)
- func ConvertCelsiusToVoltage(c int32) (v float32)
- func ConvertVoltageToAnalog(v float32) (a int32)
- type CmdOptions
Constants ¶
const AWS_DEFAULT_REGION = "us-east-1"
const DefaultDB = "bbqberry"
DefaultDB is the default database name that should be used if an override is not provided
const HUE_ALERT_GROUP = "Patio"
const HUE_KEY = "5EPXHOGHzm7TGha3IFumdF2bTLdcwuae-21iQguC"
Variables ¶
var Config config
Config contains information about the running service
var Disabled = false
var Enabled = true
Functions ¶
func AdafruitAD8495ThermocoupleVtoKCF ¶
AdafruitAD8495ThermocoupleVtoKCF converts the voltage read from the Adafruit Thermocouple breakout board to temperatures in Kelvin, Celsius and Fahrenheit
func ConvertAnalogToCF ¶
ConvertAnalogToCF converts the given analog value to its corresponding celsius & fahrenheit value
func ConvertAnalogToVoltage ¶
ConvertAnalogToVoltage converts an analog reading to its corresponding voltage value
func ConvertCToKF ¶
ConvertCToKF converts a celsius temperature to kelvin and fahrenheit
func ConvertCToKFInt32 ¶
ConvertCToKFInt32 converts a celsius temperature to kelvin and fahrenheit
func ConvertCelsiusToAnalog ¶
ConvertCelsiusToAnalog converts the given celsius to its corresponding analog value
func ConvertCelsiusToVoltage ¶
ConvertCelsiusToVoltage converts a celsius temperature to its corresponding voltage
func ConvertVoltageToAnalog ¶
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