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 config

    Scheduled Pinned Locked Moved Solved Troubleshooting
    14 Posts 5 Posters 14.3k Views 4 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.
    • ? Offline
      A Former User
      last edited by

      /* Magic Mirror Config Sample
       *
       * By Michael Teeuw http://michaelteeuw.nl
       * MIT Licensed.
       */
      
      var config = {
              port: 8080,
              ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"],
      
              language: 'en',
              timeFormat: 12,
              units: 'imperial',
      
              modules: [
                      {
                              module: 'alert',
                      },
                      {
                              module: "updatenotification",
                              position: "top_bar"
                      },
                      {
                              module: 'clock',
                              position: 'top_left'
                                      },
                      {
                              module: 'calendar',
                              header: 'Calender',
                              position: 'top_left',
                              config: {
                                      calendars: [
                                              {
                                                      symbol: 'calendar-check-o ',
                                                      url: 'webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics'
                                              },
                                              {
                                                      url: 'https://calendar.google.com/calendar/ical/ME%40gmail.com/public/basic.ics'
                                              },
                                              {
                                                      url: 'https://calendar.google.com/calendar/ical/WIFE%40gmail.com/public/basic.ics'
                                              },
                                      ],
                              }
                      }
                      {
                              module: 'compliments',
                              position: 'lower_third'
                      },
                      {
                              module: 'MMM-WunderGround',
                              position: 'top_right',
                              config: {
                                      apikey: 'MYKEY',
                                      pws: 'pws:KMOOFALL59',
                                      hourly: '1',
                                      fctext: '1',
                                      fcdaycount: "5",
                                      fcdaystart: "0",
                                      hourlyinterval: "3",
                                      hourlycount: "2",
                                      alerttime: 10000,
                                      alerttruncatestring: "english:",
                              roundTmpDecs: 1,
                              UseCardinals: 0,
                              layout: "horizontal",
                              sysstat: 0
                              }
                      },
                      {
                              module: 'newsfeed',
                              position: 'bottom_bar',
                              config: {
                                      feeds: [
                                              {
                                                      title: "New York Times",
                                                      url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
                                              }
                                      ],
                                      showSourceTitle: true,
                                      showPublishDate: true
                              }
                     },
              ]
      
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== 'undefined') {module.exports = config;}
      
      

      Also modified the API to hide it in the weather section, but it’s there. JShint gave me 4 errors, but I was going off that link from the other question for syntax, so I’m not 100% what needs to be removed or added.
      Four warnings
      46 Expected ‘]’ to match ‘[’ from line 15 and instead saw ‘{’.
      47 Expected ‘}’ to match ‘{’ from line 7 and instead saw ‘module’.
      47 Missing semicolon.
      47 Unrecoverable syntax error. (52% scanned).

      in_a_daysI 1 Reply Last reply Reply Quote 0
      • in_a_daysI Offline
        in_a_days @Guest
        last edited by in_a_days

        @JbeesonMagic16

        add a comma here:

                                            {
                                                    url: 'https://calendar.google.com/calendar/ical/WIFE%40gmail.com/public/basic.ics'
                                            },
                                    ],
                            }
                    }
                    {
                            module: 'compliments',
                            position: 'lower_third'
        

        so it looks like this

                                            {
                                                    url: 'https://calendar.google.com/calendar/ical/WIFE%40gmail.com/public/basic.ics'
                                            },
                                    ],
                            }
                    },
                    {
                            module: 'compliments',
                            position: 'lower_third'
        

        See if that solves it.

        What ship would bear me ever back across so wide a Sea?

        1 Reply Last reply Reply Quote 2
        • mochmanM Offline
          mochman Module Developer
          last edited by

          @JbeesonMagic16 Yeah, @in_a_days recommendation fixes the problems in the jshint. Hopefully that works for you.

          ? 1 Reply Last reply Reply Quote 2
          • ? Offline
            A Former User @mochman
            last edited by

            Nice, that does get it working again, but no go on the calendars actually showing up. I found a private link to google calendars ical, which makes sense since I’m not sharing my calendar with the public. So I used that link, and they work now. Thanks to all of you for your help!!

            Mykle1M 1 Reply Last reply Reply Quote 1
            • Mykle1M Offline
              Mykle1 Project Sponsor Module Developer @Guest
              last edited by

              @JbeesonMagic16

              I almost posted the same exact problem but I found this page (thread?) (Whatever), but due to the help you received and your last comment about the private link to google calendars ical, I was able to resolve the issue without asking the question. This place is awesome. :-)

              Up votes for everyone!

              Create a working config
              How to add modules

              1 Reply Last reply Reply Quote 1
              • 1
              • 2
              • 2 / 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