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

    Posts

    Recent Best Controversial
    • RE: Magic Mirror Server Only Mode

      @sdetweil said in Magic Mirror Server Only Mode:

      but this is not connection focused no unique storage by user/connection…

      Not sure If I understand the last part? Connection will be handled by Express and I can add user management module later.

      What I am thinking is that if I am able to load multiple modules for different user (trying it with multi config file). I can add logic to save module configuration for each user in DB (may be mongo) and whenever user logs in - fetch the module configuration from DB for that user and voila !!! (again easier said then done :))

      posted in General Discussion
      P
      preetpuri
    • RE: Magic Mirror Server Only Mode

      Thanks, this helps. I made some quick changes in server.js to see if I can download different config.js based on user id (which has modules defined in it) but whenever browser renders with config1.js it shows me error page with “Please create a Config File”. So looks like config.js in tied or hardcoded with main app context. Still trying to troubleshoot but looks like it might not be that simple :(

      var userId = req.query.user;
      		if(userId === undefined){
      			configFile = "config/config.js";
      			console.log(+configFile)
      		} else {
      			configFile = "config/config" + userId	 + ".js";
      			console.log(configFile)
      		}
      
      
      posted in General Discussion
      P
      preetpuri
    • RE: Magic Mirror Server Only Mode

      @sdetweil yeah, that’s what I think. I am trying to understand the flow in code to see if there is a simple/easier way to do it. Node.js not my strong suite so any inputs will be appreciated.

      posted in General Discussion
      P
      preetpuri
    • Magic Mirror Server Only Mode

      Can we run single instance of magic mirror to cater to multiple clients with different module configuration. this is more of request where we let the Magic mirror run as Web Server and respond based on user profile and custom configuration?

      posted in General Discussion
      P
      preetpuri
    • 1 / 1