315 Commits

Author SHA1 Message Date
Jonathan Laliberte
0026eaa2ca #171 - Use exponential backoff when logging into Unifi API (#172) 2024-10-10 20:55:00 +00:00
Sebastian Goscik
c3290a223a Update 30-config
Fixed path in error message
2024-09-10 12:32:50 +01:00
Sebastian Goscik
4265643806 Update contribution guide setup steps 2024-08-10 00:38:42 +01:00
Sebastian Goscik
78be4808d9 mypy fixes 2024-08-10 00:17:55 +01:00
Sebastian Goscik
0a6a259120 remove twine dev dependency 2024-08-09 23:53:18 +01:00
Sebastian Goscik
de4f69dcb5 switch pre-commit to ruff 2024-08-09 23:49:11 +01:00
Sebastian Goscik
a7c4eb8dae remove editor config 2024-08-09 23:46:50 +01:00
Sebastian Goscik
129d89480e update git ignore 2024-08-09 23:46:09 +01:00
Sebastian Goscik
a7ccef7f1d ruff check 2024-08-09 23:45:21 +01:00
Sebastian Goscik
bbd70f49bf ruff format 2024-08-09 23:43:03 +01:00
Sebastian Goscik
f9d74c27f9 change linter to ruff 2024-08-09 23:39:54 +01:00
Sebastian Goscik
9d79890eff Update poetry lock 2024-08-09 23:38:46 +01:00
Lloyd Pickering
ccf2cde272 Switch to using UIProtect library (#160)
* Updated poetry dependencies to remove optional flags on dev/test

* file fixups from running poetry run tox

* Updated to Python 3.10

* Switched to UI Protect library

* Updated changelog

* Fix docker permissions

- Make scripts executable by everyone
- Correct XDG variable name to fix incorrect config path being used

* Revert "Updated poetry dependencies to remove optional flags on dev/test" and regenerated lock file
This reverts commit 432d0d3df7.

---------

Co-authored-by: Sebastian Goscik <sebastian.goscik@live.co.uk>
2024-08-09 22:16:19 +00:00
Sebastian Goscik
a8328fd09e Bump version: 0.10.7 → 0.11.0 v0.11.0 2024-06-08 01:31:58 +01:00
Sebastian Goscik
28d241610b changelog 2024-06-08 01:31:21 +01:00
Sebastian Goscik
aa1335e73b Fix typos and add experimental downloader to README 2024-06-08 01:29:06 +01:00
Sebastian Goscik
9cb2ccf8b2 Update pyunifiprotect to point to my fork
This is done to accept in features that have not been merged into the upstream repo yet. This also allows for stability in the future.
2024-06-08 01:18:14 +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
2dac2cee23 TEMP: Switch to fork of pyunifiprotect
In order to test new functionality of a PR this commit temporarily changes the source of pyunifiprotect
2024-06-06 00:41:42 +01:00
Sebastian Goscik
f4d992838a Fix permissions issue with ufp/sessions.json in docker container
The python library `platformdirs` is detecting the user as root instead of the uid being set to execute UPB. This work around forces the session cache file to be placed in /config
2024-06-06 00:41:20 +01:00
Sebastian Goscik
9fe4394ee4 bump pyunifiprotect to 6.0.1 2024-05-27 23:05:19 +01:00
Sebastian Goscik
e65d8dde6c Bump version: 0.10.6 → 0.10.7 v0.10.7 2024-03-23 00:18:57 +00:00
Sebastian Goscik
90108edeb8 Force using pyunifiprotect >= 5.0.1 2024-03-23 00:18:49 +00:00
Sebastian Goscik
1194e957a5 Bump version: 0.10.5 → 0.10.6 v0.10.6 2024-03-22 22:50:20 +00:00
Sebastian Goscik
65128b35dd changelog 2024-03-22 22:50:14 +00:00
mmolitor87
64bb353f67 Bump pyunifiprotect to support protect 3.0.22 (#133) 2024-03-22 22:47:54 +00:00
Adrian Keenan
558859dd72 Update docs for ignoring cameras (#134)
* update docs

* remove docker from log scanning notes
2024-03-21 23:09:09 +00:00
Sebastian Goscik
d3b40b443a Bump version: 0.10.4 → 0.10.5 v0.10.5 2024-02-24 16:19:22 +00:00
Sebastian Goscik
4bfe9afc10 Bump pyunifiprotect 2024-02-24 16:19:11 +00:00
Sebastian Goscik
c69a3e365a Bump version: 0.10.3 → 0.10.4 v0.10.4 2024-01-26 19:49:36 +00:00
Sebastian Goscik
ace6a09bba changelong 2024-01-26 19:49:32 +00:00
Sebastian Goscik
e3c00e3dfa Update pyunifiprotect version 2024-01-26 19:47:44 +00:00
Sebastian Goscik
5f7fad72d5 Bump version: 0.10.2 → 0.10.3 v0.10.3 2023-12-07 19:59:13 +00:00
Sebastian Goscik
991998aa37 changelog 2023-12-07 19:59:10 +00:00
Sebastian Goscik
074f5b372c bump pyunifiprotect version 2023-12-07 19:57:21 +00:00
Sebastian Goscik
00aec23805 Bump version: 0.10.1 → 0.10.2 v0.10.2 2023-11-21 00:20:46 +00:00
Sebastian Goscik
52e4ecd50d changelog 2023-11-21 00:20:35 +00:00
Sebastian Goscik
6b116ab93b Fixed issue where duplicate events were being downloaded
Previously unifi would only end one update which contained the end time stamp
so it was sufficient to check if it existed in the new event data.
However, now it is possible to get update events after the end timestamp
has been set. With this change we now look for when the event change
data contains the end time stamp. So long as unifi does not change its
mind about when an event ends, this should solve the issue.
2023-11-21 00:18:36 +00:00
Sebastian Goscik
70526b2f49 Make default file path format use event start time 2023-11-21 00:08:24 +00:00
Sebastian Goscik
5069d28f0d Bump version: 0.10.0 → 0.10.1 v0.10.1 2023-11-01 21:34:01 +00:00
Sebastian Goscik
731ab1081d changelog 2023-11-01 21:33:55 +00:00
Sebastian Goscik
701fd9b0a8 Fix event enum string conversion to value 2023-11-01 21:32:19 +00:00
Sebastian Goscik
5fa202005b Bump version: 0.9.5 → 0.10.0 v0.10.0 2023-11-01 00:16:17 +00:00
Sebastian Goscik
3644ad3754 changelog 2023-11-01 00:15:54 +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
d5a74f475a failed rcat no longer writes to database 2023-10-31 23:37:52 +00:00
Sebastian Goscik
dc8473cc3d Fix bug with event chunking during initial ignore of events 2023-10-31 17:47:59 +00:00
Sebastian Goscik
60901e9a84 Fix crash caused by no events occurring in retention interval 2023-10-31 17:35:30 +00:00
Sebastian Goscik
4a0bd87ef2 Move docker base image to alpine edge to get latest rclone release 2023-10-31 17:32:43 +00:00
Sebastian Goscik
8dc0f8a212 Bump version: 0.9.4 → 0.9.5 v0.9.5 2023-10-07 22:52:45 +01:00