Read the statement by Michael Teeuw here.
Calendar event dates enhancement
-
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.
-
yeah i’ve tried that, it just doesnt want to shake the saturday at 12:00am, I wonder if it’s got something to do with it being an ical from wunderlist?
-
Shouldn’t matter where it’s coming from. It was a guess on my part. So we’ll have to add an option to turn off the time display.