package
Version:
v0.0.0-...-ecde165
Opens a new window with list of versions in this module.
Published: Mar 13, 2024
License: BSD-3-Clause
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func AnalyzeUsage(ctx context.Context, report *Report, twoDayAvgMax, oneDayMax int, ...) error
-
type Alerter
-
type Record
-
type Report
-
func DownloadDailyUsage(startDay, endDay time.Time, user, pass, acct string) (*Report, error)
-
func DownloadHourlyUsage(start, end time.Time, user, pass, acct string) (*Report, error)
AnalyzeUsage does a simple analysis of maximum and 2 day avg water usage and alert if thresholds are crossed.
Alerter notifies about alerts
type Report struct {
Records []Record
}
DownloadDailyUsage returns a report of daily water usage data
DownloadHourlyUsage returns a report of hourly water usage data
Source Files
¶
Click to show internal directories.
Click to hide internal directories.