lubeda / EspHoMaTriXv2

A simple DIY status display with a 8x32 RGB LED matrix, implemented with esphome.io and Home Assistant.
MIT License
276 stars 25 forks source link

[FEATURE REQUEST] Add a screen with an icon and a time with the day of the week. #85

Closed malinovsku closed 11 months ago

malinovsku commented 12 months ago

Feature Request

Describe the solution / feature you'd like

It would be great if you added an additional display option similar to icon_screen, but instead of text that would display the time and day of the week. The name of the new function could be selected icon_time, parameters to run: "icon_name", "lifetime", "screen_time", "default_font", "r", "g", "b"

Additional context

As an example of a screens, displaying the weather and time icons with the day of the week. Снимок экрана 2023-09-20 в 22 05 13

andrewjswan commented 12 months ago

Interesting idea as an additional time display screen, or as an alternate screen with getting the weather from the HA.

lubeda commented 12 months ago

It's implemented in 2023.8.0. Can you please give me an example for the wiki?

lubeda commented 12 months ago

https://github.com/lubeda/EspHoMaTriXv2/wiki/icon-clock

malinovsku commented 11 months ago

@lubeda thank you, the display is the right one, but the icon moves two columns to the right, while everything is as it should be in icon_screen, as I understood it in the code, but it would be better if the icon starts from the very edge without indentation and the clock is shifted to the middle of the remaining one, since when changing displays with icons, they are like they would jump because of the difference in boundaries. 1

lubeda commented 11 months ago

Upps, i will fix this.

malinovsku commented 11 months ago

@lubeda after a couple of days of using this display, I realized that there are not enough variations of icons with hours and days of the week, so that they could be created in the same amount as, for example, icon_screen and deleted by the del_screen service. as an example of usage, display both a calendar icon with a clock and a weather icon with a clock. There may be a conflict when deleting, and https://github.com/lubeda/EspHoMaTriXv2/issues/83 it would help in solving this issue, to delete by screen id

andrewjswan commented 11 months ago

Interesting idea, it can be well developed, for example to output date with hours, or date with day of week and year, etc. For example, for the date, we take the backing icon calendar (any icon from the set) image And on top of that, display the current date: image And next to it we can display either time or date, also we can display the current day of the week: image image

And we can rooluchat let's say such a variant of the screen (here you can even safely use the crawl line). image Or this one: image image

andrewjswan commented 11 months ago

Since we come to an increase of screens with the same information, e.g. Clock, Icon with Clock, Date, Icon with Date, it would be nice to give the possibility to define a starting set of screens in EspHoMaTriXv2 configuration (if not specified, the default is time, date), for example:

emhtx:
  screens:
    - icon_time
    - icon_date

Also immediately add localized abbreviations to display the current day of the week (if not specified, the default is English):

emhtx:
  week_days:
    - ПН
    - ВТ
    - СР
    - ЧТ
    - ПТ
    - СБ
    - ВС

That would solve the problem https://github.com/lubeda/EspHoMaTriXv2/issues/89

andrewjswan commented 11 months ago

On the concept of outputting an icon and text on top of it, it is necessary to think through a convenient mechanism for specifying what to output, let's say icon_name, value, for example:

malinovsku commented 11 months ago

Upps, i will fix this.

I updated the firmware, and the icon is now in the right place, thank you, but the days of the week are not in the middle at the bottom, 3 indent on the left, and 1 indent on the right. Снимок экрана 2023-09-28 в 20 27 09

lubeda commented 11 months ago

Hopefully finally fixed. @malinovsku Please check again

malinovsku commented 11 months ago

@lubeda everything is great now, thank you!