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.

    Google Calendar

    Scheduled Pinned Locked Moved Solved Troubleshooting
    17 Posts 3 Posters 3.5k 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.
    • S Offline
      sdetweil @louise
      last edited by sdetweil

      @louise also you were missing a close brace after the url definition, which needs quotes

      the config.js rules

      the thing to the left of : does not need quotes
      the thing to the RIGHT of : does NOT need quotes IF it is trye or false, or a number 10, 123.4567… or { or [
      otherwise if the thing to the right of contains letter (http://… fred, 124somefile) then it must be enclosed in quotes,
      single of double doesn’t matter, long as both ends are the same

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      L 1 Reply Last reply Reply Quote 0
      • L Offline
        louise @sdetweil
        last edited by louise

        @sdetweil pm2
        I copied the sample calendar module, it works. Then the ONLY thing I changed is the google link, didn’t touch any of the brackets or commas or quotations etc. Still didn’t work. Don’t get it, it worked yesterday.

        The weather current and forecast work as does the clock, just not the calendar.

        Yesterday, the clock and weather didn’t work but the calendar did. I copied from my calendar bak file in the config.js file and it doesn’t work.

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @louise
          last edited by

          @louise what does “doesn’t” work mean

          cal shows no events?
          or MM shows black screen?

          also, still waiting for the messages from npm start time
          you should see something like this (your url of course)

           Create new calendarfetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000
          

          and

          Calendar-Fetcher: Broadcasting 10 events.
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          L 1 Reply Last reply Reply Quote 0
          • L Offline
            louise @sdetweil
            last edited by sdetweil

            @sdetweil
            No events showed up. npm start time is the same as it was. No I never saw the message, but I was wasn’t looking.

            With the US Holidays, that comes up. When I put in the google calendar info I get the npm run config:check which says the json can’t parse

            S 2 Replies Last reply Reply Quote 0
            • S Offline
              sdetweil @louise
              last edited by

              @louise show the messages,.,

              npm start >somefile.txt
              wait til no events
              ctrl-c

              then u can edit somefile.txt to look at the messages emitted by startup

              search for ‘fetcher’

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @louise
                last edited by sdetweil

                @louise
                and did you put the quotes around it as i mentioned before, and be careful, the default line has }
                way out at the end… don’t delete that…

                the npm run will tell you the line where it detect the problem, but the line that CAUSED the problem is usually the line before

                on your prior post of the config, I noticed a missing } as well as the quotes around the URL…

                see your prior post, which I edited

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                L 1 Reply Last reply Reply Quote 0
                • L Offline
                  louise @sdetweil
                  last edited by

                  @sdetweil Yes, I made sure the quotes were there. Also, like I said I was VERY careful not to mess with anything outside the quotes.

                  Not sure on the pm start >somefile.txt
                  wait til no events
                  ctrl-c

                  is it pm start>somefile.txt in the terminal window?

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @louise
                    last edited by

                    @louise yes, everything is in the terminal window

                    all commands are in the terminal window

                    again, copy paste the { to } of the calendar module config from the failing config.js and the error message from the cconfig:check
                    (and junk up the actual url text so its not valid)

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      MMRIZE
                      last edited by

                      Maybe it could be another reason;

                      Confirm whether your calendar is public
                      74248334-bb3a-4a43-848d-148929040fd3-image.png
                      Unless you check this, your ical URL won’t be accessed. Try your URL in the browser. If it shows 404 error, this might be the reason.

                      L 1 Reply Last reply Reply Quote 0
                      • L Offline
                        louise @MMRIZE
                        last edited by

                        @mmrize Yes it is public. It does seem to work now.

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