Comments (13)
Yes this would be nice but i have redesign the code before. I am planning a more object orientated design which will make also the screen identifier #83 thingy possible.
from esphomatrixv2.
I still don't like the +/- percent to determine the color and adding progress to the queue. The color must be a parameter and the progress (or even better percentage) must not be a "global" variable. Theses are all reasons to put effort into this #96.
But at last, the result on the display is nice and useful.
from esphomatrixv2.
setting the progress color also works fine, an example on the screenshot where the parts are of a different shade
from esphomatrixv2.
Interesting alternative to Gauge, which can now be displayed only vertically, and will eat up less space on the left, and in my opinion more informative and convenient.
from esphomatrixv2.
Yes this would be nice but i have redesign the code before. I am planning a more object orientated design which will make also the screen identifier #83 thingy possible.
Can you give me an approximate time frame, I can make my proposed changes to 83.
I can also try to make an Icon with data display. But I would not like to disturb you, if everything will be well with my free time, I plan to do it today tomorrow.
from esphomatrixv2.
I made the changes (2023.09 based), but I need to check them since I did them in a regular editor on my phone (no access to a computer), I'll try to check for errors and typos today, build the firmware, upload it to the display.
If I don't notice any regression, I will do a Pull Request, only thing is that it will be one commit (sorry).
from esphomatrixv2.
@andrewjswan thank you, I tested the screen, and so far I haven't noticed any problems. Is it possible as a suggestion to consider specifying a color for the strip? for example, by analogy with the id, through the sign | if an array of colors is specified, then we take it, if not, then as now from red to green.
from esphomatrixv2.
@malinovsku You can't use |
because it's int
, but I can suggest red to green
and green to red
, it's very easy to do. It is possible to specify one color for the whole progress, or an array of colors as it is done in Gauge, but it must be stored somewhere, and this is at least one Color
or an array of Color[100]
, and it is necessary to make a separate call to specify the array or to specify the color.
I haven't found how to specify for HA this parameter is optional in the service registered in ESPHome.
Maybe @lubeda has some ideas.
from esphomatrixv2.
Progress in MODE_ICON_PROGRESS screen:
- 0 .. -100 - from Green to Red
- 0 .. 100 - from Red to Green
d612744
from esphomatrixv2.
2023,9,1 Released ...
from esphomatrixv2.
The color must be a parameter
I think it is more convenient to set only a percentage, and get automatic color, rather than to set separately, r, g, b
, in my opinion, we need to get away from the individual channel to an array of rgb
.
I still don't like the +/- percent to determine the color and adding progress to the queue.
Me too, but it was the easiest option :)
from esphomatrixv2.
Is it possible as a suggestion to consider specifying a color for the strip?
I can add a function to set the color for the progress bar and background, ie by default colors will be Black, and then will work automatically calculate the color depending on the progress, if set colors, it will be filled with them.
from esphomatrixv2.
Complete... We can close. :)
from esphomatrixv2.
Related Issues (20)
- [BUG] HOT 2
- [QUESTION] Remove/Change boot animation HOT 4
- [BUG] Force mode not working (ex.: 2 = clock) HOT 6
- [BUG] `on_show_display` `on_night_mode` `on_next_screen` triggers not work HOT 2
- [FEATURE REQUEST] Permanent screens HOT 3
- Date color HOT 10
- [QUESTION] How do I add 1 hour to the time displayed? HOT 1
- Strapping GPIO15 prevents OTA flashing from working HOT 5
- [QUESTION] After Flashing Ulanzi Making a Tone HOT 2
- Unable to compile latest version - missing libmagic??? HOT 7
- [QUESTION] Is my Config wrong? HOT 2
- [QUESTION] move the second digit in the calendar one row to the left HOT 4
- [BUG] Calling id(rgb8x32)->set_display_off() at boot crashes EspHoMaTriXv2 HOT 10
- How to set night_mode_screens with included packages HOT 9
- LOOP & on_empty_queue does'nt get's triggered in night mode when "clock" screen expires HOT 9
- [QUESTION] How to change default clock and date color? HOT 4
- [BUG] on_empty_queue loop after ~25 days runtime HOT 7
- [QUESTION] I have build the LED for my self but it shows artifacts at start with power HOT 1
- [QUESTION] [on_empty_queue] is an invalid option for [ehmtxv2]. Did you mean [allow_empty_screen]? HOT 8
- [QUESTION] How show on Display Text or Picture when OTA start?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esphomatrixv2.