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.

    MMM-Remote-Control

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    11 Posts 3 Posters 4.3k 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.
    • Y Offline
      yorickmolema
      last edited by

      Hello,
      I have a problem with the remote control of the MM. I have it up and running, but I can’t edit the view in the browser on any device. Any help?

      > magicmirror@2.7.1 start /home/pi/MagicMirror
      > sh run-start.sh
      
      Starting MagicMirror: v2.7.1
      Loading config ...
      Loading module helpers ...
      Initializing new module helper ...
      Module helper loaded: newsfeed
      No helper found for module: MMM-NowPlayingOnSpotify.
      No helper found for module: clock.
      Initializing new module helper ...
      Module helper loaded: calendar
      No helper found for module: MMM-SmartWebDisplay.
      Initializing new module helper ...
      Module helper loaded: MMM-Remote-Control
      No helper found for module: phone_notification.
      No helper found for module: currentweather.
      No helper found for module: weatherforecast.
      No helper found for module: compliments.
      All module helpers loaded.
      Starting server on port 8080 ... 
      Server started ...
      Connecting socket for: newsfeed
      Starting module: newsfeed
      Connecting socket for: calendar
      Starting node helper for: calendar
      Connecting socket for: MMM-Remote-Control
      Starting node helper for: MMM-Remote-Control
      Sockets connected & modules started ...
      Launching application.
      Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/p6u2bqfvvaio8srmslosp192ads3ot45%40import.calendar.google.com/public/basic.ics - Interval: 300000
      Create new news fetcher for url: https://www.nu.nl/rss/Algemeen - Interval: 300000
      Create new news fetcher for url: https://www.nu.nl/rss/Internet - Interval: 300000
      Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/yorickmolema%40gmail.com/private-65a92b2f70cf000d5254428a6bc5fdf9/basic.ics - Interval: 300000
      Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/c3e3hs5p6e569ge27fk5c8joks%40group.calendar.google.com/private-49bb398870c9b92031f815bf7563c766/basic.ics - Interval: 300000
      Not initialized, have you opened or refreshed your browser since the last time you started MagicMirror?
      Not initialized, have you opened or refreshed your browser since the last time you started MagicMirror?
      Not initialized, have you opened or refreshed your browser since the last time you started MagicMirror?
      Not initialized, have you opened or refreshed your browser since the last time you started MagicMirror?
      
      

      In the browser i get the same pop-up. I have added my ip-address to the whitelist so i can acces it. The only thing I can’t do is edit the view.

      T 1 Reply Last reply Reply Quote 0
      • Y Offline
        yorickmolema
        last edited by

        This is my config:

        
        /* Magic Mirror Config Sample
         *
         * By Michael Teeuw http://michaelteeuw.nl
         * MIT Licensed.
         *
         * For more information how you can configurate this file
         * See https://github.com/MichMich/MagicMirror#configuration
         *
         */
        
        var config = {
         //address: "localhost", // Address to listen on, can be:
         address: "0.0.0.0",
        	                      // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
        	                      // - another specific IPv4/6 to listen on a specific interface
        	                      // - "", "0.0.0.0", "::" to listen on any interface
        	                      // Default, when address config is left out, is "localhost"
        	port: 8080,
        	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1", "192.168.123.X"], // Set [] to allow all IP addresses
        	                                                      // or add a specific IPv4 of 192.168.1.5 :
        	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
        	                                                       // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
        	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
        
        	language: "nl",
        	timeFormat: 24,
        	units: "metric",
        
        	modules: [
        			{
        			module: "newsfeed",
        			position: "top_bar",
        			config: {
        				feeds: [
        					{
        						title: "Nu.nl",
        						url: "https://www.nu.nl/rss/Algemeen"
        					},
        					{
        						title: "Nu.nl",
        						url: "https://www.nu.nl/rss/Internet"
        					}
        				],
        				showSourceTitle: false,
        				showPublishDate: false
        			}
        		},
        		{
        			module: "clock",
        			position: "top_left"
        		},	
        		{
        		module: 'MMM-SmartWebDisplay',
        		position: 'middle_center',	// This can be any of the regions.
        		config: {
        			// See 'Configuration options' for more information.
        			logDebug: false, //set to true to get detailed debug logs. To see them : "Ctrl+Shift+i"
        			height:"100%", //hauteur du cadre en pixel ou %
        			width:"100%", //largeur
                       		updateInterval: 0, //in min. Set it to 0 for no refresh (for videos)
                        	NextURLInterval: 0, //in min, set it to 0 not to have automatic URL change. If only 1 URL given, it will be updated
                        	displayStateInfos: false,	//to display if the module is on autoloop, or stop. 
                        	displayLastUpdate: true, //to display the last update of the URL
        			displayLastUpdateFormat: 'ddd - HH:mm:ss', //format of the date and time to display
                        	url: [""], //source of the URL to be displayed
                        	scrolling: "no" // allow scrolling or not. html 4 only
        			}
        	},
        	{
        	        module: 'MMM-Remote-Control',
        	        // uncomment the following line to show the URL of the remote control on the mirror
        	        // , position: 'bottom_left'
        	        // you can hide this module afterwards from the remote control itself
        		position: "bottom_left",
        	        config: {
        	          customCommand: {},  // Optional, See "Using Custom Commands" below
        	        customMenu: "custom_menu.json", // Optional, See "Custom Menu Items" below
        	        showModuleApiMenu: true, // Optional, Enable the Module Controls menu
                	apiKey: "",         // Optional, See API/README.md for details    
        	        }
            	},			                
        		{
        			module: "currentweather",
        			position: "top_right",
        			config: {
        				location: "Meppel",
        				locationID: "2750947",  //ID from http://www.openweathermap.org/help/city_list.txt
        				appid: "c3494d09f5358b30a53a3167af88d38d"
        				}
        
        		},
        		{
        			module: "weatherforecast",
        			position: "top_right",
        			header: "Weather Forecast",
        			config: {
        				location: "Meppel",
        				locationID: "2750947",  //ID from http://www.openweathermap.org/help/city_list.txt
        				appid: "c3494d09f5358b30a53a3167af88d38d"
        			}
        		},
        		{
        			module: "compliments",
        			position: "",	// This can be any of the regions.
        										// Best results in one of the middle regions like: lower_third
        			config: {
        				compliments: {
        					day_sunny: [
        						"Today is a sunny day",
        						"It's a beautiful day"
        					],
        					snow: [
        						"Snowball battle!"
        					],
        					rain: [
        						"Don't forget your umbrella"
        					],
        					anytime: [
        						"Hey there sexy!"
        					],
        					morning: [
        						"Good morning, handsome!",
        						"Enjoy your day!",
        						"How was your sleep?",
        						"Good morning, sunshine!",
        					        "Who needs coffee when you have your smile?",
               						"Go get 'em, Tiger!"
        					],
        					afternoon: [
        						"Hello, beauty!",
        						"You look sexy!",
        						"Looking good today!",
        					        "Hitting your stride!",
        					        "You are making a difference!",
                					"You're more fun than bubble wrap!"
        					],
        					evening: [
        						"Wow, you look hot!",
        						"You look nice!",
        						"Hi, sexy!",
        						"You made someone smile today, I know it.",
        					        "You are making a difference.",
                					"The day was better for your efforts."
        						],
        						}
        				}
        			
        	}	
        	
        	]
        
        };
        
        /*************** DO NOT EDIT THE LINE BELOW ***************/
        if (typeof module !== "undefined") {module.exports = config;}
        
        
        
        1 Reply Last reply Reply Quote 0
        • Y Offline
          yorickmolema
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • T Offline
            teitlebot @yorickmolema
            last edited by

            @yorickmolema
            Having the same issue. any luck?

            Y 1 Reply Last reply Reply Quote 0
            • Y Offline
              yorickmolema @teitlebot
              last edited by

              @teitlebot Nope, I have updated all the software on my pi, but that didn’t help.

              T 1 Reply Last reply Reply Quote 0
              • T Offline
                teitlebot @yorickmolema
                last edited by

                @yorickmolema It actually fixed itself by me but im not sure what I did. It tried moving things around in the config file but not sure what else. I also dont get my IP address on screen but thats a separate issue.

                Y 1 Reply Last reply Reply Quote 0
                • Y Offline
                  yorickmolema @teitlebot
                  last edited by

                  @teitlebot Can you send your config?

                  1 Reply Last reply Reply Quote 0
                  • Y Offline
                    yorickmolema
                    last edited by

                    If I click away the error and press save I get the following error in the terminal where I started MM:

                    undefined
                    Whoops! There was an uncaught exception...
                    TypeError: Cannot read property 'length' of undefined
                        at Class.saveDefaultSettings (/home/pi/MagicMirror/modules/MMM-Remote-Control/node_helper.js:898:44)
                        at Object.callback (/home/pi/MagicMirror/modules/MMM-Remote-Control/node_helper.js:679:56)
                        at Object.run (/home/pi/MagicMirror/modules/MMM-Remote-Control/node_helper.js:547:26)
                        at Timeout._onTimeout (/home/pi/MagicMirror/modules/MMM-Remote-Control/node_helper.js:555:28)
                        at ontimeout (timers.js:427:11)
                        at tryOnTimeout (timers.js:289:5)
                        at listOnTimeout (timers.js:252:5)
                        at Timer.processTimers (timers.js:212:10)
                    MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                    If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                    
                    
                    T 1 Reply Last reply Reply Quote 0
                    • T Offline
                      teitlebot @yorickmolema
                      last edited by sdetweil

                      @yorickmolema

                      /* Magic Mirror Config Sample
                       *
                       * By Michael Teeuw http://michaelteeuw.nl
                       * MIT Licensed.
                       *
                       * For more information how you can configurate this file
                       * See https://github.com/MichMich/MagicMirror#configuration
                       *
                       */
                      
                      var config = {
                      	address: "0.0.0.0", // Address to listen on, can be:
                      	                      // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
                      	                      // - another specific IPv4/6 to listen on a specific interface
                      	                      // - "", "0.0.0.0", "::" to listen on any interface
                      	                      // Default, when address config is left out, is "localhost"
                      	port: 8080,
                      	ipWhitelist: ["127.0.0.1", "192.168.1.1/24"],
                      	language: "en",
                      	timeFormat: 12,
                      	units: "imperial",
                      
                      	modules: [
                      		{
                      			module: "alert",
                      
                      disabled: true,
                      		},
                      
                      {
                          module: 'MMM-Remote-Control',
                      disabled: false,
                          // uncomment the following line to show the URL of the remote control on the mirror
                          position: 'bottom_left',
                          // you can hide this module afterwards from the remote control itself
                        config: {
                       customCommand: {},  // Optional, See "Using Custom Commands" below
                            customMenu: "custom_menu.json", // Optional, See "Custom Menu Items" below
                             showModuleApiMenu: true, // Optional, Enable the Module Controls menu
                            apiKey: "",         // Optional, See API/README.md for details
                         }
                      },
                      module.exports = config;}
                      
                      Y 1 Reply Last reply Reply Quote 0
                      • Y Offline
                        yorickmolema @teitlebot
                        last edited by

                        @teitlebot I have the following config now:

                        /*************** AUTO GENERATED BY REMOTE CONTROL MODULE ***************/
                        
                        var config = 
                        {
                          address: '0.0.0.0',
                          electronOptions: {},
                          ipWhitelist: ['127.0.0.1','::ffff:127.0.0.1','::1', '192.168.123.26','192.168.123.28','192.168.123.25',],
                          language: 'nl',
                          modules: [
                            {
                        	module: 'MMM-Remote-Control',
                        	disabled: false,
                        	config: {
                        		customCommand: {},
                        		customMenu: 'custom_menu.json',
                        		showModuleApiMenu: 'true',
                        		apikey: '',
                        		}
                            },
                        {
                        		module: "newsfeed",
                        		position: "bottom_bar",	// This can be any of the regions. Best results in center regions.
                        		config: {
                        			// The config property is optional.
                        			// If no config is set, an example calendar is shown.
                        			// See 'Configuration options' for more information.
                        
                        			feeds: [
                        				{
                        					title: "New York Times",
                        					url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml",
                        				},
                        				{
                        					title: "BBC",
                        					url: "http://feeds.bbci.co.uk/news/video_and_audio/news_front_page/rss.xml?edition=uk",
                        				},
                        			]
                        		}
                        	}
                        ],
                          paths: {
                            modules: 'modules',
                            vendor: 'vendor'
                          }
                        }
                        
                        /*************** DO NOT EDIT THE LINE BELOW ***************/
                        if (typeof module !== 'undefined') {module.exports = config;}
                        
                        

                        And it doesn’t work yet. I couldn’t copy your config cause then i got an error that the text editor wouldn’t save it.

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • 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