MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. artieikon
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    A
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 13
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Divide Config.js into modules

      @Sean
      Lazy loading is always a quality thing to have. Anything that takes away from startup times and pre-processing generally helps user experience greatly.

      I think it’s been overlooked because of the “hide modules using an orchestrater” so its not like functionality is being lost. But the benefit of it would still be there

      posted in Feature Requests
      A
      artieikon
    • RE: Divide Config.js into modules

      @sdetweil said in Divide Config.js into modules:

      @artieikon require is not allowed in module.js, but you could use the getScripts function to load them

      Also

      Start mm in developers mode

      npm start dev
      

      Then select the console tab to see what’s going on in the modules
      Node_helpers display info in the terminal window

      You are amazing! thank you so much for this

      posted in Feature Requests
      A
      artieikon
    • RE: Divide Config.js into modules

      I also agree with this approach as it will allow us to script configuration/deployment easier. It would be similar to configurations done in other applications ie Nginx. For loadbalancing you just have a folder you can add all endpoints, ports, what have you and the system itself will read everything in there and make a master behind the scenes.

      I’ve tried to do something similar and stitch them together by hand but it seems that if i place any ‘require’ statement in the config.js file MM does not properly load my configs. I can monitor the logs and everything gets parsed and output properly, just when i go to the actual UI it just shows the standard “Please create a config file.” screen. I could not find any logs anywhere that show any additional errors of why this is not wanting to start.

      posted in Feature Requests
      A
      artieikon
    • 1 / 1