-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Calendar: end date missing for multi day events (like holidays) (followup to #2529) #2629
Comments
yes, you can set it once for ALL calendars (above the section calendars:) all overrides individual |
@sdetweil ok, good to know, that ALL overrides individual, I'd have expected the opposite behaviour. So you agree, my config should show an end date? It has showEnd = true in ALL and I added it in calender too for this next test It seems, the parameter does only shows end TIME, but not end day of multi day events (like holidays). |
as I understand it, showEnd is for multi-day events only. showOngoing is for multi-day that has started but not ended. I spent a lot of time working on getting the data right. but not the presentation of the data. |
I added (hidden?) parameter showOngoing = true but no change. |
what do you mean by 'hidden'? its in the doc. and its showOngoing:true, right? download the ics (put the calendar url in a browser) and edit the ics file (its just text) show me the BEGIN:VEVENT thru END:VEVENT for the holiday |
BTW the documentation style is module parms 1st (override any following), and calendar parms second, same for RSS feeds .. |
The docs I'm looking in is this https://docs.magicmirror.builders/modules/calendar.html In the ics I do not find a RRULE, because it's not repeating. It is our summer holidays lasting 6 weeks and I'd like to see how long they last.
|
thanks.. very helpful... I created a matching one with an RRULE.. but the net is, I think there is a bug , the code (in calendar.js)
if u add an 'else' in between
then u get the start/end as u expect |
@sdetweil Yes! You found it. This correction in calendar.js and the config showEnd: true results in exactly in what I was looking for Thank you a lot. |
great to hear this got resolved thx a lot @sdetweil will you create a PR for your fix? |
@waldmeisterx: If I correctly understood this issue and given your screenshot, the name of the weekday on which the holidays start, is missing isn't it ? Can you tell me which icon and color code this is ? I really like it ! |
@jupadin the cal entry shown does not show THE event start date, but TODAY thru the end. we don't know WHEN it started in the past.. could be yesterday, or in this case last month. you could change the fulldateFormat (check the spelling) to include the day I suppose.. |
Ahhh, got it. |
@jupadin: You can find my configures symbol and color in the first post, it is
There you also see the set configured formats @sdetweil mentioned too.
But I think it should be dateEndFormat according to https://docs.magicmirror.builders/modules/calendar.html |
the code actually uses
dateFormat for the startDate |
@sdetweil with dateFormat set to |
Just another question, maybe worth another issue or discussion... The following use case: Since the most of the options can only be set globally, such a use case is not possible - or do I (again) understood something wrong ? |
you can set up more than one calender, each with its own settings |
Yes, but given the documentation, it is only possible to set the time format (absolute, relative) for all of the urls of the calendar and not for each of the urls... |
No, i think you are right. You should address it in a new issue (feature request). |
The code correction (in calendar.js) mentiened by @sdetweil was not considered in the last release 2.18.0? |
hm. I added the else in one of the other fixes, did I get it wrong? well then, my screw up. I didn't add that file to the pull request commit. my fault. I thought I had |
@sdetweil |
This issue 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. |
fixed in 2.19.0 |
Hello together. I had the same problems as waldmeisterx but did find a solution without changing the code of calendar.js. |
Where did you leave a comment? |
Platform: Raspberry Pi 3, current OS
uname -r: 5.10.52-v7+
Node Version: what is this? how do I get this info?
MagicMirror Version: 2.16.0 (problem occured after upgrading from 2.13.0, problem still existed in 2.15.0).
Description: I show holidays with start and end dates. The shown config worked well with 2.13.0, after upgrading to 2.15.0/2.16.0 the end date disappeared. Now, only the current day of the current holiday is shown.
Steps to Reproduce: With my config in MM 2.16.0
Expected Results: start (or current) date AND end date "Sa 10. Apr. - Fr. 16. Apr."
Actual Results: only start (or current) date "Sa 10. Apr."
Configuration:
Additional Notes:
The option "showEnd" is shown two times in the Calenders doku with similiar descritions!
The text was updated successfully, but these errors were encountered: