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-pages - how to know which page index my module has?

    Scheduled Pinned Locked Moved Development
    29 Posts 4 Posters 8.2k 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
      sdetweil @mvrlogins
      last edited by

      @mvrlogins hm, that makes no sense as the MagicMirror operations are the same

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      M 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @mvrlogins
        last edited by sdetweil

        @mvrlogins i opened this issue
        https://github.com/evroom/MMM-MPlayer/issues/4

        try my fork

        cd ~/MagicMirror/modules
        rename the existing folder out of the way
        git clone https://github.com/sdetweil/MMM-MPlayer
        

        change the page config to have the hidden page and the
        remote_control notification

        I submitted this change to the module for inclusion, depending on your results.

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          mvrlogins @sdetweil
          last edited by

          @sdetweil said in MMM-pages - how to know which page index my module has?:

          @mvrlogins hm, that makes no sense as the MagicMirror operations are the same

          Maybe something to do with mplayer itself, not the module MMM-Mplayer?

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @mvrlogins
            last edited by

            @mvrlogins no, i fixed in my fork

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • M Offline
              mvrlogins @sdetweil
              last edited by mvrlogins

              @sdetweil said in MMM-pages - how to know which page index my module has?:

              git clone https://github.com/sdetweil/MMM-MPlayer

              Did as you suggested

              The video appears only on page index 0 and not on the hidden page

              See the 2 video images on the attached screenshot - both are over the weather module

              The header for the MPlayer appears on the hidden page

              I can change to the hidden page with Remote Control, no problem

                  {
                      module: "MMM-pages",
                      config: {
                          rotationTime: 1000 * 86400, // rotate every 20 seconds
                          modules: [
              	
                              ["page1"],           // class name for page 1
                       //       ["page2"],           // class name for page 2
                      //        ["page3"],           // class name for page 3
                          ],
                          fixed: ["fixed_page"],
                          hiddenPages: {
                              "Doorbell": ["doorbell_page"],
                         
                          }
                      }
                  },
              
              {
              	module: 'MMM-MPlayer',
                      classes: "doorbell_page",
                      disabled: false,
                      position: "top_left",
                      header: "MPlayer",
              	config: {
              	  useTwoWindows: true,
              	  layout: 'column',
              	  monitorAspect: 0,
              	  rotate: -1,
              	  windowSize: { width: 640, height: 360 },
              	  windowPosition: { x: 5, y: 225 },
              	  streamInterval: 30000,
              	  streams: {
              		window1: [
              		  'rtsp://10.0.1.1:7447/gv9eHrB9yZyPhgvN',
              		],
              		window2: [
              		  'rtsp://10.0.1.1:7447/D89zTJyDwN8YtKix',
              		  
              		]
              	  }
              	}
              },
              

              ScreenFloat Shot of Preview at 20 Feb 2025 at 16_57_07.jpg

              1 Reply Last reply Reply Quote 0
              • M Offline
                mvrlogins @evroom
                last edited by

                @evroom said in MMM-pages - how to know which page index my module has?:

                As a workaround, I will make it a requirement to put the MMM-Player on the first page (page index 0).
                When I receive 0, then I will start streaming, otherwise I will stop streaming.
                That seems to work.

                @sdetweil Maybe something to do with this?

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @mvrlogins
                  last edited by

                  @mvrlogins no. i added code to start streaming on hidden page,
                  let me check again.

                  you have my fork, right?

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  M evroomE 3 Replies Last reply Reply Quote 0
                  • M Offline
                    mvrlogins @sdetweil
                    last edited by

                    @sdetweil

                    Yes, using your fork

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      mvrlogins @sdetweil
                      last edited by

                      @sdetweil

                      The video appears on both pages.

                      The page with index 0 and the hidden page

                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @mvrlogins
                        last edited by

                        @mvrlogins ok, git pull in module folder…

                        i didn’t stop the stream when switching away… or if there was another stream already running on page 0

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        M 1 Reply Last reply Reply Quote 0
                        • evroomE Online
                          evroom @sdetweil
                          last edited by

                          Hi, I notice some requests and other activities,here and on GitHub.
                          Due to unforeseen medical issues, I do not have really time, nor the means to respond to everything
                          Already happy I have some sort of Internet connection here.
                          But with Sam it is in good hands, just make use of his fork.
                          Greetings, E.J.

                          MagicMirror version: 2.33.0
                          Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                          Raspbian GNU/Linux 12 (bookworm)

                          Test environment:
                          MagicMirror version: v2.33.0
                          Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                          Raspbian GNU/Linux 12 (bookworm)

                          S 1 Reply Last reply Reply Quote 0
                          • S Offline
                            sdetweil @evroom
                            last edited by sdetweil

                            @evroom said in MMM-pages - how to know which page index my module has?:

                            Due to unforeseen medical issues

                            take care, this is not important in the grand scheme of things…

                            I spent 2 months in hospital with Covid in 2021, luckily laptop, wifi , and MagicMirror kept me sane.

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            1 Reply Last reply Reply Quote 1
                            • M Offline
                              mvrlogins @sdetweil
                              last edited by

                              @sdetweil

                              Thanks for your help with this, Much appreciated

                              I’m now away from the mirror for the weekend. I’ll give it a shot when I return on Tuesday

                              1 Reply Last reply Reply Quote 0

                              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                              With your input, this post could be even better 💗

                              Register Login
                              • 1
                              • 2
                              • 2 / 2
                              • 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