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

Custom module_data in payload MMM remote control

Scheduled Pinned Locked Moved General Discussion
remote controlpythonmodule
3 Posts 3 Posters 1.8k Views 3 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.
  • S Offline
    saifkazi
    last edited by Feb 18, 2018, 5:12 PM

    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 Feb 19, 2018, 1:35 PM Reply Quote 0
    • N Offline
      ninjabreadman @saifkazi
      last edited by Feb 19, 2018, 1:35 PM

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

      Problem with config or JavaScript? Copy/paste it into JSHint.
      Check out the detailed walkthroughs on install, config, modules, etc.

      J 1 Reply Last reply Feb 19, 2018, 9:06 PM Reply Quote 0
      • J Offline
        Jopyth Moderator @ninjabreadman
        last edited by Jopyth Feb 19, 2018, 9:07 PM Feb 19, 2018, 9:06 PM

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

        Helpful sticky: How to troubleshoot

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