I recomended use this other repository: https://github.com/TarheelGrad1998/GalleryPanel
Sorry for my English
One image/video gallery for integrate in Hass like a panel
It is a panel with one or several image galleries.
These galleries are paginated, in principle up to 8 pages
The image and video data are obtained from a folder inside /.homeassitant/www folder.
Through a ".json" file the details of the image and the video are specified.
Using two .sh scripts that are provided it is possible to add and remove images from the .json file
I use the gallery to show the latest images and videos associated with movements in the motion application , when motion is detect I move image and the video file with best movement to galery and insert one line to .json file.
The file subirdropbox.sh is used in motion.conf like this:
on_movie_end sudo bash /home/homeassistant/dropbox/scriptdropbox/subirdropbox.sh %f cam1
I use dropbox-uploader.sh for upload files to dropbox
With this script i upload to dropbox and www folder all files of motion, then i drop files in dropbox for 2 days and in local gallery for 6 days
-
Copy repository content in .homeassistant folder
-
Include in configuration.yaml
panel_custom: !include panel_custom.yaml