-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implement more group_by options #833
base: dev
Are you sure you want to change the base?
Conversation
Does this work now? I was just looking for this and now sure how to use it. |
It needs to merged, but I use it on my instance already. The grouping isn't perfect for month and year, but works solidly for week. |
When is this expected to be released? This is just the thing I've been waiting for! 👍 |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi, Thanks a lot for your contribution! And my apologies for the slow review |
Displaying a sensor's state without displaying it's graph
1c180a8
to
e085d48
Compare
Hello, I have made the changes, thanks for the input. I'm not familiar with rebase and pushing afterwards, I hope I did it correctly. If not, let me know and I'll file a new PR with properly forked branches from dev. |
@blind-coder thanks for the changes! It looks like a few commits from master sneaked in though :) |
Hi Jonas,
I'm on a business trip this week and next. I'll chek it out afterwards.
Kind regards,
Benjamin
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While browsing around, I noticed a possible bug and took the liberty to review.
date.setHours(0, 0, 0); | ||
break; | ||
case 'week': | ||
date.setDate(date.getDate() - date.getDay() + 1); // First day of the week |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just flipped through the PRs here and noticed: should this not be the first day of next week at 0h00? See the date case below... The same applies to month and year.
@@ -488,6 +488,37 @@ state_map: | |||
label: Detected | |||
``` | |||
|
|||
#### Showing additional info on the card | |||
|
|||
![изображение](https://user-images.githubusercontent.com/71872483/170584118-ef826b60-dce3-42ec-a005-0f467616cd37.png) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since I added the other comment on the code. Here are three more:
- There seems to have sneaked in some non-English characters. Possibly from uploading the image?
- Should the image be part of the commit?
- Should the new grouping options be documented? If so, I'd suggest to also going on the caveat that month and year will not be 100% accurate, because they use fixed intervals.
Still an active issue, got it! Removing stale label. |
3 similar comments
Still an active issue, got it! Removing stale label. |
Still an active issue, got it! Removing stale label. |
Still an active issue, got it! Removing stale label. |
Implement group_by options week, month and year