Skip to content

πŸŽ₯ πŸ“· cli tool for downloading arlo recordings and saving them to a file (add to a cron!)

License

Notifications You must be signed in to change notification settings

lrstanley/arlo-dl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

logo

πŸ”— Table of Contents

✨ Features

  • Allows downloading Arlo recordings, for all cameras.
  • Efficient: concurrency support, and will not re-download a recording that was already downloaded.
  • Configurable filenames, download location and timeframe.

πŸ’» Installation

Check out the releases page for prebuilt versions.

🧰 Usage

$ ./arlo-dl -h
Usage:
  arlo-dl [OPTIONS] [setup]

Application Options:
  -c, --config-file=    configuration file (see 'arlo-dl setup', default: $HOME/.arlo-dl.yaml)
  -o, --output-dir=     location to store recordings (default: arlo-recordings)
      --history=        how many days back to download (default: 14)
  -q, --quiet           don't log to stdout
  -v, --version         display the version of arlo-dl and exit
  -C, --max-concurrent= maximum amount of recordings to download concurrently (default: 2)
  -f, --name-format=    go-template format for the file name (default: {{.Camera.DeviceName}}-{{.Timestamp}}-{{.Recording.Name}}.mp4)

Help Options:
  -h, --help            Show this help message

Available commands:
  setup  generate a config for use with arlo-dl

Example

$ arlo-dl setup
? What is your Arlo username/email? user@domain.com
? What is your Arlo password? *******
validating login...
successfully wrote "/home/myuser/.arlo-dl.yaml"
$ ./arlo-dl
2019/01/02 23:08:59 reading config at "/home/myuser/.arlo-dl.yaml"
2019/01/02 23:08:59 logging into arlo with account: user@domain.com
2019/01/02 23:09:08 login successful
2019/01/02 23:09:08 looking for cameras on account
2019/01/02 23:09:08 found camera "Back yard" (id: SOMEID1234)
2019/01/02 23:09:08 renaming "Back yard" to "Back_yard"
2019/01/02 23:09:08 found camera "Garage" (id: SOMEID1234)
2019/01/02 23:09:08 found camera "Front door" (id: SOMEID1234)
2019/01/02 23:09:08 renaming "Front door" to "Front_door"
2019/01/02 23:09:08 found camera "Living room" (id: SOMEID1234)
2019/01/02 23:09:08 renaming "Living room" to "Living_room"
2019/01/02 23:09:08 fetching library
2019/01/02 23:09:11 successfully fetched library; 84 items found
2019/01/02 23:09:11 skipping Back_yard/1546462326993, already downloaded
2019/01/02 23:09:13 streaming recording Living_room/1546460905942 to file: "arlo-recordings/Living_room/2019/January/2019.01.02-15.28.25-1546460905942.mp4"
2019/01/02 23:09:14 finished downloading "1546460905942"
2019/01/02 23:09:14 skipping Garage/1546261944033, already downloaded
2019/01/02 23:09:14 skipping Front_door/1546261735945, already downloaded
2019/01/02 23:09:14 skipping Front_door/1546254747308, already downloaded
2019/01/02 23:09:14 skipping Front_door/1546254712723, already downloaded
2019/01/02 23:09:14 skipping Front_door/1546254674837, already downloaded
2019/01/02 23:09:14 skipping Front_door/1546234068210, already downloaded
2019/01/02 23:09:14 streaming recording Front_door/1546217634687 to file: "arlo-recordings/Front_door/2018/December/2018.12.30-19.53.54-1546217634687.mp4"
2019/01/02 23:09:14 finished downloading "1546461044310"
2019/01/02 23:09:16 skipping Front_door/1546107714995, already downloaded
2019/01/02 23:09:16 finished downloading "1546186896127"

And, whala!

$ tree arlo-recordings/
arlo-recordings/
β”œβ”€β”€ Back_yard
β”‚Β Β  └── 2019
β”‚Β Β      └── January
β”‚Β Β          β”œβ”€β”€ 2019.01.01-15.56.33-1546376193394.mp4
β”‚Β Β          β”œβ”€β”€ 2019.01.01-15.58.32-1546376312277.mp4
β”‚Β Β          β”œβ”€β”€ 2019.01.01-15.58.48-1546376328088.mp4
β”‚Β Β          β”œβ”€β”€ 2019.01.01-16.04.10-1546376650187.mp4
            └── [...]
β”œβ”€β”€ Front_door
β”‚Β Β  β”œβ”€β”€ 2018
β”‚Β Β  β”‚Β Β  └── December
β”‚Β Β  β”‚Β Β      β”œβ”€β”€ 2018.12.29-13.21.54-1546107714995.mp4
β”‚Β Β  β”‚Β Β      β”œβ”€β”€ 2018.12.29-16.35.40-1546119340985.mp4
β”‚Β Β  β”‚Β Β      β”œβ”€β”€ 2018.12.29-16.53.42-1546120422020.mp4
            └── [...]
β”‚Β Β  └── 2019
β”‚Β Β      └── January
β”‚Β Β          β”œβ”€β”€ 2019.01.01-06.04.24-1546340664937.mp4
            └── [...]
β”œβ”€β”€ Garage
β”‚Β Β  └── 2019
β”‚Β Β      └── January
β”‚Β Β          β”œβ”€β”€ 2019.01.01-14.04.05-1546369445712.mp4
β”‚Β Β          β”œβ”€β”€ 2019.01.01-14.07.04-1546369624175.mp4
β”‚Β Β          └── 2019.01.01-15.42.49-1546375369041.mp4
└── Living_room
    └── 2019
        └── January
            β”œβ”€β”€ 2019.01.01-17.31.56-1546381916614.mp4
            β”œβ”€β”€ 2019.01.01-17.32.42-1546381962426.mp4
            β”œβ”€β”€ 2019.01.01-17.47.18-1546382838942.mp4
            └── [...]

16 directories, 91 files

πŸ™‹β€β™‚οΈ Support & Assistance

  • ❀️ Please review the Code of Conduct for guidelines on ensuring everyone has the best experience interacting with the community.
  • πŸ™‹β€β™‚οΈ Take a look at the support document on guidelines for tips on how to ask the right questions.
  • 🐞 For all features/bugs/issues/questions/etc, head over here.

🀝 Contributing

  • ❀️ Please review the Code of Conduct for guidelines on ensuring everyone has the best experience interacting with the community.
  • πŸ“‹ Please review the contributing doc for submitting issues/a guide on submitting pull requests and helping out.
  • πŸ—οΈ For anything security related, please review this repositories security policy.

βš–οΈ License

MIT License

Copyright (c) 2018 Liam Stanley <me@liamstanley.io>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Also located here

About

πŸŽ₯ πŸ“· cli tool for downloading arlo recordings and saving them to a file (add to a cron!)

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project