Fixed weekly report week number calculation to match ISO 8601 week definition#80
Fixed weekly report week number calculation to match ISO 8601 week definition#80rsiv wants to merge 1 commit intommcc-xx:mainfrom
Conversation
…finition January 1st belongs to the last week of the previous year if it falls on Friday, Saturday or Sunday This caused an incorrect week in the date selector and showed an empty report for the next week
Can you share any details on how you accomplished that? I'd love to do the same thing. I have BirdCage connected to my HomeAssistant via MMQT but not really sure what I can do with that incoming data. |
|
@Nelluk with MQTT you can send a notification each time a bird is detected, but that resulted in too much noise. So I added a command line sensor that gets the daily report from BirdCAGE API. This could be done with a rest_sensor instead, but that would require some changes to the json structure in the API. Next, I have an automation that sends a report every evening at 10 pm: The date in the title requires this sensor, you can just remove it instead: Here is a sample report. Pretty sure it's too early for Baltimore Oriole and some others here, I'm still tuning the confidence level. |
January 1st belongs to the last week of the previous year if it falls on Friday, Saturday or Sunday.
This caused an incorrect week in the date selector and showed an empty report for the next week.
Big thanks for this project!
I've got an automation set up to send out a report every evening listing all the bird species identified, and it's been a real hit.