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

Does node_helper know if all module instances are already started?

Scheduled Pinned Locked Moved Development
15 Posts 3 Posters 4.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 Away
    sdetweil @MMRIZE
    last edited by Jun 28, 2022, 1:06 PM

    @MMRIZE and config. is accessible in node_helper, so one could count the module instances

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    A 1 Reply Last reply Jun 28, 2022, 2:00 PM Reply Quote 0
    • A Offline
      Adam 2 @sdetweil
      last edited by Jun 28, 2022, 2:00 PM

      @sdetweil Is config file accessible from the node_helper? I thought that only core module files can access it and have to send it back to node_helper if needed.

      S 1 Reply Last reply Jun 28, 2022, 4:08 PM Reply Quote 0
      • S Away
        sdetweil @Adam 2
        last edited by Jun 28, 2022, 4:08 PM

        @Adam-2 see the global config var in the node_helper

        its EVERYTHING in config.js

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        A 1 Reply Last reply Jun 29, 2022, 8:03 AM Reply Quote 0
        • A Offline
          Adam 2 @sdetweil
          last edited by Jun 29, 2022, 8:03 AM

          @sdetweil I’m searching the documentation and cannot find this global config var. How exactly can I access it?

          S 1 Reply Last reply Jun 29, 2022, 11:52 AM Reply Quote 0
          • S Away
            sdetweil @Adam 2
            last edited by sdetweil Jun 29, 2022, 11:54 AM Jun 29, 2022, 11:52 AM

            @Adam-2 config.

            it’s not in the doc

            config.modules is the array of module entries

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            A 1 Reply Last reply Jul 7, 2022, 9:09 AM Reply Quote 0
            • A Offline
              Adam 2 @sdetweil
              last edited by Jul 7, 2022, 9:09 AM

              @sdetweil Works as you wrote. Sadly its not in the documentation.

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