Read the statement by Michael Teeuw here.
Calendar event dates enhancement
-
Adding my idea for an
'urgency'
threshold for events, this is what it would look like: -
I agree that there are many (configurable) possibilities on the way event dates are displayed. And what I’ve learned in the past two years, is that there isn’t one way everybody thinks it works like it should … 😂
More importantly, the Calendar module turns out to be the most difficult module to make bug free, since so many differences in the calendar feed appear to mess up the date calculation. Most of the current bug reports are about the calendar module. So it might be a good Idea to first work out these bugs, before we make the calendar module even more difficult.
Any help with regards to bug solving (in the form of pull requests) are more than welcome!
-
Correct, there will never be that one perfect solution for everyone, however that’s what I like about adding in configurable options so each person can do it their own way.
As for the problems, my take on that is that one will always have bugs crop up. Technology changes, web sites will rewrite their code that we might rely on, there won’t ever be a time where you write something once and never ever change it again. Eventually Time will catch up and something has changed, forcing you to do the same.
My suggestion is to do what’s possible, fix what’s easily fixable (including some of the easy requests), release the thing. Let future bugs be exactly that: future bugs. Address them as they come up.
-
Hey @djsunrise19, since you’re here now, would you mind commenting on these enhancements?
-
Hi @KirAsh4 , yes, since a frew hours, I’m here ;). I like your suggestion very much (
'absolute'
,'relative'
and'urgency'
. In my opinion the'relative'
format was the way how it was designed on the MM1! -
Any pull request in making this work would be welcome.
-
Yep, when I’m done cleaning it up. I have this thing against repeating blocks of code, which I had to do here, once for an all day event and again for a timed one. So let me rewrite it first and clean it up.
-
This isn’t a bug per se, I just happen to notice it. So my setup consists of an rPi-3 running MM2 on a screen that sits on my desk, next to my main monitor pair (I actually have 5 monitors on my desk if you count the laptop as well). Anyway, I don’t generally touch the main MM2 display on the rPi unless I have to. Now on my main system, I run MM2 in a browser by hitting the rPi’s MM 2port. This allows me to make changes to the code, reload it in the browser, and then compare the output from one screen to the other (on the rPi which has not been reloaded with the changes yet.) This works great …
Well, today this caught my attention:
Both those birthdays happen on that day (in fact, there are three of them.) So I made a change in my config to show more events so I can see all three birthdates. And for some reason, the sorting is different on the rPi versus the remote browser window.
Please note, this isn’t a bug specifically, as all the data is there, and nothing’s getting mangled. This is purely a sorting thing between how Javascript runs on an rPi and how it runs on a different platform. On the rPi it’s in reverse order than what is displayed on my Windows machine. I just thought that was kinda interesting.
-
hopefully not bad form to resurrect this thread as i think it’s appropriate, although it does expand a little bit. (and i think i’ve used snippets correctly too!!)
I have used the following code for two calendar’s that i want to have separate headers for
{ module: 'calendar', header: 'Mike Work', position: 'bottom_right', config: { maximumEntries: '8', maximumNumberOfDays: '7', timeFormat: 'absolute', urgency: '3', calendars: [ { symbol: 'calendar-check-o ', url:'https://calendar.google.com/calendar/ical/blahblah/basic.ics' }, ] } }, { module: 'calendar', header: 'Family', position: 'bottom_left', config: { maximumEntries: '8', maximumNumberOfDays: '14', timeFormat: 'absolute', urgency: '1', calendars: [ { symbol: 'calendar-check-o ', url:'https://a.wunderlist.com/api/v1/ical/blahblah.ics' } ] } },
SO i have two nearly identical calendars but i want one bottom left and one bottom right.
I have
twoone issues as you can see from the picture below.1. I can’t seem to work out how to get urgency to work i realise from now 48 hours would be Huwie’s party, but actually i’d prefer it to say 2 days, i assumed that by changing agency to 1 that would mean anything not happening in 24 hours would be 2 days. (i’m not sure urgency is working at all as nothing has a date on it despite it being set up correctly (i think)ignore me i’m an idiot that can’t follow instructions- it overlays over itself. now i realise that this is because it’s writing a time alongside the day.
Is there anyway of getting my calendar in MM2, to ignore the time element of the calendar input, i’m very much on the beginner learning journey of this and think i’ve found the file i would need to amend, in modules/default but i actually have no idea what i would need the change?
I know the obvious change to make would be to amend the layout but i want to leave some blank space so we can see ourself in the mirror, the other curve ball is its using wunderlist to create a calendar which is why the times aren’t right.
Thanks M
-
There’s no mechanism in place to turn off the time displayed, no. Have you tried setting the calendar to display the absolute time, instead of relative and turn off urgency? If memory serves me, that will just put a date for the event. I think.