Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BMP280 ¶
type BMP280 struct {
Enabled bool `yaml:"enabled,omitempty"`
Bmp280Addr uint16 `yaml:"addr,omitempty"`
}
to find out address of the device, use i2cdetect with -y option with the bus number $ i2cdetect -y 4
type Fan ¶
type Fan struct {
// GPIO Fan tachymeter connected to
// Tachymeter usually is a yellow wire in 3-pin fan connector
TachPin string `yaml:"tachPin"`
// GPIO Fan control connected to (base of transistor)
ControlPin string `yaml:"controlPin"`
High int `yaml:"high"` // Fan activation temperature ˚C
Low int `yaml:"low"` // Fan deactivation temperature ˚C
}
type Parameters ¶
type Parameters struct {
Server Server `yaml:"server"`
Fan Fan `yaml:"fan"`
Modules Modules `yaml:"modules"`
Storage Storage `yaml:"storage"`
}
Parameters is the main configuration struct
func NewConfig ¶
func NewConfig(fname string) (*Parameters, error)
New creates a new Parameters from the given file
Click to show internal directories.
Click to hide internal directories.