MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. XDmToter
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    X
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 4
    • Groups 0

    XDmToter

    @XDmToter

    0
    Reputation
    1
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    XDmToter Unfollow Follow

    Latest posts made by XDmToter

    • RE: MMM-CalendarExt3

      @MMRIZE said in MMM-CalendarExt3:

      @XDmToter
      That is not my fault.

      I understand that. I wasn’t saying it’s anything you need to fix. I was just saying that you could mention in your readme, under the “Compatible with randomBrainstormer/MMM-GoogleCalendar” section, that setting “broadcastEvents; true” in the MMM-GoogleCalendar config is also required. If you would like, I can fork your project, add this one line to the readme and submit a pull request. I just thought it would be easier for you to do it.

      posted in Utilities
      X
      XDmToter
    • RE: MMM-CalendarExt3

      @MMRIZE
      I found the issue.

      # grep broadcastEvents modules/MMM-GoogleCalendar/MMM-GoogleCalendar.js 
          broadcastEvents: false,
      
      # grep broadcastEvents modules/default/calendar/calendar.js 
      		broadcastEvents: true,
      

      broadcastEvents defaults to False in MMM-GoogleCalendar.

      There is no mention of this in your README.md You might consider adding that under your “Compatible with randomBrainstormer/MMM-GoogleCalendar” Section.

      posted in Utilities
      X
      XDmToter
    • RE: MMM-CalendarExt3

      @MMRIZE Thank you for your reply. As I understand it, in order to use an ICal URL from Google Calendar, you have to make your calendar Public. Using MMM-GoogleCalendar is Authenticated using an API Token, so your calendar does Not need to be public.

      I tried adding the “preProcessor” settings, but I still get a blank calendar. Does this get added to the “config” section, or the “module” section? I put it inside the config array.

              {
                  module: "MMM-CalendarExt3",
                  position: "bottom_bar",
                  title: "Family Calendar",
                  config: {
                      mode: "week",
                      instanceId: "basicCalendar",
                      calendarSet: ['famCal'],
                      preProcessor: (e) => {
                          if (e.start?.dateTime) {
                              e.startDate = new Date(e.start.dateTime).valueOf()
                          } else if (e.start?.date) {
                              e.startDate = new Date(`${e.start.date}T00:00:00`).valueOf()
                          }
       
                          if (e.end?.dateTime) {
                              e.endDate = new Date(e.end.dateTime).valueOf()
                          } else if (e.end?.date) {
                              e.endDate = new Date(`${e.end.date}T00:00:00`).valueOf()
                          }
       
                          e.title = e.summary
                          e.fullDayEvent = (e.start?.date) ? true : false
                          return e
                          }
                  }
              }
      
      posted in Utilities
      X
      XDmToter
    • RE: MMM-CalendarExt3

      I am having trouble integrating MMM-CalendarExt3 with MMM-GoogleCalendar.
      I’m not sure what else is required other than adding a “name” to the Google Calendar and then listing that in the “calendarSet” parameter in CalendarExt3.

      Can anyone point out what I am missing?

      Here is my config:

      {
                  module: 'MMM-GoogleCalendar',
                  header: "Family Calendar",
                  position: "top_left",
                  config: {
                      maximumEntries: 4,
                      broadcastPastEvents: true,
                      calendars: [
                        {
                          symbol: "calendar-week",
                          calendarID: "XXXXXXXXXXXXXXXXXXXX@group.calendar.google.com",
                          name: 'famCal',
                        },
                      ],
                  }
              },
              {
                  module: "MMM-CalendarExt3",
                  position: "bottom_bar",
                  title: "Family Calendar",
                  config: {
                      mode: "week",
                      instanceId: "basicCalendar",
                      calendarSet: ['famCal'],
                  }
              },
      

      I see the List view from MMM-GoogleCalendar, but I just get a blank calendar from MMM-CalendarExt3

      MM-Blank-Calendar.png

      posted in Utilities
      X
      XDmToter