Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yi-hack-Allwinner.gdrive folder structure #985

Open
evider2002 opened this issue Dec 25, 2024 · 3 comments
Open

yi-hack-Allwinner.gdrive folder structure #985

evider2002 opened this issue Dec 25, 2024 · 3 comments

Comments

@evider2002
Copy link

Hi,

I installed yi-hack-Allwinner.gdrive and it is working fine, but I have a question how to accomplish something specific.

Google drive has a features called Google Drive versioning, that if you upload a file with the same name to the same folder, it will keep both files labeling them with a version number, instead of deleting the first version and keeping the second. Google will keep 100 versions before deleting the oldest one. I am trying to set up yi-hack-Allwinner.gdrive to upload one day of footage and then upload the next day to the same location where it will become a new version, instead of being uploaded to a new folder where it will not be merged as a new version to yesterdays file.

The benefit of having gdrive upload this way is:
A - I would have 100 days of storage on Google drive but it only uses up 1 days worth of my storage quota (only the most recent file version counts against storage.)
B - There is no need for file cleanup as google will automatically delete the oldest version when 100 versions are reached.

The issue is that right now the setup is that Yi camera creates a new folder for each hour and labels it with year month day hour - 2024Y12M24D23H, so then tomorrow the same hour folder will be labeled 2024Y12M25D23H, therefore tomorrow's files will be going into a new folder. What I would like, is for the folder to just be labeled with the hour - 23H, so tomorrow's files will go into the same folder and be uploaded as a new version.
In short, I would like for there to just be 24 folders corresponding to the hour, and then each day the same 24 folders will keep on being used again and again and again, but there will be 100 versions of each file for the past 100 days.

How can I set this up?
Thank you!

@roleoroleo
Copy link
Owner

Try to open a issue in the proper repo: https://github.com/roleoroleo/yi-hack-Allwinner.gdrive
I'm not the creator of this script, so I don't know exactly how to help you, but someone maybe...

@evider2002
Copy link
Author

Thank you for your response roleoroleo .
I just opened the issue there, but the reason I put it here to begin with, is because there doesn't seem to be much activity going on there...

@roleoroleo
Copy link
Owner

You can leave this issue open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants