Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MMM-OnScreenMenu Toggle Multiple Modules On/Off #16

Open
JonoGee opened this issue Jun 21, 2019 · 2 comments
Open

MMM-OnScreenMenu Toggle Multiple Modules On/Off #16

JonoGee opened this issue Jun 21, 2019 · 2 comments

Comments

@JonoGee
Copy link

JonoGee commented Jun 21, 2019

Hi shbatm. First let me say what a great module! Fabulous work.

I wondered however, is it possible to configure a button on the menu to toggle on/off a user specified number of modules, E.g. one button to turn on/off whatever modules are specified in Config file.
Best Regards

@shbatm
Copy link
Owner

shbatm commented Jun 21, 2019

It is possible with some changes... I will have to check next week when I am back at my computer.

An alternative is to use MMM-Carousel w/ Navigation in slide mode and use the menu to control which slide you're on

@djax54
Copy link

djax54 commented Dec 4, 2024

edit: Figured it out.

notify1: { title: "Show Grocery List", icon: "cart-shopping", name: "MMM-Carousel", notification: "CAROUSEL_NEXT" },
notify2: { title: "Show Calendar", icon: "calendar", name: "MMM-Carousel", notification: "CAROUSEL_PREVIOUS" },

The relavent areas of config file JIC it helps someone who happens along this post.

modules: [
{
module: "MMM-KeyBindings",
config: {
evdev: {enabled: false },
enableKeyboard: true,
actions: [
{
key: "ArrowLeft",
notification: "CAROUSEL_PREVIOUS" },
{
key:"ArrowRight",
notification: "CAROUSEL_NEXT" },
]
}
},
{
module: "MMM-Carousel",
position: "bottom_bar",
config: {
transitionInterval: 0,
showPageIndicators: true,
showPageControls: true,
ignoreModules: ['clock', 'alert', 'updatenotification', 'weather', 'MMM-OnScreenMenu'],
mode: 'slides',
slides: [
['MMM-MonthlyCalendar'],
['MMM-GoogleDocs-Notes']
],
keyBindingsMode: "DEFAULT",
keyBindings: {
Nextslide: "ArrowRight",
Prevslide: "ArrowLeft",
Slide0: "Home"
}
}
},
{
module: "MMM-MonthlyCalendar",
position: "bottom_bar",
animateIn: "slideInLeft",
animateOut: "slideOutRight",
config: {
instance: "Frame2",
mode: "fourweeks",
calendars: [
{
fetchInterval: 7 * 24 * 60 * 60 * 1000,
symbol: "calendar-check",
url: "https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics"
}
]
}
},
{
module: "MMM-OnScreenMenu",
position: "top_right",
config: {
touchMode: true,
menuItems: {
refresh: { title: "Refresh", icon: "recycle", source: "ALL" },
notify1: { title: "Show Grocery List", icon: "cart-shopping", name: "MMM-Carousel", notification: "CAROUSEL_NEXT" },
notify2: { title: "Show Calendar", icon: "calendar", name: "MMM-Carousel", notification: "CAROUSEL_PREVIOUS" },
minimize: {title: "Show Desktop", icon: "minimize" },
shutdown: { title: "Shutdown", icon: "power-off" }
},
enableKeyboard: true,
}
},
{
module: "MMM-GoogleDocs-Notes",
position: "bottom_bar",
animateIn: "slideInLeft",
animateOut: "slideOutRight",
header: "Lists:",
config: {
maxNotes: 3,
pollFrequency: 5 * 60 * 1000, //5 minutes;
showDatePosted: true,
dateFormatExact: 'MM-DD-YY HH:mm',
dateFormatShort: 'MM-DD',
notesPrefix: 'MMM'
}
},
]
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants