MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    UNSOLVED SlotTitle Date formatting with CalendarExt2

    Troubleshooting
    3
    5
    657
    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.
    • C
      CliffordW last edited by

      Format is pretty close to what I’m looking for, but the first row has the day name twice, and something weird is happening to November 11, as you can see in the picture.

      link text

      Any suggestions as to what I should change in the View to make each day look the same?

      views: [
      				{
      					Name: "Rentals",
      					title: "BNC Rentals",
      					mode: "week",			
      					position: "fullscreen_above",
      					calendars: ["BNC Rentals"],
      					useEventTimeRelative: true,
      					slotCount: 3,
      					slotMaxHeight: "175px", 
      					slotTitle: "",
      					slotSubTitle: "",
      					slotTitleFormat: "ddd MMM/DD",
      					maxItems: 200,
      					hideOverflow: false,				
      				}
      
      1 Reply Last reply Reply Quote 0
      • C
        CliffordW last edited by

        I changed slotTitle to a single space instead of null, and the duplicate days are now missing. I still have some strangeness for the first displayed slot and the first of the month. Any suggestions?

        https://imgur.com/Kp1qOwW

        ? 1 Reply Last reply Reply Quote 0
        • lavolp3
          lavolp3 Module Developer last edited by lavolp3

          I’d suggest to rather change slotTitleFormat to “MMM/DD” to get rid of the duplicate days. THe “ddd” adds the day name which is not necessary in your calendar.
          Then change slotTitle back to “” to have the day name header for every slot.

          Then, the two slots are not formatted with slotTitleFormat but with (moment(…).format(“MM/D”). But I can only guess where that sits in the code.

          How to troubleshoot modules
          MMM-soccer v2, MMM-AVStock

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

            @CliffordW
            https://github.com/eouia/MMM-CalendarExt2/wiki/2c4.-View:week,-month#viewweek

            hmmm. read and try again. I think i made this too configurable. anyway there is no definitive role of slotTitle. your result is not a bug or an error, just you might have not yet understood what you were doing.

            C 1 Reply Last reply Reply Quote 0
            • C
              CliffordW @Guest last edited by

              @Sean No argument there. I’m not familiar with this style of coding, but I am trying to learn.

              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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy