Hello, I just installed Gallery card to see some CCTV footage and I can’t get the videos to play. The videos are mp4 and play Ok in the media side-menu. Been looking for somebody with the same issue but so far no luck. I am getting this error in the log
Logger: frontend.js.latest.202308020
Source: components/system_log/init.py:270
First occurred: 9:55:22 PM (3 occurrences)
Last logged: 10:04:17 PM
xxxxxxxxxxx.com Error: Failed to execute ‘define’ on ‘CustomElementRegistry’: the name “gallery-card” has already been used with this registry
What is sensor.syno? Is that using the files or folder integration? If so, are the files in your www directory? If not, you may need to use the media source.
That was indeed the issue, I was trying to use the sensor folder and allow an external folder (/media) in the configuration yaml. Files with folder sensor were showing but not being played back, eventually, I was able to configure the media source way and it worked, it was not straightforward forward but figure it out by looking at the HA documentation. I thought the sensor folder would allow files outside www directory, I have a large nas already mounted on /media and the new NAS thing in HA forces the files in /media. I guess I could look into mounting the SMB share inside www but it’s working now I might try it later for a different use case. Thanks for the reply.
First of all thanks for the card its just what I have been looking for.
Has anyone else seen this issue? I’m using the files integration to get mp4’s from the www/blink directory and they all play fine when clicked. I can see the preview fine using Chrome but when using my Fire Tablet or iPhone I see just a blank square. This is using the HA App or fully kiosk browser.
Lower case didn’t work either, I did manage to get it working by changing line 671 to " var fileDatePart = fileName.substring(0,10);". Is it possible to add “fileNameDateEnds” as a config parameter?
Odd, in my testing that library had little trouble plucking a date out of the string, but maybe the unix format is special. Anyway, sounds like you’ve found a good workaround.
For some reason keep getting my media source link breaking, happened last night and I reverted to a previous backup, and everything working normally, and then this afternoon, not sure what is causing this, I know the links work so the configuration is fine. I am using the default media dir as local, can’t really assign it to another directory since that is the one that HA assigns for the NAS mounting
Hrm, not sure on that one. Are you keeping the page open, like on a kiosk or something? I’m wondering if maybe the session is expiring or something. Just a wild guess, but I haven’t not heard of that happening before.
I don’t have a kiosk but I am keeping the session open for a long time, in a chrome tab, tried logging out or logging in, unless there is another way to restart the session can’t think of anythig else. Also there was a guy on the git hub page that had a similar issue with a Japan folder I think last year, it is in the issues page. I am going to try mounting a smb under the www folder, seems to be more reliable. Also if this doesn’t work I will probably look for another solution on docker/linux, if you know of anything similar please let me know. Thanks again for the reply
If logging out and back in didn’t “reconnect” then it’s not the session. So maybe a bad guess on my part.
Personally I’ve been transitioning more and more to Frigate, from Synology Surveillance Station. The Frigate card is superior to mine, at least when your videos are hosted within Frigate. For what it’s worth…
I had a look and I couldn’t find a way to do just playback, I had to add a camera, I have my files being recorded by a ring integration to the NAS, unless there is a trick in which I add a dummy camera I wouldn’t know how to do it, that is why I like your card so much, it’s simple and it does exactly what i need
Great card. I previously had this setup using the deprecated version and had separate tabs inside the panel view to separate the content from different cameras. I’m struggling to reproduce the same tabbed view just like your screenshot. Any help would be appreciated.
Thanks, that was very helpful. When I was using the old gallery panel I was able to have separate tabs inside the panel that separated videos from images like this.
panel_custom:
name: gallery
sidebar_title: Front Door (Kuna)
sidebar_icon: mdi:cctv
config:
title: Front Door
tabs:
- name: Videos
entity_id: sensor.gallery_videos
maximum_files: 10
- name: images
entity_id: sensor.gallery_images
maximum_files: 10
Yes, that is the scenario I covered. That same thing is now two views/tabs using the built in HA functionality, each containing a gallery card – one for the videos and one for the images. The separation and tabs are just now handled by HA.
Great card, I use it as photo frame at my home screen at a 10" tablet. Only when you tapped on the photo it is too big and does not fit on the screen. Can the size for full screen be set somewhere? I now have this configuration: