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

calendar module - format today events with time

Scheduled Pinned Locked Moved Unsolved Troubleshooting
8 Posts 4 Posters 1.0k Views 4 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.
  • S Offline
    spitzlbergerj Project Sponsor Module Developer @sdetweil
    last edited by Oct 23, 2022, 11:49 AM

    @sdetweil Thank you for the quick reply.
    IfI set

    urgency: 1
    

    then an appointment for today is displayed like this

    Test appointment                            in 4 hours
    

    but I would like to have the display

    Test appointment                              today, 17:00
    

    how can I achieve this?
    thanks
    Josef

    Regards
    Josef

    http://www.spitzlberger.de/smartmirror, https://github.com/spitzlbergerj/MMM-TeslaLogger, https://github.com/spitzlbergerj/CaravanPi, https://www.la-gondola-barocca.de

    K S 2 Replies Last reply Oct 24, 2022, 6:45 AM Reply Quote 1
    • K Offline
      KamiSchami @spitzlbergerj
      last edited by Oct 24, 2022, 6:45 AM

      @spitzlbergerj , das nervt mich auch schon länger. Vielleicht gibt es ja eine Lösung. - …this has been bothering me for a long time. Maybe there is a solution.

      Real programmers never work 9 to 5. If they are around at 9 AM, it's because they were up all night.

      1 Reply Last reply Reply Quote 0
      • S Away
        sdetweil @spitzlbergerj
        last edited by Oct 24, 2022, 11:15 AM

        @spitzlbergerj according to the code

        showTimeToday must be false, and dateFornat must be ‘relative’, not absolute

        Screenshot_20221024-061305_Chrome.jpg

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        S 1 Reply Last reply Oct 24, 2022, 12:23 PM Reply Quote 0
        • S Offline
          spitzlbergerj Project Sponsor Module Developer @sdetweil
          last edited by Oct 24, 2022, 12:23 PM

          @sdetweil Thanks again for your answer. But that unfortunately still does not do the whole job

          config:

          maxTitleLength: 21,
          wrapEvents: false,
          dateFormat: "ddd, D.MMM, HH:mm",
          fullDayEventDateFormat: "ddd, D.MMM",
          timeFormat: "relative",
          getRelative: 12,
          urgency: 1,
          showEnd: false,
          maximumEntries: 6,
          fade: false,
          hidePrivate: false,
          nextDaysRelative: true,
          sliceMultiDayEvents: false,
          showTimeToday: false,
          

          result:
          Screenshot 2022-10-24 140832.png

          I actually just want the display like with timeformat: “absolute”. Only that with the current day simply “Today” is indicated and the same perhaps also with “Tomorrow”.

          desired result:
          Screenshot 2022-10-24 141714.png

          Unfortunately I am too little experienced in coding the MagicMirror programs. Otherwise I would suggest a change for this, if the behavior is not achievable with the current settings.

          Could you, dear @sdetweil, do that? Thanks a lot

          Josef

          Regards
          Josef

          http://www.spitzlberger.de/smartmirror, https://github.com/spitzlbergerj/MMM-TeslaLogger, https://github.com/spitzlbergerj/CaravanPi, https://www.la-gondola-barocca.de

          S 1 Reply Last reply Oct 25, 2022, 4:50 PM Reply Quote 0
          • S Away
            sdetweil @spitzlbergerj
            last edited by Oct 25, 2022, 4:50 PM

            @spitzlbergerj no way without significant code changes… sorry

            you can ‘most’ of the way there with

                    timeFormat: "relative",
                    getRelative: 1,
                    showTimeToday: false,
            

            1st is full day
            2nd is upcoming in 3 hours

            Screenshot at 2022-10-25 11-48-27.png

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            S 1 Reply Last reply Oct 26, 2022, 7:53 AM Reply Quote 0
            • S Offline
              spitzlbergerj Project Sponsor Module Developer @sdetweil
              last edited by Oct 26, 2022, 7:53 AM

              @sdetweil Thanks a lot for your help! I’ll try it in this way

              Regards
              Josef

              http://www.spitzlberger.de/smartmirror, https://github.com/spitzlbergerj/MMM-TeslaLogger, https://github.com/spitzlbergerj/CaravanPi, https://www.la-gondola-barocca.de

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