Skip to content

Releases: TarheelGrad1998/gallery-card

v3.5.1

11 Mar 15:55
e0aebfa
Compare
Choose a tag to compare

Added show_zoom option to enable/disable the "Zoom" link added in 3.5.

v3.5

24 Jan 15:16
2a970f2
Compare
Choose a tag to compare

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

25 Apr 20:26
0e0780f
Compare
Choose a tag to compare

Addition of video_preload option. Thanks @N3rdix

Add options for show_duration and file_name_date_begins

20 Mar 15:11
3b6abeb
Compare
Choose a tag to compare

Allow mixing AGO within date formats

18 Mar 20:26
ae483d8
Compare
Choose a tag to compare

Slight tweak to new AGO option to allow combining with date formats

v3.4: Formatting and performance improvements, and more!

17 Mar 18:33
510128e
Compare
Choose a tag to compare

IMPORTANT: BREAKING CHANGES:

  1. 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)
  2. The caption_leading_zeros option has been removed (use the new formatting options for the same functionality)
  3. The card editor has been removed

Updates in v3.4 include:

  1. 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
  2. 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).
  3. 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.
  4. Added caption_format option of "AGO" which uses the fromNow() function in day.js for formatting elapsed time (e.g. "2 hours ago")
  5. Ensured caption_format option of " " (a space) will leave the captions blank
  6. 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.
  7. Further tweaked loading of videos to be more streamlined which should result in more reliable loading of the card
  8. New options for video_autoplay, video_loop, and random_sort (thanks @mvitale1989!)
  9. New option for video_muted
  10. New options for media sources: include_images and include_video
  11. 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.
  12. The popup for images is now larger. Additionally, keypresses and swipes will scroll through the images when viewing the popup
  13. Fixed the issue causing scrolling when setting focus on the page load (by registering the keypress globally at the document level)
  14. 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

20 Jan 20:51
5fc152d
Compare
Choose a tag to compare

Updates to try to improve thumbnail loading.

v3.3

12 Jan 16:15
4363e91
Compare
Choose a tag to compare

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

28 Oct 19:24
9578b31
Compare
Choose a tag to compare

Lazy loading videos/images, and reducing borders for larger images. Thanks @cevznriny

Version 3.1

31 Jul 16:15
b6e8e26
Compare
Choose a tag to compare
  • 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)