cgiesche / streamdeck-homeassistant

Control your Home Assistant devices from StreamDeck
MIT License
828 stars 40 forks source link

Featurerequest: text wrap for title #148

Closed doabigcheese closed 1 year ago

doabigcheese commented 1 year ago

Hi, is it possible to implement text wrap for longer titles? I have a rain announcement which have long text like "it will rain from 4:30 to 6:00"... is there a way to display this in a readable size?

thnx

RonSijm commented 1 year ago

What HASS addon/sensor are you using for the rain?

Instead of the announcement, there might be a better sensor instead of the whole text Then you could use something like it will rain from {{- '\n' -}} 4:30 to 6:00 {{- '\n' -}} or it will {{weather}} from {{- '\n' -}} {{time}} {{- '\n' -}}

To have the text wrapped and centered. That's what I use for some other sensors

doabigcheese commented 1 year ago

Ah, was not aware that i can break it up that way.... so currently its only using an answer from a URL (https://morgenwirdes.de/api/v3/rain.php but i can try to reformat it then...