Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Custom module_data in payload MMM remote control

    General Discussion
    module python remote control
    3
    3
    1282
    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.
    • S
      saifkazi last edited by

      Hello
      I was thinking that is it possible to sent custom module_data payload via remote control
      So I can display module at position of my choice . It would make quite easier to program via python by simply sending http get requests

      Regards Saif

      N 1 Reply Last reply Reply Quote 0
      • N
        ninjabreadman @saifkazi last edited by

        @saifkazi Have a look at node_helper.js and the answerPost() and answerGet() functions. You should be able to modify one to catch your additional data and modify the position of a given module. Not sure if you can change the position on the fly, or whether you need to write the config and restart the mirror.

        J 1 Reply Last reply Reply Quote 0
        • J
          Jopyth Moderator @ninjabreadman last edited by Jopyth

          @ninjabreadman That is indeed not very simple. It was something I wanted to implement too, but it turned out to be a little more complicated than I initially thought, since the MagicMirror project does not directly support this. But it could be done, and if so a PR or even just an initial implementation would be awesome.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy