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

      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 Reply Quote 0
      • C Offline
        Chunnel414 @sdetweil
        last edited by

        @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 Reply Quote 1
        • S Away
          sdetweil @Chunnel414
          last edited by

          @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 Reply Quote 0
          • S Away
            sdetweil @sdetweil
            last edited by sdetweil

            @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

              @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 plainbrokeP 3 Replies Last reply Reply Quote 0
              • S Away
                sdetweil @Chunnel414
                last edited by

                @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 Away
                  sdetweil @Chunnel414
                  last edited by

                  @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 Reply Quote 0
                  • plainbrokeP Offline
                    plainbroke @Chunnel414
                    last edited by

                    @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

                      @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 Reply Quote 1
                      • S Away
                        sdetweil @Chunnel414
                        last edited by

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