Hey Robiv8,
First, I will address a couple of things.
All lines must also be marked with “” signs:
To be clear, it is not necessary to put quotes around page names or props. For example:
"pages": {"main": "top_right", "fun": "top_left"} is exactly the same as
pages: {main: "top_right", fun: "top_left"}
I just believe that it is more clear for everything to be specified as strings.
Even more if you did not need to provide the entire modules and each line with extra signs:
Could you elaborate a little bit about what this means? What do you mean when you say each line with extra signs?
What would be great if you had a main config and for each additional page its own config which is then read out:
I’m still very much open to developing this further and possibly adding more ways to create pages.
I think I get the idea that when you have many modules it can be hard to keep track of what modules have been put on what pages and where, but I am unclear on what exactly you are suggesting.
One idea that I had during development was to have a pages section in the config.js like this:
address: "localhost",
port: 8081,
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"],
modules: [
...
],
pages: {
"main": {
"calendar": "top_left",
"MMM-Bob-Ross": "bottom_left",
"clock": "top_right",
"weatherforecast": "bottom_right",
"newsfeed": "bottom_center"
},
"fun": {
"clock": "top_left",
"MMM-Lunartic": "bottom_right",
"MMM-Astronauts": "bottom_left",
"MMM-Reddit": "top_right"
}
}
In order to condense the page config down when there are just too many modules to handle. Something like this would be very easy to implement.
Is this along the lines of what you were suggesting?