[Solved] Old yr.no forecast widget replaced by new svg version - how to upgrade?

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?

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