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

[Bug] Check small font on US-P #802

Closed
ClaireRovic opened this issue Mar 7, 2023 · 10 comments
Closed

[Bug] Check small font on US-P #802

ClaireRovic opened this issue Mar 7, 2023 · 10 comments
Milestone

Comments

@ClaireRovic
Copy link

FEATURE DESCRIPTION

To be able to reduce the font size on the mediaCard for the lower Entity line.

ADDITIONAL CONTEXT

Typically radio stations in Australia have a 3 letter code, if used as the Name I get character chopped off. Image will be attached.

PANEL / FIRMWARE VERION

US-P
1677579154165

@joBr99 joBr99 added this to the 4.3.X milestone Aug 24, 2023
@joBr99
Copy link
Owner

joBr99 commented Aug 24, 2023

With the latest development tft file you can change the font like this:

icon: "text:91.91¬0"

The number is the number of the font in nextion.

Handling will probably change a bit so there's another option like font in the yaml, however it works already this way.

Further changes will be done in #964

@joBr99 joBr99 closed this as completed Aug 24, 2023
@ClaireRovic
Copy link
Author

Thanks heaps - will wait for Production version - do you have a concept on when this will be - thanks sent a pizza

@joBr99
Copy link
Owner

joBr99 commented Aug 31, 2023

thanks, shound't take long will be in the next release

@ClaireRovic
Copy link
Author

ClaireRovic commented Sep 22, 2023

Was trying to implement the small font as per the resent update US-P. I did not change the font size, hoping I have done something wrong.

`type: cardMedia
title: Study Radio
key: studyRadioKey
sleepTimeout: 90
navItem1:
entity: navigate.ssKey
icon: mdi:home
color: [55, 55, 55]
navItem2:
entity: navigate.studyDetailKey
icon: mdi:arrow-up-bold
color: [55, 55, 55]
entity: input_select.speakers
status: media_player.study_speaker
entities:

  • entity: service.script.turn_on
    font: small
    icon: text:91.9
    data:
    entity_id: script.radio_player
    variables:
    radio_id: Smooth
    radio_type: music
    speaker_id: Study`

@joBr99 joBr99 reopened this Sep 24, 2023
@joBr99 joBr99 changed the title [Feature Request] [Bug] Check small font on US-P Sep 24, 2023
@joBr99
Copy link
Owner

joBr99 commented Oct 14, 2023

PXL_20231014_144329779

cardGrid works, need to confirm with cardMedia

@joBr99
Copy link
Owner

joBr99 commented Oct 14, 2023

image

Confirmed cardMedia working aswell, please check if you are on the latest version and restart appdaemon.

@joBr99 joBr99 closed this as completed Oct 14, 2023
@ClaireRovic
Copy link
Author

Thankyou for all your effort and focus. Hopefully you can help me on where I have gone wrong. If I use "text:91.91¬0" it does appear to work very well, though 'font: small' does nothing.

@joBr99 joBr99 reopened this Oct 23, 2023
@joBr99
Copy link
Owner

joBr99 commented Oct 25, 2023

Hey,
discovered this bug

image

      - type: cardMedia
        title: Kitchen
        entity: media_player.kitchen
        entities:
          - entity: light.bed_light
            icon: text:tex
            font: small
          - entity: light.bed_light
            icon: text:text
            font: medium

String is sent to the panel twice, which is probably the cause for your problem with the font size, as the string is getting to long and cut off.

@joBr99 joBr99 closed this as completed in ffcd872 Oct 25, 2023
@joBr99
Copy link
Owner

joBr99 commented Oct 25, 2023

should be fixed in newest version

@ClaireRovic
Copy link
Author

Thanks Heaps, not overly worried at the moment as your other approach works quiet well. Enjoy, due to inflation half a pizza on its way 😂🤣

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants