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

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.
  • M Offline
    MerlijnAlmer
    last edited by Sep 23, 2019, 10:48 AM

    yes just showing the discrition of a event.

    they make an event for that day and in the description part they fill in what they need the room for.
    so instead of seeing thier names on the screen they would like to see the description.
    location is not needed seen as the screens are at the room.

    thanks for all your help BTW.

    ~M

    ? 1 Reply Last reply Sep 23, 2019, 10:53 AM Reply Quote 0
    • ? Offline
      A Former User @MerlijnAlmer
      last edited by Sep 23, 2019, 10:53 AM

      @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 Sep 23, 2019, 10:54 AM

        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 Sep 24, 2019, 1:26 PM

          @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 Sep 24, 2019, 1:27 PM Reply Quote 0
          • ? Offline
            A Former User @MerlijnAlmer
            last edited by Sep 24, 2019, 1:27 PM

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

            1 Reply Last reply Reply Quote 0
            • M Offline
              MerlijnAlmer
              last edited by Sep 24, 2019, 1:32 PM

              @sean i sent it

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