Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Frigate Frigate `yaml:"frigate"`
Mqtt Mqtt `yaml:"mqtt"`
Messengers NotificationMessengers `yaml:"messengers"`
}
type Detection ¶
type Detection struct {
BeforeDetection TimedDetection `json:"before"`
AfterDetection TimedDetection `json:"after"`
Type string `json:"type"`
}
type Discord ¶
type Discord struct {
// contains filtered or unexported fields
}
func NewDiscordMessenger ¶
func NewDiscordMessenger(d DiscordConfig) *Discord
type DiscordConfig ¶
type Frigatier ¶
type Frigatier struct {
// contains filtered or unexported fields
}
func NewFrigatier ¶
func NewFrigatier() *Frigatier
func (*Frigatier) EventHandler ¶
type NotificationMessengers ¶
type NotificationMessengers struct {
Slack SlackConfig `yaml:"slack"`
Discord DiscordConfig `yaml:"discord"`
}
type Slack ¶
type Slack struct {
// contains filtered or unexported fields
}
func NewSlackClient ¶
func NewSlackClient(s SlackConfig) *Slack
type SlackConfig ¶
type TimedDetection ¶
type TimedDetection struct {
Id string `json:"id"`
Camera string `json:"camera"`
FrameTime float64 `json:"frame_time"`
SnapshotTime float64 `json:"snapshot_time"`
Label string `json:"label"`
SubLabel *string `json:"sub_label"`
TopScore float64 `json:"top_score"`
FalsePositive bool `json:"false_positive"`
StartTime float64 `json:"start_time"`
EndTime *float64 `json:"end_time"`
Score float64 `json:"score"`
Box []int `json:"box"`
Area int `json:"area"`
Ratio float64 `json:"ratio"`
Region []int `json:"region"`
Stationary bool `json:"stationary"`
MotionlessCount int `json:"motionless_count"`
PositionChanges int `json:"position_changes"`
CurrentZones []*string `json:"current_zones"`
EnteredZones []*string `json:"entered_zones"`
HasClip bool `json:"has_clip"`
HasSnapshot bool `json:"has_snapshot"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.