I am using Tapo CLI for periodically pulling videos from my Tapo cloud account and uploading the videos to local ZoneMinder installation where I keep the central repo of all security cam footage.
I modified the download_videos command to return the list of all (potentially) downloaded videos so that the command can be called from other Python modules (using download_videos.callback(days, path, overwrite) Click hack) and, consequently, videos processed directly without having to resort to filesystem scanning, storing "uploaded yes/no" flags, etc. The command returns the list of processed videos w/ the following attributes:
file absolute path of the downloaded video file
device Tapo camera name
new_video boolean flag indicating whether the video has been downloaded or skipped (when overwrite is set to 0)
video video metadata from Tapo cloud
P.S. Thank you very much for sharing this great CLI tool! :100:
I am using Tapo CLI for periodically pulling videos from my Tapo cloud account and uploading the videos to local ZoneMinder installation where I keep the central repo of all security cam footage.
I modified the
download_videos
command to return the list of all (potentially) downloaded videos so that the command can be called from other Python modules (usingdownload_videos.callback(days, path, overwrite)
Click hack) and, consequently, videos processed directly without having to resort to filesystem scanning, storing "uploaded yes/no" flags, etc. The command returns the list of processed videos w/ the following attributes:file
absolute path of the downloaded video filedevice
Tapo camera namenew_video
boolean flag indicating whether the video has been downloaded or skipped (whenoverwrite
is set to 0)video
video metadata from Tapo cloudP.S. Thank you very much for sharing this great CLI tool! :100: