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

CalendarExt3Journal fit with other modules

Scheduled Pinned Locked Moved Solved Troubleshooting
10 Posts 3 Posters 256 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
    MMRIZE @cpcode
    last edited by Dec 9, 2024, 9:35 PM

    @cpcode
    Well, Could you show me the capture? Because, there is nothing issued on my test.
    79e3e320-e728-41e0-8622-9b4d38a051da-image.png

    cc0392c3-03b4-4e1d-b9a7-14ee1a3ae022-image.png

    Maybe some CSS interference with other modules, but I’m not sure of your things.

    To make things simple,

    • Remove all other modules except helloworld and CX3J from config. Try what happens.
    • If something is wrong, show me the config.js and custom.css (eouia0819@gmail.com)
    C 1 Reply Last reply Dec 9, 2024, 10:20 PM Reply Quote 0
    • C Offline
      cpcode @MMRIZE
      last edited by sdetweil Dec 9, 2024, 10:22 PM Dec 9, 2024, 10:20 PM

      @MMRIZE I think I narrowed it down to the hourLength attribute - mine is 14, and at least on my system if I use anything > 10 I see the issue. This is the config for the two modules, the image is below (the dayIndex was different when I took the screenshot but it should not matter):

      {
      			module: "MMM-CalendarExt3Journal",
      			classes:"Calendar",
      			position: "middle_center",
      			config: {
      				height: '50vh',
      				width: '100%',
      				locale: 'en-US',
      				staticWeek: false,
      				dayIndex: 0,
      				days: 7,
      				staticTime: true,
      				hourLength: 12,
      				beginHour:  7,
      			}
      		},
      		{
      			module: "helloworld",
      			classes:"Calendar",
      			position: "middle_center",
      			config: {text: "THIS TEXT SHOULD BE BELOW" ,}, 
                      },
      

      MirrorCalendarWithText.jpg

      M 1 Reply Last reply Dec 9, 2024, 10:51 PM Reply Quote 0
      • M Offline
        MMRIZE @cpcode
        last edited by MMRIZE Dec 9, 2024, 10:57 PM Dec 9, 2024, 10:51 PM

        @cpcode
        Sorry, I still cannot reproduce it even with your config.

        83a435de-3969-4d79-822f-53491041a4ed-image.png

        41c80fa9-a47d-41f9-b71b-0ba4e4ecef56-image.png

        It could collapse the modules of other regions, but in the same region, it works.

        What is your screen resolution? And the environment?

        C 2 Replies Last reply Dec 9, 2024, 10:56 PM Reply Quote 0
        • C Offline
          cpcode @MMRIZE
          last edited by Dec 9, 2024, 10:56 PM

          @MMRIZE It’s running on a RPI5. The resolution should be 1080 x 1920 although I also see it when accessing the mirror from my desktop. I’ll open dev tools and try to figure out if some other module is interfering.
          So, even if you use 16-20 hours in your calendar, the text still goes below?
          Thanks for the help by the way, and for the module!

          S 1 Reply Last reply Dec 9, 2024, 11:01 PM Reply Quote 0
          • S Away
            sdetweil @cpcode
            last edited by Dec 9, 2024, 11:01 PM

            @cpcode so you are running portrait mode, tall vs wide

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • C Offline
              cpcode @MMRIZE
              last edited by Dec 9, 2024, 11:08 PM

              @MMRIZE I just got it to work by removing

              height: '50vh',
              

              from my config. I copied it from the git example but don’t know how vh works for height. If I comment it out altogether, the calendar is pretty short (for 14 hours) but the helloworld content displays correctly. If I do height: ‘1200px’, the calendar is a lot taller and looks great, AND the helloworld content displays correctly.

              I guess something I have doesn’t like the 50vh stuff. The dev tools were showing some weird stuff also…

              Thanks, this is good for me to move forward!

              C 1 Reply Last reply Dec 9, 2024, 11:40 PM Reply Quote 0
              • C Offline
                cpcode @cpcode
                last edited by Dec 9, 2024, 11:40 PM

                @MMRIZE I was wrong yet again… The real culprit (I hope) seems to be the module MMM-WallberryTheme. When I don’t include it, everything works fine with the calendar, even with height: ‘50vh’. When I add that module to another page (not even the one with the calendar), things start to look different: the calendar’s geometry and fonts are different, and I see that problem with the helloworld module displaying in the wrong place.

                Digging in a bit more, the WallberryTheme module has this body style in its css:

                body {
                margin: 60px;
                color: #fff;
                font-family: “Rubik”, sans-serif;
                font-weight: 400;
                font-size: 27px;
                text-shadow: -1px 2px 2px rgba(0, 0, 0, 0.6);
                line-height: 1.5em;
                -webkit-font-smoothing: antialiased;
                }

                The two culprits are:
                font-size: 27px;
                line-height: 1.5em;

                If they are both enabled, even if all other styles are commented out, I see the problem. If either or both are commented out, everything is good.
                No idea why this happens, but yet again I think I’m good to move forward :)

                M 1 Reply Last reply Dec 9, 2024, 11:54 PM Reply Quote 0
                • M Offline
                  MMRIZE @cpcode
                  last edited by Dec 9, 2024, 11:54 PM

                  @cpcode
                  I have no idea about that module, so I cannot promise the cowork with that kind of module. I wish you luck.

                  C 1 Reply Last reply Dec 10, 2024, 2:36 AM Reply Quote 0
                  • C Offline
                    cpcode @MMRIZE
                    last edited by Dec 10, 2024, 2:36 AM

                    @MMRIZE It’s all good, it works fine now.
                    I’m now going to try to add buttons that let someone move to the next or previous week in the calendar, so I’ll probably have more questions soon… Thanks again.

                    1 Reply Last reply Reply Quote 0
                    • S sdetweil has marked this topic as solved on Dec 22, 2024, 3:44 PM
                    • 1 / 1
                    1 / 1
                    • First post
                      6/10
                      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