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

MMM-Carousel error when position is undefined

Scheduled Pinned Locked Moved Solved Troubleshooting
mmm-carousel
9 Posts 3 Posters 1.1k 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.
  • C Offline
    Chunnel414
    last edited by sdetweil Jan 9, 2025, 10:17 PM Jan 9, 2025, 10:15 PM

    New to MM and very excited to get it set up! My intent is to use the Carousel module to rotate through 3-5 modules in the top right corner of my screen. It appeared fairly straight forward but I have run into some unexpected issues.

    {//Carousel
    			module: "MMM-Carousel",
    			position: "bottom_bar",
    			config: {
    				transitionInterval: 10000,
    				ignoreModules: [],
    				mode: "positional",
    				top_right: {
    					enabled: true,
    					ignoreModules: [],
    					overrideTransitionInterval: 15000,
    				},
    			},
    		}
    

    When I first got it loaded it was rotating through the modules as expected. However, I noticed that my news ticker in the bottom bar got bumped up as if another module was beneath it after I had already dropped the bottom body gap to 5 px. So I figure I would remove the position in the carousel module.

    {//Carousel
    			module: "MMM-Carousel",
    			//~ position: "bottom_bar",
    			config: {
    				transitionInterval: 10000,
    				ignoreModules: [],
    				mode: "positional",
    				top_right: {
    					enabled: true,
    					ignoreModules: [],
    					overrideTransitionInterval: 15000,
    				},
    			},
    		}
    

    Once I did that the carousel failed to operate and it stacked my 4 modules in the top right. I have repeated this several times so something is causing the module not to function because the git instructions indicated the position line is not necessary unless the page icons were being displayed.
    How can I fix this? My ultimate goal is to have the news feed 5 px off to the bottom of the screen while the modules rotate through in the upper right. I tried modifying some of the parameters from the MMM-Carousel.css but I can’t get the news ticker back down to the original position.

    S 1 Reply Last reply Jan 9, 2025, 10:19 PM Reply Quote 0
    • C Offline
      Chunnel414 @sdetweil
      last edited by Jan 16, 2025, 1:32 AM

      @sdetweil
      I ended up getting carousel to work by putting the position in the top bar and making some css mods.

      S 1 Reply Last reply Jan 16, 2025, 1:38 AM Reply Quote 1
      • S Offline
        sdetweil @Chunnel414
        last edited by Jan 9, 2025, 10:19 PM

        @Chunnel414 carousel doesn’t need a position as it has no content to display of its own.

        it just hides/shows other module content

        I never tries the positional config.

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        S C 2 Replies Last reply Jan 9, 2025, 10:22 PM Reply Quote 0
        • S Offline
          sdetweil @sdetweil
          last edited by sdetweil Jan 9, 2025, 10:43 PM Jan 9, 2025, 10:22 PM

          @Chunnel414 you can do the same thing with MMM-pages…

          make everything classes:“fixed” (using the simplified naming config)
          except those modules

          they will be classes:“page1”, “page2”… etc

          and pages will have 5 pages defines

                {
                  module: "MMM-pages",
                  disabled: false,
                  config: {
                    modules: [
                      [
                        "page1"
                      ],
                      [
                        "page2"
                      ],
                      [
                        "page3"
                      ],
                      [
                        "page4"
                      ],
                      [
                        "page5"
                      ]
                    ],
                    fixed: [
                      "fixed"
                    ],
                    animationTime: 10000,
                    hiddenPages: {
                    }
                  },
                  order: "*"
                },
          

          the 5 modules are all configured top_right
          only one will show at a time

          {
             module:"clock",
             position:"top_right",
             classes:"page1",
             config:{
             ...
             ...
             }
          }
          etc
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • C Offline
            Chunnel414 @sdetweil
            last edited by Jan 10, 2025, 12:32 AM

            @sdetweil thanks. I’ll take a look at pages.

            I understand that carousel does not require the position. Although, as I described, if I did not put the position in there, the function of the carousel would not happen. And when I put the position back in the carousel function would work. I agree that it should not be required which is why I am providing this information as something appears to not be working appropriately.

            S P 3 Replies Last reply Jan 10, 2025, 1:29 AM Reply Quote 0
            • S Offline
              sdetweil @Chunnel414
              last edited by Jan 10, 2025, 1:29 AM

              @Chunnel414 i looked thru the code, and don’t see any impact of not having a position

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @Chunnel414
                last edited by Jan 15, 2025, 1:30 AM

                @Chunnel414 did you get a solution working?

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                C 1 Reply Last reply Jan 16, 2025, 1:32 AM Reply Quote 0
                • P Offline
                  plainbroke @Chunnel414
                  last edited by Jan 15, 2025, 1:45 AM

                  @Chunnel414
                  My MMM-Carousel does not have a position and it works fine…

                  Slow learner. But trying anyways.

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    Chunnel414 @sdetweil
                    last edited by Jan 16, 2025, 1:32 AM

                    @sdetweil
                    I ended up getting carousel to work by putting the position in the top bar and making some css mods.

                    S 1 Reply Last reply Jan 16, 2025, 1:38 AM Reply Quote 1
                    • S Offline
                      sdetweil @Chunnel414
                      last edited by Jan 16, 2025, 1:38 AM

                      @Chunnel414 long as you got it!!

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • S sdetweil has marked this topic as solved on Jan 23, 2025, 10:00 PM
                      • 1 / 1
                      1 / 1
                      • First post
                        1/9
                        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