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

MM-Calendar Doesn't Seem to Follow Some Config Options

Scheduled Pinned Locked Moved Solved Troubleshooting
8 Posts 3 Posters 1.5k Views 2 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.
  • E Offline
    ember1205
    last edited by Dec 11, 2019, 8:55 PM

    This is a new setup on my first MM, so it may not be related to the calendar at all. In the event that it is, here’s my setup:

    {
                            module: "calendar",
                            header: "Shared Calendar",
                            position: "top_left",
                            config: {
                                    calendars: [
                                            {
                                                    symbol: "calendar-check",
                                                    maximumEntries: 25,
                                                    wrapEvents: true,
                                                    fetchInterval: 900000,
                                                    fade: false,
                                                    fadePoint: 1,
                                                    url: "https://calendar.google.com/calendar/ical/<stripped for security>/basic.ics"                          }
                                                    /*url: "webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics"                                     }*/
                                    ]
                            }
                    },
    

    I have the following issues:

    • I do not appear to be getting more than the default ten entries
    • I say “appear” because the list of entries is fading at the bottom
    • I can’t tell any difference between the default fadePoint and the hard-coded one

    I know that these variables are supposed to override the global settings, but I don’t even know if (where?) those are coded if not directly into the code itself.

    Does anyone have any thoughts?

    1 Reply Last reply Reply Quote 0
    • B Offline
      broberg Project Sponsor
      last edited by broberg Dec 12, 2019, 6:38 PM Dec 12, 2019, 6:38 PM

      You have placed config options within the calendars array, that is why it uses the default options.

      {
                              module: "calendar",
                              header: "Shared Calendar",
                              position: "top_left",
                              config: {
                                                      maximumEntries: 25,
                                                      wrapEvents: true,
                                                      fetchInterval: 900000,
                                                      fade: false,
                                                      fadePoint: 1,
                                      calendars: [
                                              {
                                                      symbol: "calendar-check",
                                                      url: "https://calendar.google.com/calendar/ical//basic.ics"                          }
                                                      /*url: "webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics"                                     }*/
                                      ]
                              }
                      },
      
      E 1 Reply Last reply Dec 12, 2019, 6:48 PM Reply Quote 0
      • E Offline
        ember1205 @broberg
        last edited by Dec 12, 2019, 6:48 PM

        @broberg

        Thanks for the reply. While adjusting as you’ve mentioned does give me the expected result, I have to say that it seems counter-intuitive.

        Placing those settings OUTSIDE of the calendar definition seems to make them overrides for the defaults and would make them be the settings used for all calendars. Shouldn’t setting them per-calendar need to be done within the definition of the calendar itself?

        B 1 Reply Last reply Dec 12, 2019, 7:03 PM Reply Quote 0
        • B Offline
          broberg Project Sponsor @ember1205
          last edited by Dec 12, 2019, 7:03 PM

          @ember1205 yes, the config options are for the entire module not individual calendars.

          These are the options you can change for each calendar entry : https://github.com/MichMich/MagicMirror/tree/master/modules/default/calendar#calendar-configuration-options

          E 1 Reply Last reply Dec 12, 2019, 7:14 PM Reply Quote 0
          • E Offline
            ember1205 @broberg
            last edited by Dec 12, 2019, 7:14 PM

            @broberg

            Why do some of the more general config options throw errors stating that they are undefined? For example, I can’t set tableClass or timeFormat as the values I chose (xmall and absolute, respectively) throw errors and prohibit MM from starting. I have these defined in the general config section.

            S 1 Reply Last reply Dec 12, 2019, 7:25 PM Reply Quote 0
            • S Offline
              sdetweil @ember1205
              last edited by sdetweil Dec 12, 2019, 7:25 PM Dec 12, 2019, 7:25 PM

              @ember1205 all words to the right of the : in a setting need to be in quotes, and usually each line will end with a comma. Numbers and true/false do not need quotes

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              E 1 Reply Last reply Dec 12, 2019, 7:40 PM Reply Quote 0
              • E Offline
                ember1205 @sdetweil
                last edited by Dec 12, 2019, 7:40 PM

                @sdetweil

                I will try quoting them.

                It hadn’t occurred to me that “words” need to be quoted since true and false do not.

                1 Reply Last reply Reply Quote 0
                • E Offline
                  ember1205
                  last edited by Dec 12, 2019, 9:32 PM

                  Quoting the values corrected the issues I was having with them. I think I’m good with this now and appreciate the help.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  1 / 1
                  • First post
                    4/8
                    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