Read the statement by Michael Teeuw here.
Hello-Lucy
-
@mykle1 You’re right, guess I was too fast ;-)
-
@mdhenriksen this is my config file so far for pages not sure how I add a third page any ideas
{
module: ‘MMM-pages’,
config: {
modules:
[[ “MMM-NOAA3”, “clock”, “MMM-NetworkConnection”, “mmm-hue-lights”, “mmm-nest-status”, “calendar”, “mmm-systemtemperature”, “compliments”, “newsfeed”],
[ “MMM-GoogleMapsTraffic” ]],
excludes: [“MMM-page-indicator”],
}
}, -
@dazza120 said in Hello-Lucy:
@mdhenriksen works a treat but I don’t know how to make a third page. Not sure what I’ll put on it? But I’m sure I’ll find something to install if I figure out how to add more pages it’s stuck on two at the mo 😢
Hey Dazza!
It’s pretty easy actually. Now first you should install MMM-page-indicator as well. That makes it easier to see what page you are on.
Making several pages:
{ module: 'MMM-pages', config: { modules: [[ "weatherforecast", "newsfeed", "compliments"], [ "calendar", "compliments", "calendar2"], ["MMM-CalendarWeek"]], excludes: ["clock", "currentweather", "MMM-page-indicator", "MMM-voice"], } },
The pages are made in an 2D-array, which is basically a line of elements separated by the brackets “[” and “]”.
Your array starts at the double bracket, “[[” right before “weatherforecast” and ends at the “]]” right after “MMM-CalendarWeek”. Inside the array the pages are separated by one bracket.
So this is a page: (remember the comma at the end)
[ "weatherforecast", "newsfeed", "compliments"],
And this is a page:
[ "calendar", "compliments", "calendar2"],
And lastly this is a page as well:
["MMM-CalendarWeek"]
Remember that the array is zero-based which means that the first page will be number 0. The second will be number 1 and the third will be number 2.
Hope it helps! :grinning_face_with_smiling_eyes:
-
@mdhenriksen had the page indicator already but I was being a muppet, I didn’t recognise ]] as a closing part for that module, Thank you very much three pages now lol
-
@dazza120 It’s the small things that make the difference :grinning_face_with_smiling_eyes:
-
@mykle1 Thanks :D I have tested out the integration of both modules. However, I have modified the MMM-voice to have pages in it as stated in the Hello-Lucy documentation. The modules I have included in the MMM-voice pages does not hide when I go to the specific page of the MMM-pages where the MMM-voice is. Any idea how i can hide the modules?
-
@dazza120 - Please use the Markdown features of the forum when posting code.
-
@xclasher-0 said in Hello-Lucy:
The modules I have included in the MMM-voice pages does not hide when I go to the specific page of the MMM-pages where the MMM-voice is
This is a bit confusing. You’re using MMM- voice with Hello-Lucy AND MMM-pages? My guide on the Hello-Lucy repo is quite easy to follow but I can still help with that. If you’re trying to integrate MMM-pages with that as well then I can’t help you. MMM-pages is not my module. I’ve never used it. You would likely have to modify MMM-voice and MMM-pages
-
@xclasher-0 said in Hello-Lucy:
The modules I have included in the MMM-voice pages does not hide when I go to the specific page of the MMM-pages where the MMM-voice is. Any idea how i can hide the modules?
Hey there! I’m not 100% what you mean, but you can easily hide modules in MMM-pages. The ones that keep showing up might be in your “exclude” section of MMM-pages in your config.js. Anything in “exclude” will show up on every page you have, so you have to remove the modules from that.
-
I started thinking, "Why am I using page names like Page One, Page Two? Why not “Weather” for a page of weather modules? Or “Sports” for a page of sports modules? You get the idea. I hope. :-)
https://www.youtube.com/watch?v=Zsm_hi7XvM4&feature=youtu.be