sds011

package module
v0.0.0-...-e6724fa Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 20 Imported by: 0

README

viam-bonsai-control

Specialized module to control my bonsai tree. Not useful for other people

Config:

type Config struct {
	PumpPin              int    `json:"pump_pin"`
	SensePin             int    `json:"sense_pin"`
	WaterIntervalSeconds int    `json:"water_interval_seconds"`
	WaterDurationSeconds int    `json:"water_duration_seconds"`
	BoardComponent       string `json:"board"`
}

Documentation

Overview

Package sds011 is the package for sds011

Index

Constants

This section is empty.

Variables

View Source
var (
	Model   = resource.NewModel("zaporter", "bonsai", "v1")
	DataDir = os.Getenv("VIAM_MODULE_DATA")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	PumpPin              int    `json:"pump_pin"`
	SensePin             int    `json:"sense_pin"`
	WaterIntervalSeconds int    `json:"water_interval_seconds"`
	WaterDurationSeconds int    `json:"water_duration_seconds"`
	BoardComponent       string `json:"board"`
}

func (*Config) Validate

func (cfg *Config) Validate(path string) ([]string, error)

Validate takes the current location in the config (useful for good error messages). It should return a []string which contains all of the implicit dependencies of a module. (or nil,err if the config does not pass validation).

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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