MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Display monthly calendar and entries

    Troubleshooting
    4
    19
    1155
    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.
    • C
      CheapDad last edited by

      In my MM, I’d like to display a current monthly calendar and then the entries below. I added the “calendar monthly” module but it does not display. Here’s my code"

      {
              module: "calendar",
              header: "US Holidays",
              position: "top_left",
              config: {
                maximumEntries: 6,
                maximumNumberOfDays: 90,
                limitDays: 0,
                displaySymbol: true,
                defaultSymbol: "calendar",
                maxTitleLength: 25,
                maxLocationTitleLength: 25,
                maxTitleLines: 3,
                maxEventTitleLines: 3,
                fetchInterval: 300000,
                animationSpeed: 2000,
                fade: true,
                urgency: 7,
                timeFormat: "relative",
                dateFormat: "MMM Do",
                dateEndFormat: "LT",
                fullDayEventDateFormat: "MMM Do",
                getRelative: 6,
                fadePoint: 0.25,
                tableClass: "small",
                calendars: [
                  {
                    symbol: "calendar-check",
                    url: "webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics"
                  }
                ],
                titleReplace: {
                  "De verjaardag van ": "",
                  "'s birthday": ""
                },
                locationTitleReplace: {
                  "street ": ""
                },
                symbol: 'birthday-cake',
                url: 'http://localhost:8080/MMM-iCloud-Client/birthdays',
                broadcastEvents: true,
                showLocation: false,
                displayRepeatingCountTitle: false,
                wrapEvents: false,
                wrapLocationEvents: false,
                showEnd: false,
                hidePrivate: false,
                hideOngoing: false,
                hideTime: false,
                colored: false,
                coloredSymbolOnly: false,
                sliceMultiDayEvents: false,
                broadcastPastEvents: false,
                nextDaysRelative: false,
                selfSignedCert: false,
                customEvents: [],
                excludedEvents: []
              },
              order: "3"
            },
            {
              module: "calendar-monthly",
              order: "2",
              position: "top_left",
              config: {
                initialLoadDelay: 0,
                fadeSpeed: 2,
                showHeader: true,
                cssStyle: "block",
                tableClass: "small",
                updateDelay: 5,
                debugging: false
              },
              disabled: false
            },
      

      #2, I added this code, but can’t remember what it’s for and it’s not in my language:

                titleReplace: {
                  "De verjaardag van ": "",
                  "'s birthday": ""
                },
                locationTitleReplace: {
                  "street ": ""
                },
      

      Can anyone give some insight into what it is/does?

      Lastly, I’ve reviewed several of threads on adding calendars and, frankly, I’m confused. In the “events” portion of the default calendar, I’d like to display the contents of an Iphone (ical?) calendar and a calendar that would populate from a website. Both would obviously need a username/password to access. Could someone please provide me an example of config lines to do so?

      CheapDad

      1 Reply Last reply Reply Quote 0
      • C
        CheapDad last edited by

        @cheapdad said in Display monthly calendar and entries:

                {
                  symbol: "calendar-check",
                  url: "webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics"
                }
        

        By way of update, I’ve continued to work on this and think I’ve figured out that if I change the above URL to the one I want to populate from a website, it solves my problem. I still need to figure out how to add the second Iphone calendar and the monthly.

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

          @cheapdad adding a second calendar is replicate that block

          // list of calendars
          calendars: [
            // calendar 1
             {
              ...
              url:...
              },
           // calendar 2
              {
              ...
              url:...
              }
          ]  // end of list of calendars
          

          Screenshot at 2021-06-06 19-03-47.png

          in mmm-config, just hit the plus button under calendars

          Screenshot at 2021-06-06 19-04-00.png

          the titlereplace is an entry editing tool.
          replace the string on the left w the string in the right in the event title

          can’t help with monthly, but its a seaprate module, and will require a whole new entry in config,
          which u had in the 1st paste

          but like all other modules, look in the two logs, and check for a debug option on the module

          Sam

          Create a working config
          How to add modules

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

            @cheapdad populate from a website… yes, google is a website.

            the url needs to download an ICS file, which is what the calendar module reads to get the events

            as for calendar-monthly

            https://github.com/KirAsh4/calendar_monthly

            that one appears JUST to draw the rectangular calendar box. no actual entries

            Sam

            Create a working config
            How to add modules

            C 1 Reply Last reply Reply Quote 0
            • C
              CheapDad @sdetweil last edited by

              @sdetweil said in Display monthly calendar and entries:

              @cheapdad populate from a website… yes, google is a website.

              the url needs to download an ICS file, which is what the calendar module reads to get the events

              as for calendar-monthly

              https://github.com/KirAsh4/calendar_monthly

              that one appears JUST to draw the rectangular calendar box. no actual entries

              That’s interesting because I thought I had it working in a long lost iteration of my config.js. All I’m looking for is the current month’s calendar, not any entries, i.e., the 4th is a thursday, etc. Any suggestion on how to accomplish that?

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

                @cheapdad u want the grid?

                then that module should do it… it has a debug mode
                its pretty simple

                Sam

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 0
                • C
                  CheapDad last edited by

                  How do I run it in debug mode? I don’t see that on github page.

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

                    @cheapdad add

                    debugging: true

                    to the module config section

                    in mmm-config, check the box for debugging

                    sorry, used wrong word, recheck code

                    Sam

                    Create a working config
                    How to add modules

                    C 1 Reply Last reply Reply Quote 0
                    • C
                      CheapDad @sdetweil last edited by

                      @sdetweil said in Display monthly calendar and entries:

                      debug: true

                      So, I may be stuck on stupid. I enabled debug and ran MM. The monthly calendar didn’t load and I didn’t see anything different that would help me debug it.

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

                        @cheapdad sorry, notice I edited my post…

                        for this module its

                        debugging:true
                        

                        Sam

                        Create a working config
                        How to add modules

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