Giter VIP home page Giter VIP logo

Comments (13)

lubeda avatar lubeda commented on July 29, 2024 1

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.

lubeda avatar lubeda commented on July 29, 2024 1

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.

malinovsku avatar malinovsku commented on July 29, 2024 1

setting the progress color also works fine, an example on the screenshot where the parts are of a different shade
Снимок экрана 2023-10-12 в 15 12 09

from esphomatrixv2.

andrewjswan avatar andrewjswan commented on July 29, 2024

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.

andrewjswan avatar andrewjswan commented on July 29, 2024

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.

andrewjswan avatar andrewjswan commented on July 29, 2024

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.

malinovsku avatar malinovsku commented on July 29, 2024

@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.

andrewjswan avatar andrewjswan commented on July 29, 2024

@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.

andrewjswan avatar andrewjswan commented on July 29, 2024

Progress in MODE_ICON_PROGRESS screen:

  • 0 .. -100 - from Green to Red
  • 0 .. 100 - from Red to Green
    d612744

from esphomatrixv2.

andrewjswan avatar andrewjswan commented on July 29, 2024

2023,9,1 Released ...

from esphomatrixv2.

andrewjswan avatar andrewjswan commented on July 29, 2024

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.

andrewjswan avatar andrewjswan commented on July 29, 2024

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.

andrewjswan avatar andrewjswan commented on July 29, 2024

Complete... We can close. :)

from esphomatrixv2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.