Read the statement by Michael Teeuw here.
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 😢
-
@mdhenriksen said in Hello-Lucy:
You can make MMM-pages and MMM-voice switch between specific pages with very minors tweaks.
Well, sure you can, but he didn’t mention wanting, or being able to do any modifications
-
@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