Documentation ¶
Index ¶
- Variables
- type ATO
- type AdafruitIO
- type AnalogInput
- type AutoConfig
- type CalibrationDetails
- type CameraConfig
- type Capabilities
- type Channel
- type Chart
- type Client
- func (c *Client) ATO(id string) (ATO, error)
- func (c *Client) ATOUsage(id string) (StatsResponse, error)
- func (c *Client) ATOs() ([]ATO, error)
- func (c *Client) AnalogInput(id string) (AnalogInput, error)
- func (c *Client) AnalogInputs() ([]AnalogInput, error)
- func (c *Client) CalibrateDoser(id string, cal CalibrationDetails) error
- func (c *Client) CalibratePhProbe(id string, cal CalibrationDetails) error
- func (c *Client) CameraConfig() (CameraConfig, error)
- func (c *Client) Capabilities() (Capabilities, error)
- func (c *Client) ClearErrors() error
- func (c *Client) ControlEquipment(id string, on bool) error
- func (c *Client) ControlJack(id string, p PinValues) error
- func (c *Client) CreateATO(o ATO) error
- func (c *Client) CreateAnalogInput(o AnalogInput) error
- func (c *Client) CreateDoser(o Pump) error
- func (c *Client) CreateDriver(o Driver) error
- func (c *Client) CreateEquipment(o Equipment) error
- func (c *Client) CreateInlet(o Inlet) error
- func (c *Client) CreateJack(o Jack) error
- func (c *Client) CreateLight(o Light) error
- func (c *Client) CreateMacro(o Macro) error
- func (c *Client) CreateOutlet(o Outlet) error
- func (c *Client) CreatePhProbe(o Probe) error
- func (c *Client) CreateTC(o TC) error
- func (c *Client) CreateTimer(o Job) error
- func (c *Client) Dashboard() (Dashboard, error)
- func (c *Client) DeleteATO(id string) error
- func (c *Client) DeleteAnalogInput(id string) error
- func (c *Client) DeleteDoser(id string) error
- func (c *Client) DeleteDriver(id string) error
- func (c *Client) DeleteEquipment(id string) error
- func (c *Client) DeleteError(id string) error
- func (c *Client) DeleteInlet(id string) error
- func (c *Client) DeleteJack(id string) error
- func (c *Client) DeleteLight(id string) error
- func (c *Client) DeleteMacro(id string) error
- func (c *Client) DeleteOutlet(id string) error
- func (c *Client) DeletePhProbe(id string) error
- func (c *Client) DeleteTC(id string) error
- func (c *Client) DeleteTimer(id string) error
- func (c *Client) Display() (DisplayState, error)
- func (c *Client) DisplayOff() error
- func (c *Client) DisplayOn() error
- func (c *Client) Doser(id string) (Pump, error)
- func (c *Client) DoserUsage(id string) (StatsResponse, error)
- func (c *Client) Dosers() ([]Pump, error)
- func (c *Client) Driver(id string) (Driver, error)
- func (c *Client) Drivers() ([]Driver, error)
- func (c *Client) Equipment(id string) (Equipment, error)
- func (c *Client) Error(id string) (Error, error)
- func (c *Client) Errors() ([]Error, error)
- func (c *Client) HealthStats() (StatsResponse, error)
- func (c *Client) Info() (Info, error)
- func (c *Client) Inlet(id string) (Inlet, error)
- func (c *Client) Inlets() ([]Inlet, error)
- func (c *Client) Jack(id string) (Jack, error)
- func (c *Client) Jacks() ([]Jack, error)
- func (c *Client) LatestPhoto() (map[string]string, error)
- func (c *Client) Light(id string) (Light, error)
- func (c *Client) Lights() ([]Light, error)
- func (c *Client) ListEquipment() ([]Equipment, error)
- func (c *Client) ListPhotos() ([]ImageItem, error)
- func (c *Client) Macro(id string) (Macro, error)
- func (c *Client) Macros() ([]Macro, error)
- func (c *Client) Outlet(id string) (Outlet, error)
- func (c *Client) Outlets() ([]Outlet, error)
- func (c *Client) PhProbe(id string) (Probe, error)
- func (c *Client) PhProbeReadings(id string) (StatsResponse, error)
- func (c *Client) PhProbes() ([]Probe, error)
- func (c *Client) PowerOff() error
- func (c *Client) ReadAnalogInput(id string) (float64, error)
- func (c *Client) ReadInlet(id string) (int, error)
- func (c *Client) Reboot() error
- func (c *Client) Reload() error
- func (c *Client) RunMacro(id string) error
- func (c *Client) ScheduleDoser(id string, s DosingRegiment) error
- func (c *Client) SendTestMessage() error
- func (c *Client) Settings() (Settings, error)
- func (c *Client) SignIn(u, p string) error
- func (c *Client) SignOut() error
- func (c *Client) TC(id string) (TC, error)
- func (c *Client) TCUsage(id string) (StatsResponse, error)
- func (c *Client) TCs() ([]TC, error)
- func (c *Client) TakePhoto() error
- func (c *Client) Telemetry() (TelemetryConfig, error)
- func (c *Client) TempSensors() ([]string, error)
- func (c *Client) Timer(id string) (Job, error)
- func (c *Client) Timers() ([]Job, error)
- func (c *Client) UpdateATO(id string, o ATO) error
- func (c *Client) UpdateAnalogInput(id string, o AnalogInput) error
- func (c *Client) UpdateCameraConfig(conf CameraConfig) error
- func (c *Client) UpdateCredentials(cr Credentials) error
- func (c *Client) UpdateDashboard(ds Dashboard) error
- func (c *Client) UpdateDisplay(ds DisplayConfig) error
- func (c *Client) UpdateDoser(id string, o Pump) error
- func (c *Client) UpdateDriver(id string, o Driver) error
- func (c *Client) UpdateEquipment(id string, o Equipment) error
- func (c *Client) UpdateInlet(id string, o Inlet) error
- func (c *Client) UpdateJack(id string, o Jack) error
- func (c *Client) UpdateLight(id string, o Light) error
- func (c *Client) UpdateMacro(id string, o Macro) error
- func (c *Client) UpdateOutlet(id string, o Outlet) error
- func (c *Client) UpdatePhProbe(id string, o Probe) error
- func (c *Client) UpdateSettings(s Settings) error
- func (c *Client) UpdateTC(id string, o TC) error
- func (c *Client) UpdateTelemetry(t TelemetryConfig) error
- func (c *Client) UpdateTimer(id string, o Job) error
- type Credentials
- type Dashboard
- type DisplayConfig
- type DisplayState
- type DiurnalConfig
- type DosingRegiment
- type Driver
- type Equipment
- type Error
- type FixedConfig
- type GenericStep
- type HealthCheckNotify
- type ImageItem
- type Info
- type Inlet
- type Jack
- type Job
- type Light
- type Macro
- type MailerConfig
- type MotionConfig
- type Notify
- type Outlet
- type PinValues
- type Probe
- type Profile
- type Pump
- type Reminder
- type Schedule
- type Settings
- type StatsResponse
- type Step
- type TC
- type TelemetryConfig
- type UpdateEquipment
- type WaitStep
Constants ¶
This section is empty.
Variables ¶
View Source
var StepTypes = []string{
"wait",
"subsystem",
"macro",
"equipment",
"ato",
"tc",
"lighting",
"ph",
"doser",
"timer",
}
Functions ¶
This section is empty.
Types ¶
type AdafruitIO ¶
type AnalogInput ¶
type AutoConfig ¶
type AutoConfig struct {
Values []int `json:"values"` // 12 ticks after every 2 hours
}
type CalibrationDetails ¶
type CameraConfig ¶
type Capabilities ¶
type Capabilities struct { DevMode bool `json:"dev_mode"` Dashboard bool `json:"dashboard"` HealthCheck bool `json:"health_check"` Equipment bool `json:"equipment"` Timers bool `json:"timers"` Lighting bool `json:"lighting"` Temperature bool `json:"temperature"` ATO bool `json:"ato"` Camera bool `json:"camera"` Doser bool `json:"doser"` Ph bool `json:"ph"` Macro bool `json:"macro"` Configuration bool `json:"configuration"` }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AnalogInput ¶
func (c *Client) AnalogInput(id string) (AnalogInput, error)
func (*Client) AnalogInputs ¶
func (c *Client) AnalogInputs() ([]AnalogInput, error)
func (*Client) CalibrateDoser ¶
func (c *Client) CalibrateDoser(id string, cal CalibrationDetails) error
func (*Client) CalibratePhProbe ¶
func (c *Client) CalibratePhProbe(id string, cal CalibrationDetails) error
func (*Client) CameraConfig ¶
func (c *Client) CameraConfig() (CameraConfig, error)
func (*Client) Capabilities ¶
func (c *Client) Capabilities() (Capabilities, error)
func (*Client) ClearErrors ¶
func (*Client) CreateAnalogInput ¶
func (c *Client) CreateAnalogInput(o AnalogInput) error
func (*Client) CreateDoser ¶
func (*Client) CreateDriver ¶
func (*Client) CreateEquipment ¶
func (*Client) CreateInlet ¶
func (*Client) CreateJack ¶
func (*Client) CreateLight ¶
func (*Client) CreateMacro ¶
func (*Client) CreateOutlet ¶
func (*Client) CreatePhProbe ¶
func (*Client) CreateTimer ¶
func (*Client) DeleteAnalogInput ¶
func (*Client) DeleteDoser ¶
func (*Client) DeleteDriver ¶
func (*Client) DeleteEquipment ¶
func (*Client) DeleteError ¶
func (*Client) DeleteInlet ¶
func (*Client) DeleteJack ¶
func (*Client) DeleteLight ¶
func (*Client) DeleteMacro ¶
func (*Client) DeleteOutlet ¶
func (*Client) DeletePhProbe ¶
func (*Client) DeleteTimer ¶
func (*Client) Display ¶
func (c *Client) Display() (DisplayState, error)
func (*Client) DisplayOff ¶
func (*Client) DoserUsage ¶
func (c *Client) DoserUsage(id string) (StatsResponse, error)
func (*Client) HealthStats ¶
func (c *Client) HealthStats() (StatsResponse, error)
func (*Client) ListEquipment ¶
func (*Client) ListPhotos ¶
func (*Client) PhProbeReadings ¶
func (c *Client) PhProbeReadings(id string) (StatsResponse, error)
func (*Client) ScheduleDoser ¶
func (c *Client) ScheduleDoser(id string, s DosingRegiment) error
func (*Client) SendTestMessage ¶
func (*Client) Telemetry ¶
func (c *Client) Telemetry() (TelemetryConfig, error)
func (*Client) TempSensors ¶
func (*Client) UpdateAnalogInput ¶
func (c *Client) UpdateAnalogInput(id string, o AnalogInput) error
func (*Client) UpdateCameraConfig ¶
func (c *Client) UpdateCameraConfig(conf CameraConfig) error
func (*Client) UpdateCredentials ¶
func (c *Client) UpdateCredentials(cr Credentials) error
func (*Client) UpdateDashboard ¶
func (*Client) UpdateDisplay ¶
func (c *Client) UpdateDisplay(ds DisplayConfig) error
func (*Client) UpdateSettings ¶
func (*Client) UpdateTelemetry ¶
func (c *Client) UpdateTelemetry(t TelemetryConfig) error
type Credentials ¶
type DisplayConfig ¶
type DisplayState ¶
type DiurnalConfig ¶
type DosingRegiment ¶
type Driver ¶
type Driver struct { ID string `json:"id"` Name string `json:"name"` Type string `json:"type"` Config json.RawMessage `json:"config"` }
type FixedConfig ¶
type FixedConfig struct {
Value int `json:"value"`
}
type GenericStep ¶
type HealthCheckNotify ¶
type Job ¶
type Job struct { ID string `json:"id"` Minute string `json:"minute"` Day string `json:"day"` Hour string `json:"hour"` Second string `json:"second"` Name string `json:"name"` Type string `json:"type"` Reminder Reminder `json:"reminder"` Equipment UpdateEquipment `json:"equipment"` Enable bool `json:"enable"` }
type MailerConfig ¶
type MotionConfig ¶
type Profile ¶
type Profile struct { Type string `json:"type"` Config json.RawMessage `json:"config"` }
type Pump ¶
type Pump struct { ID string `json:"id"` Name string `json:"name"` Jack string `json:"jack"` Pin int `json:"pin"` Regiment DosingRegiment `json:"regiment"` }
type Settings ¶
type Settings struct { Name string `json:"name"` Interface string `json:"interface"` Address string `json:"address"` Display bool `json:"display"` Notification bool `json:"notification"` Capabilities Capabilities `json:"capabilities"` HealthCheck HealthCheckNotify `json:"health_check"` HTTPS bool `json:"https"` Pprof bool `json:"pprof"` RPI_PWMFreq int `json:"rpi_pwm_freq"` }
type StatsResponse ¶
type StatsResponse struct { Current []interface{} `json:"current"` Historical []interface{} `json:"historical"` }
type Step ¶
type Step struct { Type string `json:"type"` Config json.RawMessage `json:"config"` }
type TC ¶
type TC struct { ID string `json:"id"` Name string `json:"name"` Max float64 `json:"max"` Min float64 `json:"min"` Heater string `json:"heater"` Cooler string `json:"cooler"` Period time.Duration `json:"period"` Control bool `json:"control"` Enable bool `json:"enable"` Notify Notify `json:"notify"` Sensor string `json:"sensor"` Fahrenheit bool `json:"fahrenheit"` ChartMin float64 `json:"chart_min"` ChartMax float64 `json:"chart_max"` }
type TelemetryConfig ¶
type TelemetryConfig struct { AdafruitIO AdafruitIO `json:"adafruitio"` Mailer MailerConfig `json:"mailer"` Notify bool `json:"notify"` Throttle int `json:"throttle"` HistoricalLimit int `json:"historical_limit"` CurrentLimit int `json:"current_limit"` }
type UpdateEquipment ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.