• 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.

Please create a config file

Scheduled Pinned Locked Moved Solved Troubleshooting
8 Posts 4 Posters 2.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.
  • J Offline
    jiminsav
    last edited by May 5, 2019, 12:10 AM

    I have a config file. i tried to add the remote control module exactly like it says on the github page, and it never works…works fine with the sample config. any ideas before i scrub it?

    S 1 Reply Last reply May 5, 2019, 5:05 AM Reply Quote 0
    • S Away
      sdetweil @jiminsav
      last edited by May 5, 2019, 5:05 AM

      @jiminsav sorry, i don’t understand what you said.

      i tried to add the remote control module exactly like it says on the github page, and it never works
      

      but then you said

      works fine with the sample config. 
      

      so it does work… like the doc says (sample config)…

      so, what is the next thing you are trying to do… so the config (please use the markdown feature to organize the stuff you post)… three backtics before (ket to left of number 1) and 3 backtics after

      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 May 5, 2019, 5:09 PM

        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.

        B S 2 Replies Last reply May 5, 2019, 5:13 PM Reply Quote 0
        • B Offline
          bhepler Module Developer @jiminsav
          last edited by May 5, 2019, 5:13 PM

          @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 Away
            sdetweil @jiminsav
            last edited by May 5, 2019, 5:17 PM

            @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 May 5, 2019, 5:37 PM

              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;}

              J 1 Reply Last reply May 5, 2019, 5:50 PM Reply Quote 0
              • J Offline
                justjim1220 Module Developer @jiminsav
                last edited by May 5, 2019, 5:50 PM

                @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 May 5, 2019, 6:19 PM

                  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
                  1 / 1
                  • First post
                    8/8
                    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