Add support for environment variables #409
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds support for environment variables to be used instead of command line options/arguments
For the
download
command:PROTECT_ADDRESS
for--address
PROTECT_PORT
for--port
PROTECT_NOT_UNIFI_OS
for--not-unifi-os
PROTECT_USERNAME
for--username
PROTECT_PASSWORD
for--password
PROTECT_VERIFY_SSL
for--verify-ssl
PROTECT_CAMERAS
for--cameras
PROTECT_WAIT_BETWEEN_DOWNLOADS
for--wait-between-downloads
PROTECT_IGNORE_FAILED_DOWNLOADS
for--ignore-failed-downloads
PROTECT_SKIP_EXISTING
for--skip-existing-files
PROTECT_TOUCH_FILES
for--touch-files
PROTECT_USE_SUBFOLDERS
for--use-subfolders
(usetrue
or1
)/--no-use-subfolders
(usefalse
,0
, or omit env var)PROTECT_DOWNLOAD_TIMEOUT
for--download-request-timeout
PROTECT_START_TIME
for--start
PROTECT_END_TIME
for--end
PROTECT_DISABLE_ALIGNMENT
for--disable-alignment
PROTECT_DISABLE_SPLITTING
for--disable-splitting
PROTECT_CREATE_SNAPSHOT
for--snapshot
PROTECT_USE_UTC
for--use-utc-filenames
For the
events
commandPROTECT_ADDRESS
for--address
PROTECT_PORT
for--port
PROTECT_NOT_UNIFI_OS
for--not-unifi-os
PROTECT_USERNAME
for--username
PROTECT_PASSWORD
for--password
PROTECT_VERIFY_SSL
for--verify-ssl
PROTECT_CAMERAS
for--cameras
PROTECT_WAIT_BETWEEN_DOWNLOADS
for--wait-between-downloads
PROTECT_IGNORE_FAILED_DOWNLOADS
for--ignore-failed-downloads
PROTECT_SKIP_EXISTING
for--skip-existing-files
PROTECT_TOUCH_FILES
for--touch-files
PROTECT_USE_SUBFOLDERS
for--use-subfolders
(usetrue
or1
)/--no-use-subfolders
(usefalse
,0
, or omit env var)PROTECT_DOWNLOAD_TIMEOUT
for--download-request-timeout
PROTECT_START_TIME
for--start
PROTECT_END_TIME
for--end
PROTECT_DOWNLOAD_MOTION_HEATMAPS
for--download-motion-heatmaps
PROTECT_USE_UTC
for--use-utc-filenames
For the
sync
commandPROTECT_ADDRESS
for--address
PROTECT_PORT
for--port
PROTECT_NOT_UNIFI_OS
for--not-unifi-os
PROTECT_USERNAME
for--username
PROTECT_PASSWORD
for--password
PROTECT_VERIFY_SSL
for--verify-ssl
PROTECT_CAMERAS
for--cameras
PROTECT_IGNORE_FAILED_DOWNLOADS
for--ignore-failed-downloads
PROTECT_USE_UTC
for--use-utc-filenames
PROTECT_SYNC_STATEFILE
for--statefile
PROTECT_SYNC_IGNORE_STATE
for--ignore-state
Implements and closes #385