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.

    messed up my config.. MM tells me to create a config file

    Scheduled Pinned Locked Moved Troubleshooting
    31 Posts 6 Posters 24.0k Views 6 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.
    • strawberry 3.141S Offline
      strawberry 3.141 Project Sponsor Module Developer @johnnyboy
      last edited by

      @johnnyboy as i said your pictures don’t show everything and your code snippet is corrupt, why you not just trying it out and if it doesnt work you report again?

      Please create a github issue if you need help, so I can keep track

      johnnyboyJ 1 Reply Last reply Reply Quote 0
      • johnnyboyJ Offline
        johnnyboy @strawberry 3.141
        last edited by johnnyboy

        This post is deleted!
        johnnyboyJ 1 Reply Last reply Reply Quote 0
        • johnnyboyJ Offline
          johnnyboy @johnnyboy
          last edited by johnnyboy

          This post is deleted!
          johnnyboyJ 1 Reply Last reply Reply Quote 0
          • johnnyboyJ Offline
            johnnyboy @johnnyboy
            last edited by johnnyboy

            This post is deleted!
            johnnyboyJ 1 Reply Last reply Reply Quote 0
            • johnnyboyJ Offline
              johnnyboy @johnnyboy
              last edited by johnnyboy

              This post is deleted!
              johnnyboyJ 1 Reply Last reply Reply Quote 0
              • johnnyboyJ Offline
                johnnyboy @johnnyboy
                last edited by johnnyboy

                This post is deleted!
                johnnyboyJ 1 Reply Last reply Reply Quote 0
                • johnnyboyJ Offline
                  johnnyboy @johnnyboy
                  last edited by johnnyboy

                  This post is deleted!
                  johnnyboyJ strawberry 3.141S 2 Replies Last reply Reply Quote 0
                  • johnnyboyJ Offline
                    johnnyboy @johnnyboy
                    last edited by johnnyboy

                    This post is deleted!
                    johnnyboyJ 1 Reply Last reply Reply Quote 0
                    • johnnyboyJ Offline
                      johnnyboy @johnnyboy
                      last edited by johnnyboy

                      This post is deleted!
                      johnnyboyJ 1 Reply Last reply Reply Quote 0
                      • johnnyboyJ Offline
                        johnnyboy @johnnyboy
                        last edited by johnnyboy

                        This post is deleted!
                        1 Reply Last reply Reply Quote 1
                        • strawberry 3.141S Offline
                          strawberry 3.141 Project Sponsor Module Developer @johnnyboy
                          last edited by

                          @johnnyboy as I said earlier you can use single and double quotes, it doesn’t matter which one, but it has to be either " or ' and you used a backtick `, which is not working

                          Please create a github issue if you need help, so I can keep track

                          johnnyboyJ 2 Replies Last reply Reply Quote 0
                          • johnnyboyJ Offline
                            johnnyboy @strawberry 3.141
                            last edited by johnnyboy

                            This post is deleted!
                            1 Reply Last reply Reply Quote 0
                            • W Offline
                              wizz
                              last edited by

                              @johnnyboy said in messed up my config.. MM tells me to create a config file:

                              };

                              I see that you got one }; that are making the error should look like this }, if i am right but i am new to this to so i can be wrong :)

                              johnnyboyJ 1 Reply Last reply Reply Quote 0
                              • johnnyboyJ Offline
                                johnnyboy @strawberry 3.141
                                last edited by johnnyboy

                                This post is deleted!
                                1 Reply Last reply Reply Quote 1
                                • johnnyboyJ Offline
                                  johnnyboy @wizz
                                  last edited by johnnyboy

                                  This post is deleted!
                                  1 Reply Last reply Reply Quote 1
                                  • X Offline
                                    xy86
                                    last edited by

                                    Hey,

                                    I have some issues here too. Not very familiar with Linux and just got my first RPI, for this project specifically :)

                                    I’ve been trying for hours now to get this to work, but MM just says that I need a working config file. I’ve tried editing the text in Sublime (I find it easier to read than the built in texteditor on Raspbian), but I can’t seem to find the errors.

                                    I’m attaching the contents of my config file, minus the tokens and stuff:

                                    /* Magic Mirror Config Sample
                                     *
                                     * By Michael Teeuw http://michaelteeuw.nl
                                     * MIT Licensed.
                                     */
                                    
                                    var config = {
                                    	port: 8080,
                                    	address: 192.168.86.131,
                                    	ipWhitelist: ["192.168.86.100", "192.168.86.150"],
                                    
                                    	language: "en",
                                    	timeFormat: 24,
                                    	units: "metric",
                                    
                                    	modules: [
                                    		{
                                    			module: "alert",
                                    		},
                                    		{
                                    			module: "updatenotification",
                                    			position: "top_bar"
                                    		},
                                    		{
                                    			module: "clock",
                                    			position: "top_left"
                                    		},
                                    		{
                                    			module: "calendar",
                                    			header: "Kalender",
                                    			position: "top_left",
                                    			config: {
                                    				calendars: [
                                    					{
                                    						symbol: "calendar-check-o",
                                    						url: "https://calendar.google.com/calendar/the_rest_of_my_calendars_URL"
                                    					}
                                    				]
                                    			}
                                    		},
                                    		{
                                    			module: "compliments",
                                    			position: "lower_third"
                                    		},
                                    		{
                                    			module: "currentweather",
                                    			position: "top_right",
                                    			config: {
                                    				location: "Kongsvinger",
                                    				locationID: "3149533",  //ID from http://www.openweathermap.org
                                    				appid: "MY-TOKEN-HERE"
                                    			}
                                    		},
                                    		{
                                    			module: "weatherforecast",
                                    			position: "top_right",
                                    			header: "Weather Forecast",
                                    			config: {
                                    				location: "Kongsvinger",
                                    				locationID: "3149533",  //ID from http://www.openweathermap.org
                                    				appid: "MY-TOKEN-HERE"
                                    			}
                                    		},
                                    		{
                                    			module: "newsfeed",
                                    			position: "bottom_bar",
                                    			config: {
                                    				feeds: [
                                    					{
                                    						title: "NRK Siste nytt",
                                    						url: "http://www.nrk.no/nyheter/siste.rss"
                                    					}
                                    				],
                                    				showSourceTitle: true,
                                    				showPublishDate: true
                                    			}
                                    		},
                                    	]
                                    
                                    }
                                    
                                    {
                                    	module: "MMM-Ruter",
                                    	header: "Reisetider",
                                    	position: "top_left",
                                    	config: {
                                    		showPlatform: true, 
                                    		maxItems: 10,
                                    		stops: [
                                    			{
                                    				stopId: "4024715",
                                    				platforms: [ "1", "2" ],
                                    				timeToThere: 5
                                    			}
                                    			{
                                    				stopId: "4020080",
                                    				platforms: [ "1", "2" ],
                                    				timeToThere: 0
                                    			}
                                    			
                                    		]
                                    	}
                                    };
                                    /*************** DO NOT EDIT THE LINE BELOW ***************/
                                    if (typeof module !== "undefined") {module.exports = config;}
                                    
                                    

                                    Any help is highly appreciated!

                                    johnnyboyJ 1 Reply Last reply Reply Quote 0
                                    • johnnyboyJ Offline
                                      johnnyboy @xy86
                                      last edited by johnnyboy

                                      This post is deleted!
                                      X 1 Reply Last reply Reply Quote 0
                                      • X Offline
                                        xy86 @johnnyboy
                                        last edited by

                                        @johnnyboy Thanks for the leads! I’ll have a look at it.
                                        I didn’t change the original file (or at least, I don’t think I did) - except for the alterations with keys and the Ruter-addon.

                                        Stupid question: Is the config.js file supposed to be in the config folder, or should there be a /config/config (ie another folder called config) that contains the config.js ?

                                        Mykle1M johnnyboyJ 2 Replies Last reply Reply Quote 0
                                        • Mykle1M Offline
                                          Mykle1 Project Sponsor Module Developer @xy86
                                          last edited by

                                          @xy86 said in messed up my config.. MM tells me to create a config file:

                                          Is the config.js file supposed to be in the config folder

                                          Yes

                                          Create a working config
                                          How to add modules

                                          1 Reply Last reply Reply Quote 0
                                          • johnnyboyJ Offline
                                            johnnyboy @xy86
                                            last edited by johnnyboy

                                            This post is deleted!
                                            X 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
                                            • 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