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 82.5k 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.
    • V Offline
      Veldrovive Module Developer @m1scha
      last edited by

      @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

        @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

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

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

            MMM-Page-Selector

            can u show the messages from where u start MagicMirror

            either npm start
            or pm2

            if using pm2,. then
            pm2 logs --lines=100
            will show the messages

            blank screen is usually a missing library , see
            https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            R 1 Reply Last reply Reply Quote 0
            • R Offline
              Riaanh @sdetweil
              last edited by sdetweil

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

              can u show the messages from where u start MagicMirror

              0 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
              1 info using npm@7.5.2
              2 info using node@v12.22.5
              3 timing config:load:defaults Completed in 4ms
              4 timing config:load:file:/usr/share/nodejs/npm/npmrc Completed in 7ms
              5 timing config:load:builtin Completed in 8ms
              6 timing config:load:cli Completed in 4ms
              7 timing config:load:env Completed in 1ms
              8 timing config:load:file:/home/pi/magicmirror/mounts/modules/.npmrc Completed in 1ms
              9 timing config:load:project Completed in 3ms
              10 timing config:load:file:/home/pi/.npmrc Completed in 0ms
              11 timing config:load:user Completed in 0ms
              12 timing config:load:file:/etc/npmrc Completed in 0ms
              13 timing config:load:global Completed in 0ms
              14 timing config:load:cafile Completed in 1ms
              15 timing config:load:validate Completed in 1ms
              16 timing config:load:setUserAgent Completed in 2ms
              17 timing config:load:setEnvs Completed in 2ms
              18 timing config:load Completed in 29ms
              19 verbose npm-session 72db9025016605ec
              20 timing npm:load Completed in 58ms
              21 timing command:run-script Completed in 45ms
              22 timing command:start Completed in 59ms
              23 verbose stack Error: missing script: start
              23 verbose stack     at runScript (/usr/share/nodejs/npm/lib/run-script.js:54:11)
              24 verbose cwd /home/pi/magicmirror/mounts/modules
              25 verbose Linux 5.10.92-v7l+
              26 verbose argv "/usr/bin/node" "/usr/bin/npm" "start"
              27 verbose node v12.22.5
              28 verbose npm  v7.5.2
              29 error missing script: start
              30 verbose exit 1
              
              

              Thanks for responding, is this what you are referring to?

              S 2 Replies Last reply Reply Quote 0
              • S Offline
                sdetweil @Riaanh
                last edited by

                @Riaanh how do you start MagicMirror normally?

                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 @Riaanh
                  last edited by

                  @Riaanh this looks like being started under docker

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • 1
                  • 2
                  • 6
                  • 7
                  • 8
                  • 9
                  • 10
                  • 10 / 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