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

JSON request module

Scheduled Pinned Locked Moved Solved Requests
41 Posts 3 Posters 12.4k Views 4 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.
  • W Offline
    wishmaster270 Module Developer @ELMAGO
    last edited by Jan 24, 2023, 6:54 PM

    @ELMAGO Hi,

    i just released a new version of the module which has a new option delayNext that can be added to each command.
    The module then starts the command and waits this amount of milliseconds before the next one is processed.
    So in your case you can add a delayNext: 1000 to each of the commands to give your server some time between the calls.

    E 1 Reply Last reply Jan 25, 2023, 11:43 AM Reply Quote 0
    • S Offline
      sdetweil @wishmaster270
      last edited by Jan 24, 2023, 7:00 PM

      @wishmaster270 you could make it support multi instance easily

      in the modulename.js when u sendSocketNotification… add the module id to the data

      in the node_helper, send the id back

      in the modulename.js in receiveSocketNotification
      check that the returned id matches this instances id

      sendSocketNotification from the node_helper is a broadcast , all instances get it at the same time, thus the need for the check.

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      W 1 Reply Last reply Jan 24, 2023, 7:27 PM Reply Quote 0
      • W Offline
        wishmaster270 Module Developer @sdetweil
        last edited by Jan 24, 2023, 7:27 PM

        @sdetweil Hi Sam, I will check that for the next release.
        I already added something similar to one of my other modules but did not know that there is a module id already and added a uuid instead.

        S 1 Reply Last reply Jan 24, 2023, 7:30 PM Reply Quote 0
        • S Offline
          sdetweil @wishmaster270
          last edited by Jan 24, 2023, 7:30 PM

          @wishmaster270 this.indentifier

          https://docs.magicmirror.builders/development/core-module-file.html#available-module-instance-properties

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 1
          • E Offline
            ELMAGO @wishmaster270
            last edited by Jan 25, 2023, 11:43 AM

            @wishmaster270

            ok, i test

            1 Reply Last reply Reply Quote 0
            • B BKeyport referenced this topic on Feb 1, 2023, 9:34 PM
            • 1
            • 2
            • 3
            • 4
            • 5
            • 5 / 5
            5 / 5
            • First post
              41/41
              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