Documentation
¶
Index ¶
Constants ¶
View Source
const FlatCelsius = 22.0
returns 0 -> some number
Variables ¶
View Source
var SprinklerModel = resource.ModelNamespace("erh").WithFamily("sprinkler").WithModel("sprinkler")
Functions ¶
Types ¶
type DataAPI ¶
type DataAPI interface {
AmountWatered(z string, now time.Time) (time.Duration, error)
// returns the total amount watered today
AddWatered(z string, now time.Time, amountToMark time.Duration) (time.Duration, error)
}
func NewLocalJSONStore ¶
type ZoneConfig ¶
Click to show internal directories.
Click to hide internal directories.