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.

    How to show actual times for todays events?

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    4 Posts 2 Posters 745 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.
    • M Offline
      mvrlogins
      last edited by mvrlogins

      The current options for the default calendar module are as follows

      module: 'calendar',
            position: 'top_right',
            header: 'CALENDAR',
            config: {
              timeFormat: 'absolute',
              maximumEntries: 21,
              maxTitleLength: 25,
              getRelative: 0,
              urgency: 1,
              nextDaysRelative: false,
              fade: false,
              displaySymbol: false,
              dateFormat: 'ddd MMM DD HH:mm',
              calendars: [
                {
      

      For today’s events the calendar shows times as “In 2 hours” or “In 45 Minutes” or “In a day”

      If I change “urgency” to 0 It shows the dates in full, but, I’d like to show today’s entry as “Today hh:mm” / “Tomorrow hh:mm” or just show “hh:mm” without the date for today

      How do I go about this? Is it even possible?

      Thanks

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

        @mvrlogins looking at the code there is no option to do different date formats for ‘today’ vs tomorrow.

        relative/urgency is in hours, and there is only one date format.

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          mvrlogins @sdetweil
          last edited by mvrlogins

          @sdetweil

          Thanks

          I couldn’t see any options either - but this chap seems to have managed something like it

          https://forum.magicmirror.builders/topic/16139/4th-magic-mirror-complete

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

            @mvrlogins the garbage day stuff is a diff module

            the cal shows today(relative) and time

            Sam

            How to add modules

            learning how to use browser developers window for css changes

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