315 Commits

Author SHA1 Message Date
Sebastian Goscik
73022fddf1 Simplify exception logging 2023-02-25 20:51:18 +00:00
Sebastian Goscik
900d0d2881 Re-try connecting to unifi protect if initial connection fails 2023-02-25 20:51:18 +00:00
Sebastian Goscik
f7e43b8e95 Add notes about reducing disk wear 2023-02-25 12:26:15 +00:00
Sebastian Goscik
cf7229e05f Restructure readme 2023-02-25 12:18:22 +00:00
Sebastian Goscik
4798b3d269 fix module and package name clash 2023-01-16 13:20:29 +00:00
Sebastian Goscik
5b50b8144b remove stray print 2023-01-16 12:41:57 +00:00
Sebastian Goscik
965dde53f6 Merge pull request #70 from darron/main
Build for arm/v7, add makefile target, adjust Github Action.
2023-01-11 11:53:20 +00:00
Darron Froese
3677e4a86f Build for arm/v7, add makefile target, adjust Github Action. 2023-01-01 14:32:58 -07:00
Sebastian Goscik
3540ec1d04 Bump version: 0.8.7 → 0.8.8 v0.8.8 2022-12-30 13:16:45 +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
ca455ebcd0 Bump version: 0.8.6 → 0.8.7 v0.8.7 2022-12-11 13:46:52 +00:00
Sebastian Goscik
16315ca23c Fix improper unpacking of upload events 2022-12-11 13:36:40 +00:00
Sebastian Goscik
ac0f6f5fcb Bump version: 0.8.5 → 0.8.6 v0.8.6 2022-12-10 06:59:45 +00:00
Sebastian Goscik
0c34294b7e clear current event after upload/download 2022-12-10 06:44:56 +00:00
Sebastian Goscik
f195b8a4a4 Fix ignoring missing event before one has started downloading/uploading 2022-12-10 06:35:38 +00:00
Sebastian Goscik
645e339314 Bump version: 0.8.4 → 0.8.5 2022-12-09 23:20:05 +00:00
Sebastian Goscik
13c5b630d4 fix using event instead of event id in set to exclude missing events 2022-12-09 23:19:38 +00:00
Sebastian Goscik
44867e7427 Bump version: 0.8.3 → 0.8.4 2022-12-09 11:15:07 +00:00
Sebastian Goscik
0978798078 Fix uploading files not being accounted for when checking for missing events 2022-12-09 11:12:08 +00:00
Sebastian Goscik
8e3ea2b13f Log buffer size in human readable format 2022-12-09 11:12:08 +00:00
Sebastian Goscik
8a67311fda show default buffer size in command help 2022-12-08 12:40:32 +00:00
Sebastian Goscik
8aedb35c45 Update readme 2022-12-08 12:40:19 +00:00
Sebastian Goscik
4eed1c01c4 Bump version: 0.8.2 → 0.8.3 2022-12-08 12:22:47 +00:00
Sebastian Goscik
a4091699a1 Fix setting no verbosity for the docker container 2022-12-08 12:12:54 +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
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
1b3d196672 Add timezone info to debug log 2022-12-06 00:57:05 +00:00
Sebastian Goscik
c22819c04d Correct missing event logging for smart detections 2022-12-06 00:57:05 +00:00
Sebastian Goscik
ac66f4eaab Reduce log spam from missing events unless using extra_debug 2022-12-06 00:57:05 +00:00
Sebastian Goscik
34bc37bd0b Bump version: 0.8.1 → 0.8.2 v0.8.2 2022-12-05 14:27:11 +00:00
Sebastian Goscik
f15cdf9a9b updated changelog 2022-12-05 14:27:06 +00:00
Sebastian Goscik
63d368f14c Added note to readme about 0.8 docker changes 2022-12-05 14:24:27 +00:00
Sebastian Goscik
ee01edf55c Make sure config directories exist in the container 2022-12-05 14:04:43 +00:00
Sebastian Goscik
4e10e0f10e Use run_command in downloader and uploader 2022-12-05 14:03:59 +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
7bfcb548e2 Bump version: 0.8.0 → 0.8.1 v0.8.1 2022-12-04 12:04:15 +00:00
Sebastian Goscik
a74e4b042d changelog 2022-12-04 12:03:57 +00:00
Sebastian Goscik
2c5308aa20 updated name in pyproject.toml 2022-12-04 12:03:54 +00:00
Sebastian Goscik
9d375d4e7b update bumpversion cfg to use new tar.gz name 2022-12-04 11:59:36 +00:00
Sebastian Goscik
df4390688b Update docs and dockerfile to save events database v0.8.0 2022-12-03 22:40:40 +00:00
Sebastian Goscik
3acfd1f543 Fix dockerfile - to _
I have no idea how this worked before but not now
2022-12-03 22:04:50 +00:00
Sebastian Goscik
49c11c1872 Make ci show all temp files 2022-12-03 22:00:22 +00:00
Sebastian Goscik
93cf297371 Bump version: 0.7.4 → 0.8.0 2022-12-03 21:54:45 +00:00
Sebastian Goscik
8baa413a23 Merge pull request #57 from ep1cman/restructure
Major Restructure
2022-12-03 21:51:20 +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
031d4e4862 Update dev.yml
Do not trigger dev pipeline on pull requests
2022-08-24 15:28:48 +01:00