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-Remote-Control

    Scheduled Pinned Locked Moved Utilities
    44 Posts 8 Posters 1.7k Views 7 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.
    • KristjanESPERANTOK Offline
      KristjanESPERANTO Module Developer @Snille
      last edited by

      @Snille Cool. I’m glad it works 🎉

      B 1 Reply Last reply Reply Quote 0
      • B Online
        bloodknot @KristjanESPERANTO
        last edited by

        @KristjanESPERANTO - Cannot GET /api/refresh (or any API call)
        MMM-Remote-Control is working fine on the same computer that the API is not found. This occurred in the last couple of updates. Nothing else changed in the configuration and/or modules.

        magicmirror2 = 192.168.4.21
        http://magicmirror2:8080/remote.html#main-menu WORKS from 192.168.4.210
        http://magicmirror2:8080/api/refresh Does NOT Work from 192.168.4.210

        MM Config:
        address: "0.0.0.0",
        port: 8080
        basePath: "/",
        ipWhitelist:[],
        
        module: 'MMM-Remote-Control',
        config: {
        	customCommand: {}
             	showModuleApiMenu: true,
             	secureEndpoints: true,
             	apiKey: '********-****-****-****-************'  
             	showQRCode: false
        
        GET http://magicmirror2:8080/api/refresh?apiKey=********-****-****-****-************ 404 (Not Found)
        

        What has changed? Did I miss an update? Any assistance will be great

        KristjanESPERANTOK 1 Reply Last reply Reply Quote 0
        • KristjanESPERANTOK Offline
          KristjanESPERANTO Module Developer @bloodknot
          last edited by

          @bloodknot I think I solved it, please update to v4.2.0 and check 🙂

          B 1 Reply Last reply Reply Quote 1
          • B Online
            bloodknot @KristjanESPERANTO
            last edited by

            @KristjanESPERANTO
            Update to 4.2.0 fixed the issue. Thanks for the quick response!!

            B 1 Reply Last reply Reply Quote 1
            • B Online
              bloodknot @bloodknot
              last edited by

              @kristjanesperanto
              It looks like something also happened to showalert:

              http://magicmirrorip:8080/api/module/alert/showalert?message=Hello&timer=2000&apiKey=********-****-****-****-**********

              TypeError: Cannot read properties of undefined (reading 'showalert')
                  at Class.answerModuleApi (/home/bloodknot/MagicMirror/modules/MMM-Remote-Control/API/api.js:457:35)
                  at /home/bloodknot/MagicMirror/modules/MMM-Remote-Control/API/api.js:296:14
                  at Layer.handleRequest (/home/bloodknot/MagicMirror/modules/MMM-Remote-Control/node_modules/router/lib/layer.js:152:17)
                  at next (/home/bloodknot/MagicMirror/modules/MMM-Remote-Control/node_modules/router/lib/route.js:157:13)
                  at Route.dispatch (/home/bloodknot/MagicMirror/modules/MMM-Remote-Control/node_modules/router/lib/route.js:117:3)
                  at handle (/home/bloodknot/MagicMirror/modules/MMM-Remote-Control/node_modules/router/index.js:435:11)
                  at Layer.handleRequest (/home/bloodknot/MagicMirror/modules/MMM-Remote-Control/node_modules/router/lib/layer.js:152:17)
                  at /home/bloodknot/MagicMirror/modules/MMM-Remote-Control/node_modules/router/index.js:295:15
                  at param (/home/bloodknot/MagicMirror/modules/MMM-Remote-Control/node_modules/router/index.js:600:14)
                  at param (/home/bloodknot/MagicMirror/modules/MMM-Remote-Control/node_modules/router/index.js:610:14)
                  at param (/home/bloodknot/MagicMirror/modules/MMM-Remote-Control/node_modules/router/index.js:610:14)
                  at processParams (/home/bloodknot/MagicMirror/modules/MMM-Remote-Control/node_modules/router/index.js:664:3)
                  at next (/home/bloodknot/MagicMirror/modules/MMM-Remote-Control/node_modules/router/index.js:291:5)
                  at /home/bloodknot/MagicMirror/modules/MMM-Remote-Control/API/api.js:148:7
                  at Layer.handleRequest (/home/bloodknot/MagicMirror/modules/MMM-Remote-Control/node_modules/router/lib/layer.js:152:17)
                  at trimPrefix (/home/bloodknot/MagicMirror/modules/MMM-Remote-Control/node_modules/router/index.js:342:13)
              
              1 Reply Last reply Reply Quote 0
              • 1
              • 2
              • 3
              • 4
              • 5
              • 2 / 5
              • 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