MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    SOLVED Calendar not updating

    Troubleshooting
    2
    5
    1033
    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.
    • F
      FreelanceMKE last edited by

      New to coding so I’m sure I’m doing something wrong, but can someone please help me. I have the calendar module up and running with an iCloud calendar, but I cannot get it to update with the fetchInterval configuration. I also cannot get it to hide events that have already started with the hideOngoing and I also can’t get it to show the end times of events with the showEnd. Any advice would be appreciated. here is my code; it’s basically the default stuff with just the config options I wanted put into it. In this example I have the fetchInterval set to to 30 seconds just to test. When I add a new event to the calendar or delete one it doesn’t ever update. I have left it run for hours and it still does not update. Even the events that say something like “ends in xxx minutes” never changes. The only time I can ever get the calendar to update is if I quit MagicMirror and reload it.

      {
      			module: "calendar",
      			header: "Upcoming Events",
      			position: "top_left",
      			config: {
      				calendars: [
      					{
      						maximumNumberOfDays: "3",	
      						symbol: "calendar-check",
      						fetchInterval: "30000",	
      						hideOngoing: "true",
      						showEnd: "false",
      						url: "MY ICLOUD WEB CAL URL"
      					}
      				]
      			}
      		},
      
      S 1 Reply Last reply Reply Quote 0
      • S
        sdetweil @FreelanceMKE last edited by sdetweil

        @FreelanceMKE true and false should not be in quotes, also fetchInterval and maximumNumberOfDays.

        Only text strings need quotes

        Sam

        Create a working config
        How to add modules

        F 1 Reply Last reply Reply Quote 0
        • F
          FreelanceMKE @sdetweil last edited by

          @sdetweil said in Calendar not updating:

          @FreelanceMKE true and false should not be in quotes, also fetchInterval and maximumNumberOfDays.

          Only text strings need quotes

          Thank you for the info I’ll give that a try! The max number of days does work if it’s in quotes so since I’m just learning. Is there a reason why it would work in quotes even though it shouldn’t be in quotes?

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

            @FreelanceMKE u might have selected the default…

            Sam

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • F
              FreelanceMKE last edited by

              So… I don’t know for sure but even though in my testing I was telling it to update every 1 minute, just to see if it works, I think maybe part of the problem is how frequently apple updates the information as well. I have gotten the calendar to update but it’s at 5 minute intervals. Which in the long run will be fine as I don’t need it to update that often anyways. I appreciate the help everyone.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy