MrBartusek / MeteoalarmCard

Meteoalarm, Météo-France and DWD severe weather warnings card for Home Assistant Lovelace UI ⛈️
MIT License
124 stars 44 forks source link

scaling mode not working properly when increasing font size #238

Open Joern-W opened 5 months ago

Joern-W commented 5 months ago

Describe the bug

I use fully kiosk browser to display my dashboard. For better readability, I set the font size to 100%. My scaling mode is "headline only", but the meteoalarm card shows "Yellow warning ...". In this setting I would expect it to show only the word "wind".

Integration state attributes

region_name: Stadt Grevesmühlen region_id: 813074026 last_update: 2024-01-13T18:43:59.115000+00:00 warning_count: 1 warning_1_name: WINDBÖEN warning_1_type: 51 warning_1_level: 1 warning_1_headline: Amtliche WARNUNG vor WINDBÖEN warning_1_description: In Schauernähe treten Windböen mit Geschwindigkeiten um 55 km/h (15 m/s, 30 kn, Bft 7) aus westlicher Richtung auf. warning_1_instruction: null warning_1_start: 2024-01-13T11:00:00+00:00 warning_1_end: 2024-01-14T03:00:00+00:00 warning_1_parameters: wind direction: west gusts: ~55 [km/h]

warning_1_color: #ffeb3b warning_1: start_time: '2024-01-13T11:00:00+00:00' end_time: '2024-01-14T03:00:00+00:00' event: WINDBÖEN event_code: 51 headline: Amtliche WARNUNG vor WINDBÖEN description: >- In Schauernähe treten Windböen mit Geschwindigkeiten um 55 km/h (15 m/s, 30 kn, Bft 7) aus westlicher Richtung auf. instruction: null urgency: immediate level: 1 parameters: wind direction: west gusts: ~55 [km/h] color: '#ffeb3b'

attribution: Data provided by DWD icon: mdi:close-octagon-outline friendly_name: DWD Weather Warnings Warnwetter Aktuelle Warnstufe

Screenshots

fully-screenshot

Card version

2.6.0

Installation type

Home Assistant Community Store (HACS)

Card Configuration

Integration type

Deutscher Wetterdienst (DWD)

Integration configuration

GUI

Integration Configuration

No response

Joern-W commented 5 months ago

Maybe an option to manually remove the "yellow warning" text would already be helpful.

MrBartusek commented 2 months ago

For better readability, I set the font size to 100%.

I don't think I understand what you mean. In which place did you change the font size and to wich value? Can you provide a screenshot?

Joern-W commented 2 months ago

Sure. Fully Kiosk Browser has settings to scale the overall web page and the font size. I did set the to 180% resp. 140%, so the dashboard looks good on my tablet: fully-screenshot2

attila123456 commented 1 month ago

It may be related: on a 4k monitor the card doesn't seem to show the correct label:

image

if I reduce the size of the browser window, at some point the card switches to "Yellow flooding warning".

MrBartusek commented 1 month ago

It may be related: on a 4k monitor the card doesn't seem to show the correct label

This is not related. I am not sure if I remember correctly but this specific issue was caused by some meteorological agency sending alerts in an improper format. This can be fixed with override_headline

attila123456 commented 1 month ago

I see thanks, I will try that.