Read the statement by Michael Teeuw here.
Using different configs
-
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 -
@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…
-
@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.
-
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? -
@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 urlAgain 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 -
@sdetweil ok, that makes sense, caching might be an issue!
