Sebastian Goscik
cbc497909d
linting
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
Sebastian Goscik
c4e9a42c1a
Block all calls to protect client when the connection is
...
dropped and we are awaiting a reconnect
2023-07-08 16:30:09 +01:00
Sebastian Goscik
6c719c0162
Cache camera names
...
so an active protect connection is not need to perform actions like
uploads which don't rely on protect.
2023-07-08 15:32:47 +01:00
Sebastian Goscik
48f743bc8e
flake8 & mypy fixes
2023-03-08 00:03:26 +00:00
Sebastian Goscik
07c2278428
isort
2023-03-07 00:42:49 +00:00
Sebastian Goscik
08f2674497
Stop apprise errors from preventing regular logging
2023-03-07 00:17:18 +00:00
Sebastian Goscik
818f2eb5b3
Reclassify log messages
2023-03-07 00:16:19 +00:00
Sebastian Goscik
dfdc85001c
color logging no longer uses global variable
2023-03-07 00:16:19 +00:00
Sebastian Goscik
fb1f266eae
Refactor logging customisations into custom handler
2023-02-26 00:00:25 +00:00
Sebastian Goscik
ce34afaf06
Add the ability to send logging output to apprise
2023-02-25 20:51:35 +00:00
Sebastian Goscik
5b50b8144b
remove stray print
2023-01-16 12:41:57 +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
58eb1fd8a7
Added event ID to uploader/downloader logging
...
Also fixed issue where logging outside of unifi_protect_backup was not adding colors
2022-12-08 12:04:36 +00:00
Sebastian Goscik
bba96e9d86
Make video download buffer size configurable
2022-12-08 00:15:11 +00:00
Sebastian Goscik
dd69a18dbf
Raise an error when trying to add a video larger than the buffer
2022-12-08 00:14:08 +00:00
Sebastian Goscik
385f115eab
Add ability for run_command to pass data to stdin
2022-12-05 14:03:23 +00:00
Sebastian Goscik
b4062d3b53
Fix issue where indented stdout/stderr was being returned
...
The indentation was supposed to be only for the logging to make it easier to read but was also being returned, thus breaking parsing of the command output
Fixes #60
2022-12-05 13:40:32 +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