• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Combination MMM-Carousel, MMM-OnScreenMenu & MMM-Keybindings

Scheduled Pinned Locked Moved Unsolved Troubleshooting
3 Posts 2 Posters 1.1k Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    Mondfisch
    last edited by Mar 5, 2019, 8:23 PM

    Hello,

    I have combined the 3 Modules MMM-Carousel, MMM-OnScreenMenu and MMM-KeyBindings.
    But I dont get the Keyboard-Thing…

    		{
        			module: 'MMM-KeyBindings',
        				config: {
            			evdev: { enabled: false },
    //        			enableKeyboard: true,
    					}
    		},
    
            	{
                		module: 'MMM-Carousel',
                		position: 'bottom_bar', // Required only for navigation controls
                			config: {
                    			transitionInterval: 10000,
                    			ignoreModules: ['clock', 'alert', 'MMM-OnScreenMenu'],
                    			mode: 'slides',
    					slideTransitionSpeed: 1500,
                    			showPageIndicators: true,
                    			showPageControls: true,
                    			slides: {
                        			main: ['calendar', 'compliments', 'currentweather'],
                        			"Slide 2": ['weatherforecast', 'mvgmunich', 'MMM-AVStock', 'newsfeed'],
                        			"Slide 3": ['MMM-LICE']
                    			        },
                    			keyBindings: {
                        					enabled: true,
                        					map: {
                            				NextSlide: "ArrowRight",
                            				PrevSlide: "ArrowLeft",
                            				Slide0:    "Home",
                       				     	     },
                        					mode: "DEFAULT"
                    				     }
                				}
            	},
    
    	        {
                		module: 'MMM-OnScreenMenu',
                		position: 'bottom_left',
                		/* Valid positions: 'top_right', 'top_left', 'bottom_right', 'bottom_left' */
                		config: {
                    		touchMode: true,
            			menuItems: {
                				monitorOff: { title: "Turn Off Monitor", icon: "television", source: "SERVER" },
                				restart: { title: "Restart MagicMirror", icon: "recycle", source: "ALL" },
                				refresh: { title: "Refresh MagicMirror", icon: "refresh", source: "LOCAL" },
                				reboot: { title: "Reboot", icon: "spinner", source: "ALL" },
                				shutdown: { title: "Shutdown", icon: "power-off", source: "ALL" },
            				   },
                    		enableKeyboard: true,
    				enableKeyBindings: true,
    				keyBindingsMode: "OSM",
    				keyBindings: {
    						enabled: true,
    						map: {
    							Up: "ArrowUp",
    							Down : "ArrowDown",
    							Select: "Enter",
    							Close: "Return",
    							Menu: "Menu",
    						     },
    				kbMultiInstance: true,
    				keyBindingsTakeFocus: "Menu",
                    		menuName: "Main",
    					     }
                    	        }
    
    

    At the Moment, only the OnScreenMenu reacts on pressing the Menu-Key… When I change the “// enableKeyboard: true,” in
    KeyBindings-config, the Carousel reacts on the Arrow-Keys for sliding
    the different Mirror-Screens…
    But I can’t get it to work with BOOTH Modules, ScreenMenu AND Carousel…So when I press left & right Arrow for sliding, while pressing
    Menu/ArrowUp/Down for the Menu and choosing a Option…

    Can anyone point to the right Direction, please?

    Thanx…

    1 Reply Last reply Reply Quote 0
    • L Offline
      l0b5ter
      last edited by Mar 17, 2020, 1:43 PM

      Hi, cant really help here. But do you mind sharing what you did to make MMM-Kebindings work? Im really stuck there :(
      trying to change page based of a key press

      1 Reply Last reply Reply Quote 0
      • M Offline
        Mondfisch
        last edited by Mar 18, 2020, 4:56 AM

        Hi,

        I’m not sure, wheter Keybindings really works, since only OnScreenMenu reacts on pressing the Menu Key.
        I’ve played around the last Month with Enabling Keybindings in every of the Modules (OnScreenMenu,Key-
        Bindings,Carousel) by changing that… Never got it to work…
        I found out, that the hidden Mousecoursor, when its “over” the Arrows of Carousel, reacts on pressing them.
        So I am able to control them by Mouse, at least…
        the Rest I never get to work together…

        KeyBindings is still Default, as you can see above…

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Enjoying MagicMirror? Please consider a donation!
        MagicMirror created by Michael Teeuw.
        Forum managed by Sam, technical setup by Karsten.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy