danielfernau / unifi-protect-video-downloader

Tool for downloading footage from a local UniFi Protect system
https://ui-protect-dl-docs.danielfernau.com/
MIT License
469 stars 53 forks source link

No cameras found #63

Open thx4-jh opened 2 years ago

thx4-jh commented 2 years ago

Hey there,

i try to figure out why i cannot download any data from my UDMP. I checked via interface and there is data for the specific time and i can download it from the interface.

i run Docker for Mac.

xxxx@XXXX ~ % docker run -v /var/lib/docker/volumes/730ee565bf8c8945422cf50dbc507ecc06c3e583903dd0849179336c8e2f7a07/_data:/downloads unifitoolbox/protect-archiver download --address 10.0.0.1 --username="local_username" --password="local_user_password" --use-subfolders --start="2021-09-01 02:00:00" --end="2021-09-05 02:00:00" --ignore-failed-downloads --skip-existing-files --cameras=all --touch-files /downloads Getting camera list Successfully authenticated as user backup using a session cookie Successfully retrieved data from https://10.0.0.1:443/proxy/protect/api/cameras 0 files downloaded (0.0 b), 0 files skipped, 0 files failed, 0 files total Cameras found:

danielfernau commented 2 years ago

Hi there!

Are (some of) the cameras offline? There's a bug that, last time I checked, causes offline cameras not to be returned from the API, resulting in the tool not knowing that they're there. Other than that it could also be either some kind of permissions issue or a more general problem with (or a change in) the API itself. What's your current Protect version? Do you have G3 Instant cameras in your setup?

thx4-jh commented 2 years ago

Its up and running. Actually the cameraas where unplugged. So easy. Thx.

Did you ever try it with docker for mac? Its working fine but i do not know how to get the data out of docker. ^^is there a possibility to add a process working indicator to the cmd line? maybe for each file? filesize and then percentage?

danielfernau commented 2 years ago

Nice! Yeah, hopefully I can fix that soon so that all cameras, even the ones that are offline, will show up.

Yes, I'm using Docker for Mac during development. Have a look at the 'File Sharing' tab in Docker Desktop --> Settings --> Resources (https://docs.docker.com/desktop/mac/#file-sharing) Docker on macOS runs within a VM in the background, that's why you can't natively access your host's paths. So in order to use a 'real' local directory, you have to forward it first and then use it as a volume mount. Let me know if you need additional help with that and I'll guide you through setting it up.

I've added a feature request (#64) for your suggestion with the progress indicator. Thanks for the idea!

thx4-jh commented 2 years ago

Great. Docker takes ages to startup at my MacBook. And trust me it is not a performance issue. 😅

THIS EMAIL WAS SENT FROM A MOBILE DEVICE. - JH // 0160**** // @.***


From: Daniel Fernau @.> Sent: Thursday, September 16, 2021 10:52:57 PM To: unifi-toolbox/unifi-protect-video-downloader @.> Cc: thx4-jh @.>; Author @.> Subject: Re: [unifi-toolbox/unifi-protect-video-downloader] No cameras found (#63)

Nice! Yeah, hopefully I can fix that soon so that all cameras, even the ones that are offline, will show up.

Yes, I'm using Docker for Mac during development. Have a look at the 'File Sharing' tab in Docker Desktop --> Settings --> Resources (https://docs.docker.com/desktop/mac/#file-sharing) Docker on macOS runs within a VM in the background, that's why you can't natively access your host's paths. So in order to use a 'real' local directory, you have to forward it first and then use it as a volume mount. Let me know if you need additional help with that and I'll guide you through setting it up.

I've added a feature request (#64https://github.com/unifi-toolbox/unifi-protect-video-downloader/issues/64) for your suggestion with the progress indicator. Thanks for the idea!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/unifi-toolbox/unifi-protect-video-downloader/issues/63#issuecomment-921236693, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ASMCHSJE4IMC362ZEBNQHODUCJKKTANCNFSM5D4CPHFA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.