Closed danielfernau closed 6 months ago
Adds support for environment variables to be used instead of command line options/arguments
download
PROTECT_ADDRESS
--address
PROTECT_PORT
--port
PROTECT_NOT_UNIFI_OS
--not-unifi-os
PROTECT_USERNAME
--username
PROTECT_PASSWORD
--password
PROTECT_VERIFY_SSL
--verify-ssl
PROTECT_CAMERAS
--cameras
PROTECT_WAIT_BETWEEN_DOWNLOADS
--wait-between-downloads
PROTECT_IGNORE_FAILED_DOWNLOADS
--ignore-failed-downloads
PROTECT_SKIP_EXISTING
--skip-existing-files
PROTECT_TOUCH_FILES
--touch-files
PROTECT_USE_SUBFOLDERS
--use-subfolders
true
1
--no-use-subfolders
false
0
PROTECT_DOWNLOAD_TIMEOUT
--download-request-timeout
PROTECT_START_TIME
--start
PROTECT_END_TIME
--end
PROTECT_DISABLE_ALIGNMENT
--disable-alignment
PROTECT_DISABLE_SPLITTING
--disable-splitting
PROTECT_CREATE_SNAPSHOT
--snapshot
PROTECT_USE_UTC
--use-utc-filenames
events
PROTECT_DOWNLOAD_MOTION_HEATMAPS
--download-motion-heatmaps
sync
PROTECT_SYNC_STATEFILE
--statefile
PROTECT_SYNC_IGNORE_STATE
--ignore-state
Implements and closes #385
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