• 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-Page-Selector: A page switcher that can set positions of modules

Scheduled Pinned Locked Moved System
94 Posts 14 Posters 76.9k Views 15 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.
  • B Offline
    Brandenborg @Veldrovive
    last edited by Oct 12, 2019, 9:02 PM

    @Veldrovive thanks a lot. I should manage that.
    I recon the 0 position is the first page I define the contents of?

    V 1 Reply Last reply Oct 12, 2019, 9:04 PM Reply Quote 0
    • V Offline
      Veldrovive Module Developer @Brandenborg
      last edited by Oct 12, 2019, 9:04 PM

      @Brandenborg
      The 0 should be the position of your default page in the page list. The furthest left is 0.

      B 1 Reply Last reply Oct 12, 2019, 9:08 PM Reply Quote 1
      • B Offline
        Brandenborg @Veldrovive
        last edited by Oct 12, 2019, 9:08 PM

        @Veldrovive
        Thanks. And thank you for a really useful module!

        1 Reply Last reply Reply Quote 1
        • V Offline
          Veldrovive Module Developer
          last edited by Oct 13, 2019, 3:34 PM

          @Brandenborg
          The latest version of this module now has this as a (Not very well tested) feature.
          You can now specify a restoreDefault prop in the MMM-Page-Selector config with the number of seconds you want before it returns to the default page.

          1 Reply Last reply Reply Quote 1
          • M Offline
            m1scha
            last edited by Feb 12, 2021, 1:18 PM

            Hi first of all thanks for this great module, Works great. I wanto to remotely change the pages which works with this commands:

            http://ip:8080/remote?action=NOTIFICATION&notification=PAGE_DOWN
            http://ip:8080/remote?action=NOTIFICATION&notification=PAGE_UP

            But if I want to go to a specific page it does noct work with this command:

            http://ip:8080/remote?action=NOTIFICATION&notification="SELECT_PAGE"&payload="0"

            Can somebody tell me whats wrong?

            V 1 Reply Last reply Feb 13, 2021, 8:45 PM Reply Quote 0
            • V Offline
              Veldrovive Module Developer @m1scha
              last edited by Feb 13, 2021, 8:45 PM

              @m1scha
              Hello, glad you’re enjoying the module.

              I am assuming that your page has some name that is not "0".

              I haven’t extensively tested with magic mirror remote, but I imagine the issue is with setting payload to be a string. When it gets a string, MMM-Page-Selector assumes it is the name of the page, not a page index. If an integer is sent, it assumes it is a page index.

              I don’t know how remote works, but you might be able to use
              http://ip:8080/remote?action=NOTIFICATION&notification=“SELECT_PAGE”&payload=0

              Or you could specify your page name as
              http://ip:8080/remote?action=NOTIFICATION&notification=“SELECT_PAGE”&payload=“YOUR_PAGE_NAME”

              M 1 Reply Last reply Feb 18, 2021, 2:43 PM Reply Quote 0
              • M Offline
                m1scha @Veldrovive
                last edited by m1scha Feb 18, 2021, 2:43 PM Feb 18, 2021, 2:43 PM

                @veldrovive said in MMM-Page-Selector: A page switcher that can set positions of modules:

                remote?action=NOTIFICATION&notification=“SELECT_PAGE”&payload=0

                Hi, thanks for you reply.
                I tested this in several variations, but I get a sucess Message, but change of page.

                V 1 Reply Last reply Feb 18, 2021, 3:16 PM Reply Quote 0
                • V Offline
                  Veldrovive Module Developer @m1scha
                  last edited by Feb 18, 2021, 3:16 PM

                  @m1scha
                  I checked out MMM-Remote-Control and it is just a problem with string representations.

                  remote?action=NOTIFICATION&notification=“SELECT_PAGE”&payload=0 sends the literal notification “SELECT_PAGE” including the quotes. A more correct request would be remote?action=NOTIFICATION&notification=SELECT_PAGE&payload=Main which would switch the the page called main.

                  However, in order to support other modules, pages are 1 indexed by notification so to switch to the first page, you would send remote?action=NOTIFICATION&notification=SELECT_PAGE&payload=1

                  Strings that are numbers are handled correctly by MMM-Page-Selector.

                  1 Reply Last reply Reply Quote 1
                  • I Offline
                    innovation @Veldrovive
                    last edited by Mar 26, 2021, 9:00 AM

                    @veldrovive Hello! I want to use this module for

                    1. An intro screen - only for 10 secs
                    2. Move into screen 2 - stay there

                    Can I only have one screen to have a time interval and the other doesn’t? If so how?

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      Riaanh
                      last edited by May 20, 2022, 8:13 PM

                      Good day @Veldrovive thanks for the brilliant work you have done on this, and your comments on this is really helpful.

                      I have an issue to get this going, and been researching and trying for the past two days with no success. I even tried using some of the users on this thread’s config as posted here, and loaded the modules they refer to, but I always end up with a blank page once I load the portion for MMM-Page-Selector.

                      As soon as I add this portion below, it only display a blank page, or if I comment it out, then the page will display again.

                      {
                      			disabled: false,
                      		        module: "MMM-Page-Selector",
                      		        position: "top_bar",
                      		        config: {
                      			        defaultPage: "Page1",
                      		                displayTitle: true,
                      			        selectPageNotif: ["SELECT_PAGE"],
                      		                incrementPageNotif: ["PAGE_UP"],
                      		                decrementPageNotif: ["PAGE_DOWN"],
                         			     }
                      		},		
                      

                      Any advice or even just guidance on where to look further would be greatly appreciated.

                      S 1 Reply Last reply May 20, 2022, 9:07 PM Reply Quote 1
                      • 1
                      • 2
                      • 6
                      • 7
                      • 8
                      • 9
                      • 10
                      • 9 / 10
                      • 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