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.

    MMM-CalendarEx3 use description instead of summary of ics file

    Scheduled Pinned Locked Moved Solved Troubleshooting
    4 Posts 3 Posters 886 Views 3 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.
    • N Offline
      nhweb
      last edited by

      Hello,
      is it possible to use the description instead of the summary of a ics file?
      In my case, the summary is unfortunately very general, so the correct information is in the description. Unfortunately, I currently only have appointments that are labeled “General”.
      Would it be possible with eventTransformer?
      1.png
      2.png
      KR Holger

      M 2 Replies Last reply Reply Quote 0
      • M Offline
        MMRIZE @nhweb
        last edited by

        @nhweb

        /* MMM-CalendarExt3 config in config/config.js */
        ...
        config: {
        	eventTransformer: (event) => {
        		if (event.calendarName === 'test' && event.description) { // If event is from 'test' calendar and has description,
        			event.title = event.description
        		}
        		return event;
        	}
                ...
        

        9:00 PM event was originally titled as ‘Singleday Event’
        f6e47e7f-7994-4b6d-8071-4a97658aee7f-image.png

        1 Reply Last reply Reply Quote 0
        • M Offline
          MMRIZE @nhweb
          last edited by MMRIZE

          @nhweb possible with eventTransformer
          @sdetweil The default calendar broadcasts description and location info fortunately.

          N 1 Reply Last reply Reply Quote 0
          • N Offline
            nhweb @MMRIZE
            last edited by

            @MMRIZE
            Ok, thank you.
            Do you have an example how to do this?
            Summary is allways “Allgemein” with different descriptions.

            1 Reply Last reply Reply Quote 0
            • M Offline
              MMRIZE @nhweb
              last edited by

              @nhweb

              /* MMM-CalendarExt3 config in config/config.js */
              ...
              config: {
              	eventTransformer: (event) => {
              		if (event.calendarName === 'test' && event.description) { // If event is from 'test' calendar and has description,
              			event.title = event.description
              		}
              		return event;
              	}
                      ...
              

              9:00 PM event was originally titled as ‘Singleday Event’
              f6e47e7f-7994-4b6d-8071-4a97658aee7f-image.png

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 1 / 1
              • First post
                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