Commit Graph

33 Commits

Author SHA1 Message Date
jimmydoh
1bb8496b30 Adding support for SMART_DETECT_LINE events 2024-10-26 22:12:50 +01:00
Sebastian Goscik
bbd70f49bf ruff format 2024-08-09 23:43:03 +01:00
Sebastian Goscik
aa1335e73b Fix typos and add experimental downloader to README 2024-06-08 01:29:06 +01:00
Sebastian Goscik
30ea7de5c2 Add experimental downloader
This uses a new API to download events like the way the web ui does, where it first asks for a video to be prepared (on the unifi protect host) and then downloads it. This might be potentially more stable than the existing downloader.
2024-06-06 00:41:42 +01:00
Sebastian Goscik
70526b2f49 Make default file path format use event start time 2023-11-21 00:08:24 +00:00
Sebastian Goscik
9410051ab9 Add feature to skip events longer than a maximum length 2023-11-01 00:11:49 +00:00
Sebastian Goscik
66b3344e29 Add download rate limiter 2023-07-29 12:07:31 +01:00
Sebastian Goscik
89cab64679 Add validation of retention/purge interval 2023-07-29 12:06:54 +01:00
Sebastian Goscik
8786f2ceb0 Fixed time period parsing
Also updated link to rclone docs to be more direct to the format docs
2023-07-29 11:32:32 +01:00
Igor Wolbers
e5112de35c Add extra param to purge (#86)
* Added optional argument string to pass directly to the `rclone delete` command used to purge video files. This will allow for immediate deletion of files on destinations where the file might otherwise go to a recycle bin by default.

---------

Co-authored-by: Igor Wolbers <igor@sparcobv.onmicrosoft.com>
Co-authored-by: Sebastian Goscik <sebastian.goscik@live.co.uk>
2023-04-29 08:19:41 +00:00
Sebastian Goscik
782d126ae5 Add ability to skip missing events at launch 2023-03-24 01:02:58 +00:00
Sebastian Goscik
48f743bc8e flake8 & mypy fixes 2023-03-08 00:03:26 +00:00
Sebastian Goscik
ce34afaf06 Add the ability to send logging output to apprise 2023-02-25 20:51:35 +00:00
Sebastian Goscik
6b60fac3c1 Log main loop exception
and allow time for other tasks to finish before closing the program
2023-02-25 20:51:18 +00:00
Sebastian Goscik
4798b3d269 fix module and package name clash 2023-01-16 13:20:29 +00:00
Sebastian Goscik
8ed60aa925 Made purge interval configurable and default back to once a day 2022-12-30 13:14:31 +00:00
Sebastian Goscik
8a67311fda show default buffer size in command help 2022-12-08 12:40:32 +00:00
Sebastian Goscik
bba96e9d86 Make video download buffer size configurable 2022-12-08 00:15:11 +00:00
Sebastian Goscik
3510a50d0f remove unused asyncio loop 2022-12-07 23:25:41 +00:00
Sebastian Goscik
3e0044cd80 Make color logging optional
Returns to the previous default mode of plain logging but allows color logging to be enabled
2022-12-06 00:57:05 +00:00
Sebastian Goscik
471ecb0662 Major Restructure
- Each task is now its own class
- Added a database to track backed up events and their destinations
- Added task to check for and backup missed events
2022-12-03 21:48:44 +00:00
Sebastian Goscik
381f90f497 Add the ability to change the way the clip files are structured 2022-03-26 00:05:23 +00:00
Sebastian Goscik
8bebeceaa6 Linter fixes 2022-03-18 21:44:32 +00:00
Sebastian Goscik
e2eb7858da Added support for doorbell ring events 2022-03-18 21:44:32 +00:00
Sebastian Goscik
453fed6c57 Added ability to choose which event types to backup
Co-authored-by: J3n50m4t <j3n50m4t@j3n50m4t.com>
2022-03-18 21:42:32 +00:00
Sebastian Goscik
2b46b5bd4a Added --version
Implements #15
2022-03-05 14:50:54 +00:00
Sascha Bischoff
9f6ec7628c Add option to supply extra arguments to rclone
Add in the capability to pass extra arguments through to rclone. These
are passed verbatim, and are set to '' by default. They can be passed
either with --rclone-args or by setting the environment variable
RCLONE_ARGS.

For example. the expectation is that the end user can use these for
setting a bandwidth limit so that rclone uploading doesn't saturate
their internet bandwidth.
2022-02-22 15:25:27 +00:00
Sebastian Goscik
0dd9e8e91b Add feature to ignore cameras
Implements #1
2022-02-21 11:12:19 +00:00
Sebastian Goscik
358aebf49c typo 2022-02-20 17:52:20 +00:00
Sebastian Goscik
e8c45c20a3 Document verbosity cli option 2022-02-19 22:50:15 +00:00
Sebastian Goscik
4fee4cbf44 Updated CLI description 2022-02-19 22:37:55 +00:00
Sebastian Goscik
cd96b80097 Initial implementation
- CLI + env var settings
- Backup via rclone
- Configurable retention
- Run purge nightly
- 4 levels of logging
2022-02-19 11:53:22 +00:00
Sebastian Goscik
fe57f626c0 Initial commit 2022-02-18 01:24:02 +00:00