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.6k 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

      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
                      • S Offline
                        seso
                        last edited by

                        Hi @teitlebot , please can you share your config file as i am tried to edit mine to bypass the problem and can’t figure it out

                        1 Reply Last reply Reply Quote 0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • 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