Sebastian Goscik
1afa17255f
Change ' quotes to " in rclone command
...
' does not work as expected in windows
2022-03-07 22:32:20 +00:00
Sebastian Goscik
f71ee62bb4
Updated README for new container config location
2022-03-05 23:08:04 +00:00
Sebastian Goscik
ce85b67f99
Added the ability to set user in Docker container
...
BREAKING CHANGE: Rclone config file path has moved
2022-03-05 22:57:44 +00:00
Sebastian Goscik
ad6b4dc632
Bump version: 0.3.1 → 0.4.0
v0.4.0
2022-03-05 15:00:11 +00:00
Sebastian Goscik
a268ad652a
updated changelog
2022-03-05 14:59:55 +00:00
Sebastian Goscik
2b46b5bd4a
Added --version
...
Implements #15
2022-03-05 14:50:54 +00:00
Sebastian Goscik
9e164de686
Demote websocket retry logging
...
Previously `-v` showed a lot of spam meesaged for each time the check
was done, this is not particularly useful.
2022-02-24 23:54:29 +00:00
Sebastian Goscik
78e7b8fbb0
Bump version: 0.3.0 → 0.3.1
v0.3.1
2022-02-24 21:24:16 +00:00
Sebastian Goscik
76a0591beb
changelog
2022-02-24 21:24:06 +00:00
Sebastian Goscik
15e0ae5f4d
Merge pull request #13 from Sticklyman1936/check_ws_and_reconnect
...
Periodically check for websocket disconnect and re-init
2022-02-24 21:16:01 +00:00
Sascha Bischoff
c9634ba10a
Periodically check for websocket disconnect and re-init
...
Both network issues and restarts of Unifi Protect can cause the
websocket to disconnect. Once this happens, no more events are
recieved, and hence no events are stored via rclone.
We add a task which checks that the websocket is connected every
minute. If the websocket is not connected, the connection is totally
reset. For a simple network issue, is should be sufficient to just
call pyunifiprotect's update(), but this doesn't work when protect has
been restarted. Given that this is a tool that should always be
running, we opt for the most extreme option of totally resetting the
connection, and re-establishing it from scratch.
2022-02-24 18:54:24 +00:00
Sebastian Goscik
e3fbb1be10
Bump version: 0.2.1 → 0.3.0
v0.3.0
2022-02-22 23:40:36 +00:00
Sebastian Goscik
47c9338fe5
Changelog
2022-02-22 23:40:24 +00:00
Sebastian Goscik
48042aee04
Added clarifications to contribution guide
...
- Remove mention od docs since those were removed
- Clarified how to run the application via poetry
2022-02-22 23:37:00 +00:00
Sebastian Goscik
e56a38b73f
CI: Prevent building dev docker on pull requests
2022-02-22 23:37:00 +00:00
Sebastian Goscik
3e53d43f95
Add timeout to known download exceptions
2022-02-22 23:36:57 +00:00
Sebastian Goscik
90e50fd982
Fix: Properly handle unknown IDs
...
Today after adding a new camera for testing, it became
clear that the previous assumption that pyunifiprotect
would update its bootstrap when new cameras were
added was incorrect.
2022-02-22 23:36:30 +00:00
Sebastian Goscik
0a2c0aa326
Merge pull request #11 from Sticklyman1936/rclone_bw_limit
...
Add option to supply extra args to rclone
2022-02-22 16:15:32 +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
091b38b038
Bump version: 0.2.0 → 0.2.1
v0.2.1
2022-02-21 23:12:42 +00:00
Sebastian Goscik
5e1803c06c
corrected retry logging
2022-02-21 23:12:42 +00:00
Sebastian Goscik
66e1a1c01f
Bump version: 0.1.1 → 0.2.0
v0.2.0
2022-02-21 12:31:50 +00:00
Sebastian Goscik
65a80bbd8a
Changelog update
2022-02-21 12:31:13 +00:00
Sebastian Goscik
e3025e1611
Simplified docs on creating rclone config
2022-02-21 12:30:59 +00:00
Sebastian Goscik
b2d041ff09
Add missing f for fstrings in warning
2022-02-21 11:12:19 +00:00
Sebastian Goscik
61e54c3b5f
Add known download exception
2022-02-21 11:12:19 +00:00
Sebastian Goscik
85035143cb
typo
2022-02-21 11:12:19 +00:00
Sebastian Goscik
84cb32fabf
Added debug logging of config settings
2022-02-21 11:12:19 +00:00
Sebastian Goscik
773b90ba4f
Log camera ID -> name mapping at start
...
Makes it easier to figure out what the camera IDs are for ignoring them
2022-02-21 11:12:19 +00:00
Sebastian Goscik
0dd9e8e91b
Add feature to ignore cameras
...
Implements #1
2022-02-21 11:12:19 +00:00
Sebastian Goscik
e491965e04
Lookup camera names in pyunifiprotect instead of a local map
...
Pyunifiprotect should keep the known cameras upto date, unlike the map
we were keeping before which was never updated after start.
2022-02-21 11:12:19 +00:00
Sebastian Goscik
f81d57735f
Add dev docker containter tag to actions
2022-02-20 23:43:30 +00:00
Sebastian Goscik
78d31d1afc
Updated dockerfile comment to have corrent container name
2022-02-20 23:43:30 +00:00
Sebastian Goscik
dc4b7d5151
Added more detail about rclone.conf
2022-02-20 23:43:30 +00:00
Sebastian Goscik
b1f46b5f4f
Added warning about potential data loss
...
Thanks Sascha :)
2022-02-20 23:43:30 +00:00
Sebastian Goscik
0b1ccca4b2
linter fixes
2022-02-20 23:43:27 +00:00
Sebastian Goscik
3e1868b21f
Added a retry delay
2022-02-20 21:33:21 +00:00
Sebastian Goscik
166e4b282b
Added down/upload retries
...
Also improved logging of exception that occur to ensure unexpected exceptions are never passed silently
2022-02-20 21:21:30 +00:00
Sebastian Goscik
a22fa64587
Created custom exception class for rclone errors
...
Previously it used RuntimeExceptions which could also be raised from other source.
This also meant some exceptions could be passed silently which is no longer the case
2022-02-20 21:00:19 +00:00
Sebastian Goscik
358aebf49c
typo
v0.1.1
2022-02-20 17:52:20 +00:00
Sebastian Goscik
3fe8475a94
Add latest tag to dontainer release
2022-02-20 17:52:14 +00:00
Sebastian Goscik
dd0ccfd64d
Bump version: 0.1.0 → 0.1.1
2022-02-20 16:14:06 +00:00
Sebastian Goscik
821bf10adb
Add Dockerfile to bump2version
2022-02-20 16:14:06 +00:00
Sebastian Goscik
6e6e4d724d
Updated changelog
2022-02-20 16:14:06 +00:00
Sebastian Goscik
9e7d29323c
Added docker container + docs + github action to publish
2022-02-20 16:14:06 +00:00
Sebastian Goscik
f453e77301
Update README.md
...
typo
2022-02-20 02:19:47 +00:00
Sebastian Goscik
235e27f20b
Update README.md
...
Added more detailed project purpose
2022-02-20 01:29:38 +00:00
Sebastian Goscik
99f049edb0
Make changelog conform to "Keep a Changelog" format
v0.1.0
2022-02-19 23:27:27 +00:00
Sebastian Goscik
7432a5a4e7
Update README
2022-02-19 22:54:25 +00:00
Sebastian Goscik
e8c45c20a3
Document verbosity cli option
2022-02-19 22:50:15 +00:00