waterlevel

package
v0.0.0-...-25869ca Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetWaterLevelPhoto

func GetWaterLevelPhoto() ([]byte, error)

func GetWaterLevelPhotoWithClient

func GetWaterLevelPhotoWithClient(client *http.Client) ([]byte, error)

Types

type WaterLevelDataPoint

type WaterLevelDataPoint struct {
	WaterLevelCM int              `json:"water_level_cm"`
	Status       WaterLevelStatus `json:"status"`
	RecordTime   time.Time        `json:"record_time"`
}

func GetWaterLevelData

func GetWaterLevelData() ([]WaterLevelDataPoint, error)

func GetWaterLevelDataWithClient

func GetWaterLevelDataWithClient(client *http.Client) ([]WaterLevelDataPoint, error)

type WaterLevelStatus

type WaterLevelStatus int
const (
	WaterLevelStatusGreen  WaterLevelStatus = 1
	WaterLevelStatusYellow WaterLevelStatus = 2
	WaterLevelStatusOrange WaterLevelStatus = 3
	WaterLevelStatusRed    WaterLevelStatus = 4
)

func (WaterLevelStatus) MarshalText

func (s WaterLevelStatus) MarshalText() ([]byte, error)

func (WaterLevelStatus) String

func (s WaterLevelStatus) String() string

func (*WaterLevelStatus) UnmarshalText

func (s *WaterLevelStatus) UnmarshalText(text []byte) error

Jump to

Keyboard shortcuts

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