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.4k 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 @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
                  • 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