TheStigh
(TheStigh)
July 29, 2020, 11:06pm
1
Hi all,
Anybody know if I can get this ‘inverted’ / transparent for dark background?
This is the current code used:
camera:
- platform: generic
name: Weather
still_image_url: https://www.yr.no/place/Norway/Oslo/Oslo/Oslo/meteogram.svg
content_type: 'image/svg+xml'
I suggest you switch to using Meteogram instead of YR. Meteogram is highly configurable when it comes to looks, and you can still even use YR as the weather source.
I’m rather fond of meteograms, as they provide lots of meteorological data in a compact form. The Lovelace UI provides already a weather forecast card. I found two additional ways to include externally generated live visualizations in HA:
Pre-formated png file tailored for your region, like https://www.yr.no/place/Germany/Berlin/Dahlem/avansert_meteogram.png . For a simple version omit the advanced_. The forecast period is always 48 hours. This service of the Norwegian Meteorogical Institute c…
I have looked for the answer to this and found it using mod-card and this
camera:
- platform: generic
name: "Yr.no Ingebäck"
still_image_url: https://www.yr.no/place/Sverige/V%C3%A4stra_G%C3%B6taland/Ingeb%C3%A4ck/advanced_meteogram.png
framerate: 0.0008
- type: picture-entity
entity: camera.yr_no_ingeback
hold_action:
action: none
camera_image: camera.yr_no_ingeback
show_state: false
show_name: false
style: |
:host {
filter: invert(1) hue-rotate(180deg);;
}
3 Likes
Please note about the answer above, that the camera is defined in the configuration.yaml and the picture-entity within a container of a lovelace card. So for me defining a vertical-stack card like this worked:
type: vertical-stack
cards:
- type: picture-entity
entity: camera.meteogram
hold_action:
action: none
show_state: false
show_name: false
card_mod:
style: |
:host {
filter: invert(1) hue-rotate(180deg);
}
The URL scheme of yr.no has changed and can be found like this: Did you use our old widgets? - Yr