roleoroleo / yi-hack-MStar.gdrive

Google drive loader for yi smart ip camera (MStar based)
MIT License
25 stars 6 forks source link

Limit google drive usage #13

Closed alkhachatryan closed 3 years ago

alkhachatryan commented 3 years ago

I have 2 TB in google drive, but would like to limit the usage of camera, like to have 32GB for camera. The camera will remove old videos from drive, if the space is full in gdrive, but how to set the limit in the configs? Delete old videos if X size used. I couldn't find anything.

roleoroleo commented 3 years ago

At the moment it's not possible. Sorry.

alkhachatryan commented 3 years ago

@roleoroleo can you tell me please which file is responsible for memory checking. I'll try to open a PR for that

roleoroleo commented 3 years ago

The logic is in the file GDriveUploader But this code is not mine and I don't know it very well.

denven commented 1 year ago

I have 2 TB in google drive, but would like to limit the usage of camera, like to have 32GB for camera. The camera will remove old videos from drive, if the space is full in gdrive, but how to set the limit in the configs? Delete old videos if X size used. I couldn't find anything.

I added this feature for the OneDrive uploader if you have a large space of one drive storage, you can have a try.