2021-01-09 18:26:46 +01:00
|
|
|
.DS_Store
|
|
|
|
*.pyc
|
Use dataclasses for config handling
Use config data classes to eliminate some of the boilerplate associated
with setting up the configuration. In particular, using dataclasses
removes a lot of the boilerplate around assigning properties to the
object and allows these to be easily immutable by freezing them. In the
case of simple, non-nested dataclasses, this also provides more
convenient `asdict` helpers.
To set this up, where previously the objects would be parsed from the
config via the `__init__` method, create a `build` classmethod that does
this and calls the dataclass initializer.
Some of the objects are mutated at runtime, in particular some of the
zones are mutated to set the color (this might be able to be refactored
out) and some of the camera functionality can be enabled/disabled. Some
of the configs with `enabled` properties don't seem to have mqtt hooks
to be able to toggle this, in particular, the clips, snapshots, and
detect can be toggled but rtmp and record configs do not, but all of
these configs are still not frozen in case there is some other
functionality I am missing.
There are a couple other minor fixes here, one that was introduced
by me recently where `max_seconds` was not defined, the other to
properly `get()` the message payload when handling publishing mqtt
messages sent via websocket.
2021-05-23 00:28:15 +02:00
|
|
|
*.swp
|
2019-02-26 03:27:02 +01:00
|
|
|
debug
|
2022-11-30 23:53:45 +01:00
|
|
|
.vscode/*
|
|
|
|
!.vscode/launch.json
|
2023-04-23 18:35:40 +02:00
|
|
|
config/*
|
|
|
|
!config/*.example
|
2020-12-14 14:15:59 +01:00
|
|
|
models
|
|
|
|
*.mp4
|
2020-12-19 13:51:10 +01:00
|
|
|
*.db
|
2021-11-07 21:55:09 +01:00
|
|
|
*.csv
|
2021-01-09 18:26:46 +01:00
|
|
|
frigate/version.py
|
|
|
|
web/build
|
|
|
|
web/node_modules
|
2021-02-09 20:35:33 +01:00
|
|
|
web/coverage
|
2021-02-17 14:16:39 +01:00
|
|
|
core
|
2022-02-27 15:04:12 +01:00
|
|
|
!/web/**/*.ts
|
2024-05-27 22:49:35 +02:00
|
|
|
.idea/*
|
|
|
|
.ipynb_checkpoints
|