• 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 modification

Scheduled Pinned Locked Moved Tutorials
35 Posts 15 Posters 40.1k Views 12 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.
  • M Offline
    MichMich Admin
    last edited by Jun 4, 2016, 6:34 PM

    @aarinsingh Could you copy paste your config including the maximumNumberOfDays (so I can try to find what you’re doing wrong). Don’t forget to remove sensitive data.

    1 Reply Last reply Reply Quote 0
    • B Offline
      brad
      last edited by paviro Jun 6, 2016, 1:00 PM Jun 6, 2016, 12:59 PM

      Here is my info @aarinsingh , it doesn’t crash but it is also not limiting the number of days. From what I can see at a quick glance is that this was using a method that may have been replaced in the load process for this module, because it seems to only be using the default for this setting. I may follow to code later and see how this is loading and why my setting is being ignored.

      {
      			module: 'calendar',
      			header: 'Events',
      			position: 'top_left',
      			maximumNumberOfDays: 7,
      			config: {
      				calendars: [
      					{
      						symbol: 'calendar-check-o ',
      						url: 'https://calendar.google.com/calendar/ical/your-info'
      					}
      				]
      			}
      		},
      

      Note from admin: Please use Markdown on code snippets!

      1 Reply Last reply Reply Quote 0
      • W Offline
        Wilco89
        last edited by Jun 6, 2016, 1:01 PM

        Put it after config: { and it will work

        1 Reply Last reply Reply Quote 0
        • M Offline
          MichMich Admin
          last edited by Jun 6, 2016, 1:01 PM

          maximumNumberOfDays should be part of the config object:

          {
          			module: 'calendar',
          			header: 'Events',
          			position: 'top_left',
          			config: {
                                          maximumNumberOfDays: 7,
          				calendars: [
          					{
          						symbol: 'calendar-check-o ',
          						url: 'https://calendar.google.com/calendar/ical/your-info'
          					}
          				]
          			}
          		},
          
          1 Reply Last reply Reply Quote 0
          • B Offline
            brad
            last edited by Jun 6, 2016, 1:16 PM

            That makes perfect sense. :) sorry didn’t catch that…

            1 Reply Last reply Reply Quote 0
            • M Offline
              MagicCrumps1 @KirAsh4
              last edited by Jun 7, 2016, 5:03 AM

              @KirAsh4 Weird. I had to make mine public or else the dashboard wont be able to display saying “No Events”

              K 1 Reply Last reply Jun 7, 2016, 5:05 AM Reply Quote 0
              • K Offline
                KirAsh4 Moderator @MagicCrumps1
                last edited by Jun 7, 2016, 5:05 AM

                @MagicCrumps1, perhaps you were using the wrong URL? There’s both a public and a private one. If you use the public URL, then you must also set your calendar to public view. But the private URL has the authentication key in it. No need to make the calendar public.

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

                M 1 Reply Last reply Jun 7, 2016, 5:09 AM Reply Quote 1
                • M Offline
                  MagicCrumps1 @KirAsh4
                  last edited by Jun 7, 2016, 5:09 AM

                  @KirAsh4 Of course that worked. Thanks for the silver bullet

                  1 Reply Last reply Reply Quote 0
                  • 0 Offline
                    00conman
                    last edited by Jun 7, 2016, 1:56 PM

                    Hey guys sorry I’ve been away so I haven’t seen all these posts but I would recommend putting the calendar in monthly mode so events to disappear prematurely.

                    K 1 Reply Last reply Jun 7, 2016, 4:06 PM Reply Quote -1
                    • K Offline
                      KirAsh4 Moderator @00conman
                      last edited by Jun 7, 2016, 4:06 PM

                      @00conman, care to explain what you mean?

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

                      0 1 Reply Last reply Jun 7, 2016, 5:10 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 2 / 4
                      2 / 4
                      • First post
                        16/35
                        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