• 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.

Calling a Module from Web

Scheduled Pinned Locked Moved General Discussion
7 Posts 2 Posters 2.3k 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.
  • R Offline
    rsellmer
    last edited by Oct 2, 2017, 1:22 PM

    Dear, I am new at web development and also in MM, this is the reason why I need help to understand how I can call from Web(php) a specific module from a RespberyPi in the same network. For instance, I am trying to use the remote control to change the position of calendar trough another computer using the Web(I am developing the web page to control it).
    Best regards,
    Renato Sellmer

    ? 1 Reply Last reply Oct 2, 2017, 2:24 PM Reply Quote 0
    • ? Offline
      A Former User @rsellmer
      last edited by Oct 2, 2017, 2:24 PM

      @rsellmer First, There is already a module for that purpose - MMM-Remote-Control.
      Second, You should allow remote IP for your remote computer. See the IPwhitelist in your config.
      Last, you need to develop Listenter Module for your purpose by yourself. That module could listen some port(maybe 8080) and hook the request and parse it, then do something. Maybe front could be built with PHP, however controlling MM itself should be built with nodejs, unless your goal is not just modifying config.js

      R 1 Reply Last reply Oct 2, 2017, 2:37 PM Reply Quote 0
      • R Offline
        rsellmer @Guest
        last edited by Oct 2, 2017, 2:37 PM

        @Sean Thank you very much for your answer. It is exactly what I need. Understand how to use the MMM-Remote-Control with a web browser. I believe that I have to create the front end with PHP and use nodejs to call the MMM-Remote-Control, right ? If you have any example I appreciate that.

        ? 1 Reply Last reply Oct 2, 2017, 2:39 PM Reply Quote 0
        • ? Offline
          A Former User @rsellmer
          last edited by Oct 2, 2017, 2:39 PM

          @rsellmer MMM-Remote-Control already has front-UI. You don’t need to make another UI for it.
          See the MMM-Remote-Control first.

          R 1 Reply Last reply Oct 2, 2017, 2:48 PM Reply Quote 0
          • R Offline
            rsellmer @Guest
            last edited by Oct 2, 2017, 2:48 PM

            @Sean Let me try to explain to you. I have 2 mirrors in my house, one is in the room and another one in the bedroom, ok ? Through the web browser I want select one mirror or another and control the MMM-Remote-Control for this one which I selected and I want to use a new front end and just call the functions from the MMM-Remote-Control passing the parameters, is this possible ?

            ? 1 Reply Last reply Oct 2, 2017, 2:59 PM Reply Quote 0
            • ? Offline
              A Former User @rsellmer
              last edited by Oct 2, 2017, 2:59 PM

              @rsellmer
              If you install MMM-Remote-Control in both Mirrors, (assume; 192.168.178.100 is for room, 192.168.178.101 is for bedroom), you can access each of them by http://192.168.178.10X/remote.html. and can control each.
              But I guess, you seem to need a new interface for your own.(maybe… for family?). It is unsure how to be able with MMM-Remote-Control. I think, If it could, it might be limited so what.
              Anyway, you can build a new module for that purpose by yourself. Good luck! :D

              R 1 Reply Last reply Oct 2, 2017, 3:25 PM Reply Quote 0
              • R Offline
                rsellmer @Guest
                last edited by Oct 2, 2017, 3:25 PM

                @Sean Thank you very much for your help.

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