occupancyemail

package
v0.2024.4 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Overview

Package occupancyemail provides an automation that creates a digest email of occupancy statistics. The automation periodically uses the OccupancySensorHistoryApi to fetch occupancy records, analyses them, formats an email using html/template, and sends it to some recipients using smtp.

Index

Constants

View Source
const AutoName = "occupancyemail"

Variables

View Source
var Factory auto.Factory = factory{}

Functions

This section is empty.

Types

type Attrs

type Attrs struct {
	Now   time.Time
	Stats []Stats
}

type DayStats

type DayStats struct {
	Date time.Time
	OccupancyStats
}

type OccupancyStats

type OccupancyStats struct {
	MaxPeopleCount int32
}

type Stats

type Stats struct {
	Source    config.Source
	Last7Days OccupancyStats
	Days      []DayStats
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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