kalkih / mini-graph-card

Minimalistic graph card for Home Assistant Lovelace UI
MIT License
2.87k stars 231 forks source link

[FR] Allow for "today" date range (or "this week" / "this month" and so on) #1013

Open erikgeurts opened 9 months ago

erikgeurts commented 9 months ago

I'd like to propose adding the ability to draw a graph with the time range specified as "today" (or "this week" and so on) so that it automatically starts at midnight of the current day and uses all available entity state values for the current day only.

The x-axis could either be the full 24 hours (which means it will gradually fill up the full day while time progresses), or the right hand of the x-axis could be the current time (i.e. timestamp of the most recent available value).

In a perfect world, I'd love to be able to also specify that the previous day's/week's/month's values are drawn on the same chart but in a bit less prominent color/line thickness so that I can easily compare today's measurements with yesterday's.

Thanks for considering my idea.

ildar170975 commented 9 months ago

Since we have limited possibilities to re-design the card, we have to look for workarounds. Here is a solution for "today" graph: https://github.com/kalkih/mini-graph-card/issues/726#issuecomment-1603123565

erikgeurts commented 8 months ago

For my understanding, when you say "limited possibilities", are you referring to technical restrictions inherent to how the card work or what can or can't be achieved in Home Assistant? Or is this related to having limited time/budget to work on extending this card?

ildar170975 commented 8 months ago

limited time/budget

This work is done by people in their spare time. Some of them cannot spend for this as much as needed. You are very welcome to collaborate.

erikgeurts commented 8 months ago

Personally, I don't have the skills to develop this myself. I used to be a programmer, but that was 30 years ago in a very different world. I understand open source development very well, I'm one of the people behind the Revive Adserver project at https://github.com/revive-adserver/revive-adserver . How can I contribute to your project other than coding?