MrBartusek/MeteoalarmCard

scaling mode not working properly when increasing font size

Joern-W opened this issue · 6 comments

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

  • type: custom:meteoalarm-card
    entities:
    • entity: sensor.dwd_weather_warnings_warnwetter_advance_warning_level
    • entity: sensor.dwd_weather_warnings_warnwetter_current_warning_level
      integration: dwd
      hide_when_no_warning: true
      hide_caption: false
      override_headline: true
      disable_swiper: false
      scaling_mode: headline

Integration type

Deutscher Wetterdienst (DWD)

Integration configuration

GUI

Integration Configuration

No response

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

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?

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

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".

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

I see thanks, I will try that.