• 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 not updating

Scheduled Pinned Locked Moved Solved Troubleshooting
5 Posts 2 Posters 2.0k 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.
  • F Offline
    FreelanceMKE
    last edited by Jun 24, 2019, 10:47 PM

    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 Jun 24, 2019, 11:17 PM Reply Quote 0
    • S Offline
      sdetweil @FreelanceMKE
      last edited by sdetweil Jun 24, 2019, 11:20 PM Jun 24, 2019, 11:17 PM

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

      Only text strings need quotes

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      F 1 Reply Last reply Jun 25, 2019, 2:21 AM Reply Quote 0
      • F Offline
        FreelanceMKE @sdetweil
        last edited by Jun 25, 2019, 2:21 AM

        @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 Jun 25, 2019, 3:18 AM Reply Quote 0
        • S Offline
          sdetweil @FreelanceMKE
          last edited by Jun 25, 2019, 3:18 AM

          @FreelanceMKE u might have selected the default…

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • F Offline
            FreelanceMKE
            last edited by Jun 25, 2019, 4:46 AM

            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
            1 / 1
            • First post
              3/5
              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