Closed andrewjswan closed 1 year ago
The screen ID works fine:
- service: esphome.esp_pixel_clock_icon_screen
data:
icon_name: "weather_{{ states('weather.current_weather') | replace('-','_') }}|weather"
...
- service: esphome.esp_pixel_clock_icon_screen
data:
icon_name: "weather_{{ states('weather.forecast_weather') | replace('-','_') }}|forecast"
...
Calling icon_clock
and icon_date
screens with icon|day
works fine.
icon_screen_progress
icon_clock
and icon_date
screens with the icon|weekday
parameter leads to a reboot (need to redo the algorithm for getting the current day string).icon_clock
and icon_date
screens for some reason a black triangle (2 points in height and width) is displayed on the icon in the lower left corner.There is no possibility to test it yet, but in theory the bugs found are fixed.
what about the docs or a wiki entry for the new features?
Look like all fixed ...
what about the docs or a wiki entry for the new features?
If you can tell me which file to make the changes in, I'll do it tomorrow.
PS: I can't promise screenshots
what about the docs or a wiki entry for the new features?
Added to the readme...
Hi @andrewjswan,
it is better to have a PR per new feature! In this PR there are so many new things, its hard to check them. But i will merge this PR to a new branch and test.
it is better to have a PR per new feature!
I agree, but it happened here that I did all the changes in one go since I didn't have access to a computer and it was already difficult to break it down.
Things I tested:
auto_clear_enabled: false
in the display section.icon_date/clock
with clock/day/weekday. The weekday should be a parameter in the yaml to be more international i can take a look on this at the week end, the fonts are a problem to make this work the fonst hav to be monospaced e.g. 3 pixels an the up/down position is a problem. Perhaps we have to define a default font from trip5 and make only the second font configurable.icon_screen_progress(iconname, text, lifetime, screen_time, progress, default_font, r, g, b)
I'm still not happy the the screen identifier and the "|" i believe each parameter has to be unambiguously.
To sum it up, you pushed the functionality futher, but we must take care in clean code
I'm still not happy the the screen identifier and the "|" i believe each parameter has to be unambiguously.
Totally agree. But I was trying to fit the functionality into the current model without expanding it or losing the basic functionality. I think I succeeded.
- This feature is nice but the implementation is to obscure
It's really bad out there so far, different fonts, different metrics, and you have to fit it all into 8 points. I'm still working on the display.
- perhaps the order of the parameters should be
You can always change :)
- boot animation 👍especially if you set
auto_clear_enabled: false
in the display section.
I'm not quite sure what this is about, I'll have to read up on it.
To sum it up, you pushed the functionality futher, but we must take care in clean code
Totally support, I tried to implement the concept, but I don't know C++, so I'm not doing as well as I wanted.
2023.9.1: Screen ID, Progress screen, Icon with Text
icon_name|screen_id
icon_date(iconname, lifetime, screen_time, default_font, r, g, b)
[day, weekday]
likeicon_name|day
, and a backing icon toicon_clock
oricon_date
, it will display text.icon_screen_progress(iconname, text, progress, lifetime, screen_time, default_font, r, g, b)
Should solve the issues: https://github.com/lubeda/EspHoMaTriXv2/issues/83 https://github.com/lubeda/EspHoMaTriXv2/issues/91 https://github.com/lubeda/EspHoMaTriXv2/issues/92