frigate_email

package
v0.0.0-...-4f057f0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(configPath string)

Types

type Conf

type Conf struct {
	MqttBroker    string `yaml:"mqttBroker"`
	MqttUsername  string `yaml:"mqttUsername"`
	MqttPassword  string `yaml:"mqttPassword"`
	MailgunDomain string `yaml:"mailgunDomain"`
	MailgunAPIKey string `yaml:"mailgunAPIKey"`
	FrigateURL    string `yaml:"frigateURL"`
	EmailFrom     string `yaml:"emailFrom"`
	EmailSubject  string `yaml:"emailSubject"`
	EmailBody     string `yaml:"emailBody"`
	EmailTo       string `yaml:"emailTo"`
}

type CurrentAttributeData

type CurrentAttributeData struct {
	Label string  `json:"label"`
	Box   []int   `json:"box"`
	Score float64 `json:"score"`
}

type Event

type Event struct {
	Type   string `json:"type"`
	Before State  `json:"before"`
	After  State  `json:"after"`
}

type State

type State struct {
	ID                string                 `json:"id"`
	Camera            string                 `json:"camera"`
	FrameTime         float64                `json:"frame_time"`
	SnapshotTime      float64                `json:"snapshot_time"`
	Label             string                 `json:"label"`
	SubLabel          []interface{}          `json:"sub_label"`
	TopScore          float64                `json:"top_score"`
	FalsePositive     bool                   `json:"false_positive"`
	StartTime         float64                `json:"start_time"`
	EndTime           interface{}            `json:"end_time"`
	Score             float64                `json:"score"`
	Box               []int                  `json:"box"`
	Area              int                    `json:"area"`
	Ratio             float64                `json:"ratio"`
	Region            []int                  `json:"region"`
	CurrentZones      []string               `json:"current_zones"`
	EnteredZones      []string               `json:"entered_zones"`
	Thumbnail         interface{}            `json:"thumbnail"`
	HasSnapshot       bool                   `json:"has_snapshot"`
	HasClip           bool                   `json:"has_clip"`
	Stationary        bool                   `json:"stationary"`
	MotionlessCount   int                    `json:"motionless_count"`
	PositionChanges   int                    `json:"position_changes"`
	Attributes        map[string]float64     `json:"attributes"`
	CurrentAttributes []CurrentAttributeData `json:"current_attributes"`
}

Jump to

Keyboard shortcuts

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