Open nealeydee opened 1 year ago
Hi, the code to update would be here.
I currently only support day and month.
The easiest solution to unblock you would be to have something like this to use the day of the week and have a lookup table to get the name:
DAY_NAMES = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
day_num = evt_datetime.getDay();
day_name = DAY_NAMES[day_num]
After which you can replace/add/update as needed the whole date string to display what you'd like.
And I'll try to send a commit in the next couple of weeks to add a configuration option to display the day name to make this available to everyone.
Thank you for this code. Working well in my HADashboard.
Could you please point me in the right direction as to how I could modify the code to be able to display the Day Of Week Name (eg Monday, Tuesday) etc?
I managed to add a line to show the day number (0 for Sunday, 1 for Monday etc - unless it was showing 0 for today etc.) but it is beyond my skills to get the widget to display the day name. This is not an issue but a feature request.
Any pointers would be greatly appreciated. Thanks.