tomvanswam / compass-card

A Lovelace card that shows a directional indicator on a compass for Home Assistant
MIT License
172 stars 19 forks source link

Second compass ring #717

Open Tom-ahawk opened 1 year ago

Tom-ahawk commented 1 year ago

What about the possibility to have a second compass ring for the 2nd sensor? image

tomvanswam commented 1 year ago

Good idea, however I´d need to find a way to make it work space wise. As the card is not that configurable in sizing of characters clipping or wrapping might occur pretty quickly with another ring inside the first one.

Tom-ahawk commented 1 year ago

Maybe program in some limitation if its possible, so when inner ring is used the card can only be sized down to a lower limit ex. 30%(?). To avoid wrapping go automatically down in font size. - If its possible to detect downsizing from the code. The picture above is from a horizontal stack, with two compass cards, which making this a 1/4 of full size(?)

tomvanswam commented 1 year ago

I'm not sure if I can detect the sizing, and for now the circle is fixes size. Maybe if I make it relative that would work.

Tom-ahawk commented 1 year ago

The card does not have to be (become) smaller than 1/2 of a card row, and then maybe keep a fixe size depending if you use on or two circles. The information for the two sensors can then be moved to the lower corners if that gives more space for data(?) image

Klagio commented 8 months ago

Good idea, however I´d need to find a way to make it work space wise. As the card is not that configurable in sizing of characters clipping or wrapping might occur pretty quickly with another ring inside the first one.

Hi, would it be possible to get a second entity : its useful for boat: True Wind Speed and True WInd Angle (TWS TWA) and Apparent Wind Speed and Apparent wind Angle (AWS AWA)

Below a GArmin solution, but would ne enough as start just to have second entity

Screenshot 2024-01-19 122123