-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to display enclosed images? #43
Comments
I have the same issue for a different news feed. The image is in links part of the feedparser. Any luck to solve this? |
yes! I've changed the card code and added a couple of lines:
Since this is not the most elegant solution and I'm not familiar with github, I'll not request a PR. |
Thanks for your update. I tried the new code, but unfortunately it didn't show the image. What do you use in the configuration.yaml to set de news feed? |
I use feedparser to get the feed on my configuration.yaml:
I've replaced the card code with the code of the post above (make sure to clean your cache). And this is my card configuration:
|
No, only the changes to the js of the card. My best guess is that you're still caching the old (unmodified) file. HA has a pretty aggressive cache system. try to:
|
Hi,
Je dient een aangepaste versie van de list card te gebruiken.
Deze dient handmatig toegevoegd te worden aan home assistant.
zie ook #43 (comment)
…________________________________
Van: Raznor09 ***@***.***>
Verzonden: woensdag 15 maart 2023 13:00
Aan: iantrich/list-card ***@***.***>
CC: Dynamix72 ***@***.***>; Mention ***@***.***>
Onderwerp: Re: [iantrich/list-card] How to display enclosed images? (Issue #43)
@Dynamix72<https://github.com/Dynamix72> I have the text but no images:
confi.yaml:
sensor:
platform: feedparser
name: Nu Nieuws
feed_url: 'https://www.nu.nl/rss/Algemeen'
date_format: '%a, %d %b %Y %H:%M:%S %Z'
scan_interval:
hours: 1
inclusions:
- title
- link
- description
- image
- pubDate
exclusions:
- language
Lovelace Card:
type: custom:list-card
entity: sensor.nu_nieuws
title: Nu.nl RSS
feed_attribute: entries
row_limit: 4
columns:
* title: ''
field: image
type: image
width: 80
* title: ''
field: title
add_link: link
[nu]<https://user-images.githubusercontent.com/114279718/225302622-b97ef9d3-dcee-4051-958d-ff6f2a585a29.png>
—
Reply to this email directly, view it on GitHub<#43 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AUFYMXHYCSU4G7Y2OFXUROTW4GVOVANCNFSM5NHXZT2A>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hi, idd had het al opgelost, bedankt |
@deam0n |
Incredible, took a day to recognize that I changed the code...now done. I only have issues if I want to implement a link -it always ends not in the internet, it always opens my HA page |
Hi,
I'm having issues to display images.
feed:
card:
result:
The text was updated successfully, but these errors were encountered: