mkyral
(Marián Kyral)
October 13, 2021, 12:41pm
1
Hi,
yr.no is deprecating old meteogram.png and replacing it by new meteogram.svg.
I’m using camera and picture-entity:
- platform: generic
still_image_url: "https://www.yr.no/place/Czech_Republic/Moravia-Silesia/Fr%C3%BDdek-M%C3%ADstek/meteogram.png"
name: Meteogram
type: picture-entity
entity: camera.meteogram
name: Předpověď Frýdek-Místek
camera_image: camera.meteogram
show_name: false
show_state: false
But this does not work with svg (https://www.yr.no/en/content/2-3076127/meteogram.svg ). Does camera supports svg? How to fix it?
mkyral
(Marián Kyral)
October 13, 2021, 2:15pm
2
Fixed: Proper content_type
needs to be specified.
- platform: generic
still_image_url: "https://www.yr.no/en/content/2-3076127/meteogram.svg"
name: Meteogram
content_type: "image/svg+xml"
2 Likes
TH1
July 5, 2024, 6:10am
3
I don’t get this working. Has anyone a running version of the yr meteogram.svg in 2024 that updates at least once a day? If yes, please describe how to achieve this.
mkyral
(Marián Kyral)
July 6, 2024, 5:26pm
4
Hi,
the generic camera plugin is now managed from GUI. There is also part about yr.no meteogram in documentation.
TH1
July 10, 2024, 4:26pm
5
But if enter https://www.yr.no/en/content/1-72837/meteogram.svg
I get an error “URL hat kein gültiges Standbild zurückgegeben” which means “The URL has not returned a valid still image”. Does this work in your installation?
mkyral
(Marián Kyral)
July 10, 2024, 4:51pm
6
You are right. It does not work from GUI. I got the same error. Even with url I’m already using and that was migrated from yaml config. So it looks like bug to me.
Update:
content of file .storage/core.config_entries
{
"data": {},
"disabled_by": null,
"domain": "generic",
"entry_id": "75b7de68771fc926845ee70ae6bd50b8",
"minor_version": 1,
"options": {
"name": "Meteogram",
"still_image_url": "https://www.yr.no/en/content/2-3076127/meteogram.svg",
"stream_source": null,
"authentication": "basic",
"username": null,
"password": null,
"limit_refetch_to_url_change": false,
"content_type": "image/svg+xml",
"framerate": 2,
"verify_ssl": true
},
"pref_disable_new_entities": false,
"pref_disable_polling": false,
"source": "import",
"title": "Meteogram",
"unique_id": "5315d8f3fa356c55b90989f0c35328ec",
"version": 1
},
I thing the key could be the "content_type": "image/svg+xml"
row.
mannebk
(ManneBK)
November 18, 2024, 7:45pm
7
mkyral:
nt_type: "image/svg+xml"
im fighting the same issue
curren HA 24.11.2
followed the wiki Generic Camera - Home Assistant
i know its working, i tried downloading via browser and i have it in my 2022 HA version running…
so how do I access the config file on the official VM?