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

How to run two instances of one module?

Scheduled Pinned Locked Moved Unsolved Troubleshooting
2 Posts 2 Posters 1.1k 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.
  • H Offline
    hefal
    last edited by Jul 22, 2019, 11:10 PM

    Heya guys,

    So I found a perfect module to manage my hue-lights:

    https://github.com/michael5r/mmm-hue-lights

    But since I have my rooms spread out across two hue bridges I cant display all my rooms.

    This is going to sound so stupid, but I tried renaming all the instances of the modules name in order to make another bridge config possible.
    It did work, kinda - but the renamed module acts weird and prompts the HUE API until it gives up after a couple of minutes. It also causes a memory leak which leads MM to crash after a couple of minutes.

    Help would be very much appreciated!

    S 1 Reply Last reply Jul 23, 2019, 12:59 AM Reply Quote 0
    • S Away
      sdetweil @hefal
      last edited by Jul 23, 2019, 12:59 AM

      @hefal most modules don’t support multiple instance directly.

      You can make a complete copy if the folder, changing it’s name, AND the name of the top level J’s file that should match the folder name,… AND you gave to edit that file and change the module registration string to match the filename and folder name

      Then use the new module name in config.js

      Sam

      How to add modules

      learning how to use browser developers window for css changes

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