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.

    A module that changes the text color of a Calender when the next event happens in a certain amount of time.

    Scheduled Pinned Locked Moved Unsolved Feature Requests
    11 Posts 2 Posters 2.9k 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.
    • ? Offline
      A Former User @MerlijnAlmer
      last edited by

      @MerlijnAlmer
      If you are using MMM-CalendarExt2, you can transform title of an event by replacing with description field of event.
      0_1569235896047_6b16e36a-ae34-45b5-b861-0d15007aebfa-image.png

      views: [
        ...
        {
          name: "VIEW3",
          mode: "upcoming",
          position:"top_center",
          transform:(event) => {
            event.title = event.description
            if (event.startDate < ((Date.now()/1000 + 60*15))) {
              event.className = "urgent"
              event.icon = "flat-color-icons:alarm-clock"
            }
            return event
          }
        },
        ...
      ]
      

      :D

      1 Reply Last reply Reply Quote 0
      • M Offline
        MerlijnAlmer
        last edited by

        okay i was just in the process of taking the screen apart to use calendarExt2 thank you for your quick and usefull help.

        ~M

        1 Reply Last reply Reply Quote 0
        • M Offline
          MerlijnAlmer
          last edited by

          @Sean i might seem to be a absolute knob head for you but when i put the codes in my .js file it breaks the file.
          or is the code supposed to go in to the .css file?

          ? 1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User @MerlijnAlmer
            last edited by

            @MerlijnAlmer
            show me your configuration. eouia0819@gmail.com

            1 Reply Last reply Reply Quote 0
            • M Offline
              MerlijnAlmer
              last edited by

              @sean i sent it

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