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 & mmm-remote-control

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    12 Posts 4 Posters 3.3k 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.
    • W Offline
      waki
      last edited by waki

      I know the page numbers start with 0. But if I use the commands in the list, no matter what page index I pass, I only get a black page. So I think the formal way, of how I pass the paramter is wrong. And your command also doesnt work

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

        @waki open the developers window, ctrl-shift-i and select the tab labeled console, set the filter to control
        and then send a message and see what the error is…

        or look at the mmm-remote-control code

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • W Offline
          waki
          last edited by

          I tried this, there is no error. The notification gets recieved by the mmm-pages modules, but it reports:
          [Pages]: received a notification to change to page [object Object] of type object

          From the API I get the answer:
          {“success”:true,“notification”:“PAGE_CHANGED”,“payload”:{“payload”:“1”}}

          But I only get a black page. And I looked inside the code, but my js knowledge is too bad to understand what is happening there.

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

            @waki try this

            “payload”:{“page”:“0”}

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote -1
            • M Offline
              m1scha
              last edited by

              Hi, were you able to solve this? I am having the same issue

              1 Reply Last reply Reply Quote 0
              • A Offline
                andy123 @waki
                last edited by

                @waki @m1scha
                the page that you would like to rotate to is given as a url parameter. Replace localhost:8080 with your own ip’s.

                curl -X GET "http://localhost:8080/api/notification/PAGE_CHANGED/0" -H "accept: application/json"

                You can test it out with the Swagger API:
                http://localhost:8080/api/docs/#/Module Control/get_api_notification___notification_____p_

                1 Reply Last reply Reply Quote 0
                • 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