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

    Posts

    Recent Best Controversial
    • RE: MM2 with dynamic configuration and style

      @sdetweil
      Thank you very much for clarifying the situation.
      So in this case i will run a separated instance for each room on a different port and then i will run a http server which will get the request from the browser and redirect to the convenient mm2 server by adding redirection conditions in the .htaccess file.

      The bowser will get the request let’s suppose on localhost and the result should be like the following:
      hall: redirecting from http://localhost/hall => http://localhost:8080
      bath: redirecting from http://localhost/bath => http://localhost:8081
      room1: redirecting from http://localhost/room1 => http://localhost:8082
      room2: redirecting from http://localhost/room2 => http://localhost:8083

      The whole situation is clear now, thank you for your help

      posted in Development
      M
      mohamed.elleuch
    • RE: MM2 with dynamic configuration and style

      @sdetweil :
      thank you very much for your fast reply,
      The solution of an instance on different port for each room is good. but i m asking if there is another solution programmatically.
      I know that we are only showing only 1 page at a time. but let me give you another example to simplify what i want. maybe this will help you to suggest another solution:
      imagine that we will use this module MMM-RemoteCompliments which shows the content of a file on the linked google drive account. i will create a different google drive account for each room and i want to create a folder for each room that will contain the credentials, token, css for this room that will be used from this module to connect to the drive

      posted in Development
      M
      mohamed.elleuch
    • MM2 with dynamic configuration and style

      Hello everybody,
      I m working on a project on MM2 and i integrated and customised a lot of modules successfully thanks to the documentation and this forum. but the thing that i want to do now, i could’t find it. that s why i m posting.
      So what i want is i can separate it in 2 steps:

      1. i need to make a different setup of modules in which the css and the modules’s config should be dynamically loaded.
      2. i need to call each setup through browser from different endpoint (exp: localhost:8080/bath, localhost:8080/hall, localhost:8080/room1, localhost:8080/room2).

      So as you have noticed, the main purpose is to put different MM in diff places (hall, bath, room1, room2) and customize each one from different folder that contains the modules config and the css files). for example the module MMM-MP3Player is available in all setups but in each place should have different ‘musicPath’ and so on

      posted in Development
      M
      mohamed.elleuch
    • 1 / 1