Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scaling mode not working properly when increasing font size #238

Open
Joern-W opened this issue Jan 13, 2024 · 6 comments
Open

scaling mode not working properly when increasing font size #238

Joern-W opened this issue Jan 13, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@Joern-W
Copy link

Joern-W commented Jan 13, 2024

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

@Joern-W Joern-W added the bug Something isn't working label Jan 13, 2024
@Joern-W
Copy link
Author

Joern-W commented Jan 13, 2024

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

@MrBartusek
Copy link
Owner

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
Copy link
Author

Joern-W commented May 5, 2024

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
Copy link

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
Copy link
Owner

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
Copy link

I see thanks, I will try that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants