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.

    Please create a config file

    Scheduled Pinned Locked Moved Solved Troubleshooting
    8 Posts 4 Posters 3.0k 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.
    • J Offline
      jiminsav
      last edited by

      what i am trying to express, is that Magic Mirror works fine out the box, but when i add the remote module, and edit the config.js file, the magic Mirror shows “please add a config file” when it starts. if i then use the backup and rename it to Config.js, the program works fine.
      i add the module info EXACTLY as it shows in the Github page for the remote control module, and it does not work. i copy and pasted a few examples from this forum, it still does not start Magic Mirror. at this point, it’s pretty worthless if i can’t remote access it.

      bheplerB S 2 Replies Last reply Reply Quote 0
      • bheplerB Offline
        bhepler Module Developer @jiminsav
        last edited by

        @jiminsav - It sounds like there’s an error in the module configuration. So let’s solve that.

        Please copy & paste the module configuration here, using the markdown features. We’ll look it over and see if we can spot the problem.

        The other technique is to run the config checker that is included in the module. Change to your Magic Mirror folder and run npm run config:check

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @jiminsav
          last edited by

          @jiminsav yes, the MMM-Remote-Control module text has an error…

          {
              module: 'MMM-Remote-Control'   // < ---- missing comma, add it
              // 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
              }
          },
          

          as @bhepler has added, there are ways to check out the config…

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • J Offline
            jiminsav
            last edited by

            here is my config file. I don’t understand markdown feature. might not work with FireFox
            *

            • 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: [], // 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: "en",
            timeFormat: 24,
            units: "metric",
            
            modules: [
            	{
            		module: "alert",
            	},
            	{
            		module: "updatenotification",
            		position: "top_bar"
            	},
            	{
            		module: "clock",
            		position: "top_left"
            	},
            	{
            		module: "calendar",
            		header: "US Holidays",
            		position: "top_left",
            		config: {
            			calendars: [
            				{
            					symbol: "calendar-check",
            					url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics"
            				}
            			]
            		}
            	},
            	{
            		module: "compliments",
            		position: "lower_third"
            	},
            	{
            		module: "currentweather",
            		position: "top_right",
            		config: {
            			location: "New York",
            			locationID: "",  //ID from http://bulk.openweathermap.org/sample/; unzip the gz file and find your city
            			appid: "YOUR_OPENWEATHER_API_KEY"
            		}
            	},
            	{
            		module: "weatherforecast",
            		position: "top_right",
            		header: "Weather Forecast",
            		config: {
            			location: "New York",
            			locationID: "5128581",  //ID from https://openweathermap.org/city
            			appid: "YOUR_OPENWEATHER_API_KEY"
            		}
            	},
            	{
            		module: "newsfeed",
            		position: "bottom_bar",
            		config: {
            			feeds: [
            				{
            					title: "New York Times",
            					url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
            				}
            			],
            			showSourceTitle: true,
            			showPublishDate: true
            		}
            		{
            			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
            			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
            			}
            		},
            	},
            ]
            

            };

            /*************** DO NOT EDIT THE LINE BELOW ***************/
            if (typeof module !== “undefined”) {module.exports = config;}

            justjim1220J 1 Reply Last reply Reply Quote 0
            • justjim1220J Offline
              justjim1220 Module Developer @jiminsav
              last edited by

              @jiminsav said in Please create a config file:

              module: 'MMM-Remote-Control'

              missing comma after this line

              should be:
              module: 'MMM-Remote-Control',

              "Life's Too Short To Dance With Ugly People"
              Jim Hallock - 1995

              1 Reply Last reply Reply Quote 0
              • J Offline
                jiminsav
                last edited by

                Folks. i figured it out. just commented out everything except the module name and it works. and i did add the comma. thanks

                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