• 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 - Remote Control URL calling issues..

Scheduled Pinned Locked Moved Unsolved Troubleshooting
5 Posts 2 Posters 639 Views 2 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
    BKeyport Module Developer
    last edited by BKeyport Jan 26, 2020, 1:50 PM Jan 26, 2020, 12:36 PM

    @Jopyth

    I’ve got two URL commands that aren’t working. I’d like some help to figure them out.

    Update: Trying to use “http://[address]/api/update” - I get back “Cannot GET /api/update”

    Restart: Again, using “http://[address]/api/restart” - I get back:

    Error: Cannot find module ‘pm2’
    at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
    at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
    at Function.Module._load (internal/modules/cjs/loader.js:528:25)
    at Module.require (internal/modules/cjs/loader.js:658:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Class.controlPm2 (/home/pi/MagicMirror/modules/MMM-Remote-Control/node_helper.js:867:23)
    at Class.executeQuery (/home/pi/MagicMirror/modules/MMM-Remote-Control/node_helper.js:654:22)
    at expressRouter.route.get (/home/pi/MagicMirror/modules/MMM-Remote-Control/API/api.js:170:18)
    at Layer.handle [as handle_request] (/home/pi/MagicMirror/node_modules/express/lib/router/layer.js:95:5)

    Thanks

    The "E" in "Javascript" stands for "Easy"

    S 1 Reply Last reply Jan 26, 2020, 1:35 PM Reply Quote 0
    • S Offline
      sdetweil @BKeyport
      last edited by Jan 26, 2020, 1:35 PM

      @BKeyport try this syntax instead ip:port/remote?action=xxxxx&parms=???&parms2=???

      see
      https://forum.magicmirror.builders/topic/9941/mmm-remote-control-cannot-get-api/7

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • B Offline
        BKeyport Module Developer
        last edited by Jan 26, 2020, 1:55 PM

        Update: changing to other command works if all caps. UPDATE rather than update.

        Restart: Same error.

        The "E" in "Javascript" stands for "Easy"

        S 1 Reply Last reply Jan 26, 2020, 2:02 PM Reply Quote 0
        • S Offline
          sdetweil @BKeyport
          last edited by Jan 26, 2020, 2:02 PM

          @BKeyport sorry, not quite sure what you said

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • B Offline
            BKeyport Module Developer
            last edited by Jan 27, 2020, 2:12 AM

            Update works with the http://

            /remote?action=update

            Restart does the same error as above regardless of URL.

            The "E" in "Javascript" stands for "Easy"

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            1 / 1
            • First post
              1/5
              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