Skip to content

Commit

Permalink
Update arlo-downloader.py
Browse files Browse the repository at this point in the history
  • Loading branch information
evilalmus authored Apr 12, 2024
1 parent 3e6ecf5 commit 506d513
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arlo-downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def attribute_changed(device, attr, value):
# set these from the environment to log in
USERNAME = os.environ.get('ARLO_USERNAME', '_INVALID')
PASSWORD = os.environ.get('ARLO_PASSWORD', '_INVALID')
PATH = os.environ.get('SAVE_MEDIA_TO')

# Print configuration in DEBUG
for confItem in Config.dump_config().items(): logging.debug(confItem)
Expand All @@ -94,7 +95,7 @@ def attribute_changed(device, attr, value):
storage_dir='aarlo',
verbose_debug=True,
backend='sse',
save_media_to=Config.config("save_media_to"))
save_media_to=PATH)
if not arlo.is_connected:
logging.info("failed to login({})".format(arlo._last_error))
sys.exit(-1)
Expand Down

0 comments on commit 506d513

Please sign in to comment.