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.

    Using different configs

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    6 Posts 2 Posters 41 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.
    • C Offline
      chrga
      last edited by

      Hi all,
      I am running mm in a client server scenario with the server being on a proxmox server and client being a pi3 with custom install.

      Things work really well.
      I now want to change my setup so that I can switch between 2 configs with the first one being a slideshow in the background with a couple of modules showing data in front. The second is just the slideshow, just brighter.

      I am controlling the server with the remote module and via an ioBroker home automation.
      I get it to work so I can hide modules via the remote. Unfortunately the pi is rather slow, so it takes some time to reload the page and then the remote script that would hide the modules might run too early.

      So my thought was to use two different configs. I use the setup in the instructions on how to use two configs, but looks like that does not work in a client server scenario.

      Has anyone implemented this correctly?

      Any recoomendations welcome!

      Thanks,
      chrga

      S 2 Replies Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @chrga
        last edited by

        @chrga you could use MMM-pages to define two logical ‘hidden’ pages, and use notifications to switch between them
        only one config…

        MM can only show or hide content… but the grouping of visible content defines a ‘logical’ page…

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Do not disturb
          sdetweil @chrga
          last edited by

          @chrga server is where the configs work. client doesn’t know anything except the port number , which MUST be different if both run at the same time.

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • C Offline
            chrga
            last edited by

            ok, then I will look into pages. But remote does not allow to change the page, that is why i did not look into it.
            And it should work with 2 configs, right?

            S 1 Reply Last reply Reply Quote 0
            • S Do not disturb
              sdetweil @chrga
              last edited by

              @chrga yeh, page is a client thing not server,
              Client connects and server sends index.html like any other web server
              May be browser cache issues if the page changes on the same url, we don’t have a page expiry setting on the url

              Again two configs on same port is fine if shutdown/startup
              Two configs loaded on two instances on different ports is fine
              Client has to request a different url

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              C 1 Reply Last reply Reply Quote 0
              • C Offline
                chrga @sdetweil
                last edited by

                @sdetweil ok, that makes sense, caching might be an issue!

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