Documentation ¶
Index ¶
- Constants
- type CalibrationPoint
- type ChartConfig
- type Controller
- func (c *Controller) Calibrate(id string, ms []hal.Measurement) error
- func (c *Controller) CalibratePoint(id string, point CalibrationPoint) error
- func (c *Controller) Create(p Probe) error
- func (c *Controller) Delete(id string) error
- func (c *Controller) Get(id string) (Probe, error)
- func (c *Controller) GetEntity(id string) (controller.Entity, error)
- func (c *Controller) InUse(depType, id string) ([]string, error)
- func (c *Controller) List() ([]Probe, error)
- func (e *Controller) LoadAPI(r *mux.Router)
- func (c *Controller) On(id string, b bool) error
- func (c *Controller) Read(p Probe) (float64, error)
- func (c *Controller) Run(p Probe, quit chan struct{}) error
- func (c *Controller) Setup() error
- func (c *Controller) Start()
- func (c *Controller) Stop()
- func (c *Controller) Update(id string, p Probe) error
- type Notify
- type Probe
Constants ¶
View Source
const Bucket = storage.PhBucket
View Source
const CalibrationBucket = storage.PhCalibrationBucket
View Source
const ReadingsBucket = storage.PhReadingsBucket
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CalibrationPoint ¶
type ChartConfig ¶
type Controller ¶
func New ¶
func New(devMode bool, c controller.Controller) *Controller
func (*Controller) Calibrate ¶
func (c *Controller) Calibrate(id string, ms []hal.Measurement) error
func (*Controller) CalibratePoint ¶
func (c *Controller) CalibratePoint(id string, point CalibrationPoint) error
func (*Controller) Create ¶
func (c *Controller) Create(p Probe) error
func (*Controller) Delete ¶
func (c *Controller) Delete(id string) error
func (*Controller) GetEntity ¶
func (c *Controller) GetEntity(id string) (controller.Entity, error)
func (*Controller) List ¶
func (c *Controller) List() ([]Probe, error)
func (*Controller) LoadAPI ¶
func (e *Controller) LoadAPI(r *mux.Router)
func (*Controller) Run ¶
func (c *Controller) Run(p Probe, quit chan struct{}) error
func (*Controller) Setup ¶
func (c *Controller) Setup() error
func (*Controller) Start ¶
func (c *Controller) Start()
func (*Controller) Stop ¶
func (c *Controller) Stop()
type Probe ¶
type Probe struct { ID string `json:"id"` Name string `json:"name"` Enable bool `json:"enable"` Period time.Duration `json:"period"` AnalogInput string `json:"analog_input"` Control bool `json:"control"` Notify Notify `json:"notify"` UpperEq string `json:"upper_eq"` DownerEq string `json:"downer_eq"` Min float64 `json:"min"` Max float64 `json:"max"` Hysteresis float64 `json:"hysteresis"` IsMacro bool `json:"is_macro"` OneShot bool `json:"one_shot"` Chart ChartConfig `json:"chart"` Transformer string `json:"transformer"` // contains filtered or unexported fields }
func (Probe) CreateFeed ¶
func (Probe) WithinRange ¶
Click to show internal directories.
Click to hide internal directories.