TarheelGrad1998 / gallery-card

A custom card for Home Assistant that will display images and/or videos from a folder in the style of a gallery.
99 stars 33 forks source link

Feature request: select by folder when viewing #32

Open hans-gustav opened 2 years ago

hans-gustav commented 2 years ago

I have a folder for my security camera. A new folder is created in this every day (example: 2022_01_25-2022_01_25). The recordings are kept for one month. Since not everything has to be loaded, it would be nice if only the day-by-day recordings were displayed. Is there a way here? I currently have the problem that there is otherwise a lot of data. I use the media browser variant.

TarheelGrad1998 commented 2 years ago

That is definitely a problem, high on my list. Personally I only keep about a week's worth of recording, but when there are "busy" days I hit the same issue.

I'm thinking of an option where you specify the subfolder format, so it can then look for and only fetch videos in the right order. E.g. if you specify 10 max_files, it can look in today's folder first, then yesterday's, and so on, and quit when it's reached the 10.

Would something like that work for you? It's still an idea I'm kicking around, but agree it needs something to improve here.

hans-gustav commented 2 years ago

Many thanks for the quick response. Yes, that would of course be a possibility. Alternatively, I could imagine sequential reloading.

TarheelGrad1998 commented 2 years ago

Great. It's on my radar...for some point. :)

mb-software commented 2 years ago

I'm looking for the same. But in my opinion the easiest and cleanest solution would be simply showing a list of (sub)folders, and by selecting one of them you get only the images/videos from this subfolder.

hans-gustav commented 2 years ago

That would be good for me too.

TarheelGrad1998 commented 1 year ago

See the new folder_format option in v3.4. It implemented what I discussed on 1/25/2022 and definitely makes loading in these cases much better. Let me know how this works for you.

hans-gustav commented 1 year ago

Hello and thank you. It works perfectly. The suggestion from @mb-software on March 1st, 2022 is also great. This function would also be very helpful. Thanks again.

hans-gustav commented 1 year ago

Perhaps it also makes sense to create the possibility that a date is entered and the filter is based on this.

TarheelGrad1998 commented 1 year ago

Ok. I'll keep this open in case I have more time to work on it, but...no promises. :)