Comments (4)
The configuration code of the card
type: custom:gallery-card
show_reload: true
entities:
- sensor.cam1_snapshot
title: Camera
menu_alignment: Responsive
maximum_files: '10'
configuration.yaml
sensor:
- platform: folder
folder: /media/Cam1_SnapShot
For the record, I have never succeeded with path entitie... I don't find the good path... ^^'
from gallery-card.
Ok, I found my problem.
The gallery card take the listing in the media folder (or the path declared in your entities) while it follow the path local/ia/Cam1_SnapShot/Entrance_20221028-194132.jpg (local = www folder created in the config folder)
The path local/ia/Cam1_SnapShot/***.jpg is exposed to the world publicly without restriction. (like mention in the description)
Is there a solution to only give access to hass session and not the world ?
If I go in media trough lovelance
that's the link of my picture
Is there a way to take authSig generate by hass and add it to your gallery card ?
Thank you for your sharing.
from gallery-card.
Yes. You would need to use the media source instead of the folder component, as follows:
-
Ensure that the folder has been added in configuration.yaml a media source (if it is not already):
media_dirs: Cam1_SnapShot: [*path to media*]/media/Cam1_SnapShot
-
use the media source in the path:
`
- path: media-source://media_source/Cam1_SnapShot/
`
from gallery-card.
Thank you with your help, I finally found the way with media_source
My problem was also the capital letter in the folder name, oups ^^'
It is better like this :)
Configuration
homeassistant: media_dirs: cam1_snapshot: /media/cam1_snapshot
Card
entities:
- path: media-source://media_source/cam1_snapshot/
So it's work perfect now !
Again thank you for your job and help !
from gallery-card.
Related Issues (20)
- Feature Request: Fixed card size HOT 5
- Maximum Files and Parsed_Date_Sort Not Working Properly Together HOT 1
- Go to next slide or video after video has finished. HOT 1
- Autosize Photo HOT 1
- Chromium (thru raspberry pi) crashes when gallery-card is used in Lovelace UI.
- Masonry Layout ignored
- Add File Name Date Ends Parameter
- Images not picked up when used with Play Media to Tv via Google Cast HOT 4
- Log warnings: login attempt failed by using the card HOT 1
- failing when calling more than 70 images
- Download doesn't work. HOT 1
- Invalid date HOT 1
- Issues with Video mp4 files
- Feature request - Delete images function
- Hide left and right arrows HOT 1
- Feature Request - Remove Captions
- Image/Video tabs? HOT 3
- Files not sorting right at all HOT 1
- Feature Request
- Stopped working HOT 26
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gallery-card.