Releases: TarheelGrad1998/gallery-card
Releases · TarheelGrad1998/gallery-card
v3.5.1
v3.5
This is likely the last update to the card (see the updated Readme). Thanks to the contributors.
Add Zoom link (Thanks @dnshwork)
This commit introduces new features to the plugin (Thanks @Trexano99):
- preview_video_at: Users can specify when to capture preview images from videos.
- enable_date_search: Allow users to filter media based on specific dates.
- search_date_folder_format: Users can define the folder format for date-based searches.
Is also included a fix for the video preview on Android devices.
video_preload
Addition of video_preload option. Thanks @N3rdix
Add options for show_duration and file_name_date_begins
Allow mixing AGO within date formats
Slight tweak to new AGO option to allow combining with date formats
v3.4: Formatting and performance improvements, and more!
IMPORTANT: BREAKING CHANGES:
- You will need to update your file_name_format and caption_format values for captions to work correctly (see below and the readme for more information)
- The caption_leading_zeros option has been removed (use the new formatting options for the same functionality)
- The card editor has been removed
Updates in v3.4 include:
- Implementation of the day.js library for date parsing and formatting. This will break any existing file_name_format and caption_format settings, however there are now many more options for formatting, such as days of the week, etc. See the readme for more details
- As a consequence of the new date parsing, the caption_leading_zeros option has been removed. These options are now available as formatting codes (e.g. M for 1 digit month and MM for 2 digits).
- Another consequence, you no longer need to specify any extraneous characters (e.g. camera name) in file_name_format. The library is capable of extracting just the dates from the file name.
- Added caption_format option of "AGO" which uses the fromNow() function in day.js for formatting elapsed time (e.g. "2 hours ago")
- Ensured caption_format option of " " (a space) will leave the captions blank
- Added new folder_format parameter. When your videos are stored in subfolders by date (such as Synology Surveillance Station), you can use this along with maximum_files and reverse_sort for MUCH faster load times. I.e. it will look only in the current folder for the first maximum_files files and will stop when it has enough, rather than loading from ALL folders as it did previously.
- Further tweaked loading of videos to be more streamlined which should result in more reliable loading of the card
- New options for video_autoplay, video_loop, and random_sort (thanks @mvitale1989!)
- New option for video_muted
- New options for media sources: include_images and include_video
- file_name_format, caption_format, and folder_format can be specified at the card level or entity level, with any specified entity level taking precedence.
- The popup for images is now larger. Additionally, keypresses and swipes will scroll through the images when viewing the popup
- Fixed the issue causing scrolling when setting focus on the page load (by registering the keypress globally at the document level)
- Removed the card editor. It has been broken for a while anyway, and the extra effort to update was a hurdle preventing me from getting these changes out.
Another Thumbnail attempt
Updates to try to improve thumbnail loading.
v3.3
Lots of changes in version 3.3, including:
New Configuration Options:
- parsed_date_sort, which allows sorting by the date obtained by using the file_name_format. This should resolve some issues where sorting by date was not previously possible. Thanks, @kalhimeo
- maximum_files_per_entity, which determines whether the maximum files is counted for each entity or overall. E.g. if your card includes 3 sensors and max_files = 5, when this is true you will see up to 15 files but when it is false you will only see up to 5 files total. This is defaulted to true which will continue functioning as before, but many may want to turn this off especially in combination with parsed_date_sort.
- caption_leading_zeros, which determines whether leading zeros are included in the captions. E.g. January will be represented as "1" when false or "01" when true.
Updates:
- Added support for the Folder sensor included by default in Home Assistant. Configuration is similar to the Files sensor without the need to install a separate component
- The focus is initially now on the main image, which should allow using keypress on the page load.
Bug Fixes:
- Reverted previous updates for lazy loading of videos. This results in better thumbnail loading for me, but YMMV. Lazy loading for images remains.
- Fixed missing icons in the card configuration editor.
- Fixed popup for adding a media source in the card configuration editor.
- Fix for recurring TypeError involving tagName
v3.2
Lazy loading videos/images, and reducing borders for larger images. Thanks @cevznriny
Version 3.1
- Loads videos into menu one at a time (instead of all at once), for better performance
- Keyboard navigation of images: up/left (previous) and down/right (next)
- Added show_reload option for adding a link for reloading images/videos.
- Fixed bug in captions if file names contained URL encodes (e.g. spaces in file names were replaced with %20, throwing off the caption computation)