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

Displaying two calendars in the standard calendar in one list

Scheduled Pinned Locked Moved Solved Troubleshooting
9 Posts 4 Posters 890 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.
  • K Offline
    Klinge
    last edited by Jan 17, 2024, 9:32 AM

    I would like to display two Google calendars in the default calendar. However, both calendar should be displayed in one list on the mirror.

    I try to realize it with the following config

                           module: "calendar",
                            header: "Termine",
                            position: "top_left",
                            config: {
                                    timeFormat: 'absolute',
                                    maximumEntries: 10,
                                    dateFormat: 'ddd DD MMM HH:mm',
                                    fullDayEventDateFormat: 'ddd DD MMM',
                                    showEnd: false,
                                    urgency: 0,
                                    getRelative: 0,
                                    calendars: [
                                            {
                                                    fetchInterval: 7 * 24 * 60 * 60 * 1000,
                                                    symbol: "calendar-check",
                                                    url: "https://calendar.google.com/calendar/ical/******/basic.ics"
    
                                            },
                                            {
                                                    fetchInterval: 7 * 24 * 60 * 60 * 1000,
                                                    symbol: "calendar-check",
                                                    url: "https://calendar.google.com/calendar/ical/******/basic.ics"
                                            },
                                    ]
                            }
                    },
    
    

    But when the MMM starts the module first shows the first configured URL and a few seconds later the module only shows the appointments from the second URL.

    But as I wrote I need the entries from both calendars in one list.

    Please can you help me.

    Thank you in advance.
    Lars

    B L 2 Replies Last reply Jan 17, 2024, 9:53 AM Reply Quote 0
    • B Offline
      bdream @Klinge
      last edited by Jan 17, 2024, 9:53 AM

      @Klinge I have a configuration as you but the fetchInterval:
      May it help butting this up to the config-part as:

      config: {
              fetchInterval: 7 * 24 * 60 * 60 * 1000,
      

      –
      cheers, bdream

      K 1 Reply Last reply Jan 17, 2024, 10:32 AM Reply Quote 0
      • L Offline
        lif @Klinge
        last edited by Jan 17, 2024, 10:25 AM

        @Klinge

        I use this to display 3 calendars in the same column

        {
        module: “calendar”,
        header: “Our Calendar”,
        position: “top_left”,
        config: {
        calendars: [
        {
        fetchInterval: 7 * 24 * 60 * 60 * 1000,
        symbol: “calendar-check”,
        url: ‘https://calendar.google.com/calendar/ical/en.uk%23holiday%40group.v.calendar.google.com/public/basic.ics’,
        },

        {
        color: ‘#FFFF00’,
        symbol: “calendar”,
        url: ‘https://calendar.google.com/calendar/ical/fr.french%23holiday%40group.v.calendar.google.com/public/basic.ics’,
        },
        {
        color: ‘#00FF00’,
        symbol: “calendar”,
        url: ‘https://calendar.google.com/calendar/ical/xxxx%40gmail.com/private-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/basic.ics’,

                                            },					
        			]
        		}
        	},
        
        1 Reply Last reply Reply Quote 0
        • K Offline
          Klinge @bdream
          last edited by Jan 17, 2024, 10:32 AM

          @bdream Thank you for you answer. Now I delete the second fetch line. So my config is

          module: "calendar",
                                  header: "Termine",
                                  position: "top_left",
                                  config: {
                                          timeFormat: 'absolute',
                                          maximumEntries: 10,
                                          dateFormat: 'ddd DD MMM HH:mm',
                                          fullDayEventDateFormat: 'ddd DD MMM',
                                          showEnd: false,
                                          urgency: 0,
                                          getRelative: 0,
                                          calendars: [
                                                  {
                                                          fetchInterval: 7 * 24 * 60 * 60 * 1000,
                                                          symbol: "calendar-check",
                                                          url: "https://calendar.google.com/calendar/ical/******/basic.ics"
          
                                                  },
                                                  {
                                                          symbol: "calendar-check",
                                                          url: "https://calendar.google.com/calendar/ical/******/basic.ics"
                                                  },
                                          ]
                                  }
                          },
          

          But now it’s getting really crazy. The mirror shows me an appointment at 12.20pm today as the first entry. That’s also correct. But after that it only shows me from both calendars all-day appointments. It no longer shows appointments that start at a certain time, for example at 1 pm.

          Why are only all-day appointments displayed?

          S 1 Reply Last reply Jan 17, 2024, 12:44 PM Reply Quote 0
          • S Away
            sdetweil @Klinge
            last edited by Jan 17, 2024, 12:44 PM

            @Klinge fall back to the prior calendar parser

            cd ~/MagicMirror
            npm install node-ical@0.16.1
            

            restart mm

            your config looks ok

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            K 1 Reply Last reply Jan 17, 2024, 1:27 PM Reply Quote 1
            • K Offline
              Klinge @sdetweil
              last edited by Jan 17, 2024, 1:27 PM

              @sdetweil That´s it. Now it works. Thank you for your help again.

              @bdream @lif Thank you for your support as well.

              L 1 Reply Last reply Jan 17, 2024, 8:32 PM Reply Quote 0
              • L Offline
                lif @Klinge
                last edited by Jan 17, 2024, 8:32 PM

                @Klinge

                I typed too soon, just after I posted that I applied a MagicMirror upgrade, now it doesn’t display my personal calendar.

                S L 2 Replies Last reply Jan 17, 2024, 9:37 PM Reply Quote 0
                • S Away
                  sdetweil @lif
                  last edited by Jan 17, 2024, 9:37 PM

                  @lif can you do this
                  https://forum.magicmirror.builders/post/114622

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • L Offline
                    lif @lif
                    last edited by Jan 17, 2024, 10:08 PM

                    @lif

                    Thanks, that worked.

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