• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Calendar event dates enhancement

Scheduled Pinned Locked Moved Development
14 Posts 4 Posters 11.9k Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    KirAsh4 Moderator
    last edited by May 3, 2016, 5:16 PM

    Hey @djsunrise19, since you’re here now, would you mind commenting on these enhancements?

    A Life? Cool! Where can I download one of those from?

    D 1 Reply Last reply May 3, 2016, 5:48 PM Reply Quote 0
    • D Offline
      djsunrise19 @KirAsh4
      last edited by May 3, 2016, 5:48 PM

      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!

      1 Reply Last reply Reply Quote 0
      • M Offline
        MichMich Admin
        last edited by May 3, 2016, 6:16 PM

        Any pull request in making this work would be welcome.

        1 Reply Last reply Reply Quote 0
        • K Offline
          KirAsh4 Moderator
          last edited by May 3, 2016, 6:41 PM

          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.

          A Life? Cool! Where can I download one of those from?

          1 Reply Last reply Reply Quote 1
          • K Offline
            KirAsh4 Moderator
            last edited by May 4, 2016, 9:24 PM

            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:
            0_1462396397179_calsorting.png

            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.
            0_1462397038218_calsorting2.png

            A Life? Cool! Where can I download one of those from?

            1 Reply Last reply Reply Quote 0
            • M Offline
              mikmonken
              last edited by paviro Jul 14, 2016, 6:00 PM Jul 14, 2016, 12:56 PM

              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 two one 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

              1. 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.

              0_1468500641663_IMG_5940.jpg

              Thanks M

              1 Reply Last reply Reply Quote 0
              • K Offline
                KirAsh4 Moderator
                last edited by Jul 14, 2016, 3:24 PM

                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.

                A Life? Cool! Where can I download one of those from?

                1 Reply Last reply Reply Quote 0
                • M Offline
                  mikmonken
                  last edited by Jul 14, 2016, 3:31 PM

                  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?

                  1 Reply Last reply Reply Quote 0
                  • K Offline
                    KirAsh4 Moderator
                    last edited by Jul 14, 2016, 3:56 PM

                    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.

                    A Life? Cool! Where can I download one of those from?

                    1 Reply Last reply Reply Quote 0
                    • 1
                    • 2
                    • 1 / 2
                    • First post
                      Last post
                    Enjoying MagicMirror? Please consider a donation!
                    MagicMirror created by Michael Teeuw.
                    Forum managed by Sam, technical setup by Karsten.
                    This forum is using NodeBB as its core | Contributors
                    Contact | Privacy Policy