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.

    config.js help

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    3 Posts 3 Posters 791 Views 1 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.
    • D Offline
      dazza120
      last edited by

      Guys and Girls can you help my config has gone to Well you know, can you help me sort this as i just cant see whats up i have removed the code for all the keys so its just empty “” thanks in advance

      /* 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:
      	                      // - "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"], // 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: "MMM-Remote-Control-Repository",
                      }
                      },
                      {
                              module: "alert",
                      }
                      },
                      {
                              module: "MMM-Remote-Control",
                              position: "center",
                      }
                      },
                      {
                              module: "clock",
                              position: "top_left"
                      }
                      },
                      {
                             module: "mmm-hue-lights",
                             position: "bottom_right",
                             config: {
                             bridgeIp: "192.168.1.23",
                             user: "",
                             updateInterval: "1000",
                             hideOff: "false",
                             displayMode: "groups",
                             displayType: "list",
                             minimalList: "true",
                             coloredList: "true",
                             hideFilter: ["home-away"],
                             alignment: "right",
                     }
                     },
                     {
                            module: "compliments",
                            position: "lower_third",
                     },
                     {
                            module: "MMM-NOAA3",
                            position: "top_right",
                            config: {
                            provider: "darksky",
                            apiKey: "",
                            airKey: "", 
                            css: "NOAA3",
                            updateInterval: 15,
                            userlat: "51.806460",
                            userlon: "-0.778230"
                    }
                    },  
                    {
                           module: "calendar",
                           header: "Calendar",
                           position: "top_left",
                           config: {
                           timeFormat:"absolute",
                           titleReplace: {"United Kingdom:" : ""},
                           urgency: 0,
                           getRelative: 6,
                           fullDayEventDateFormat: "D MMMM",
                           dateFormat: "D MMMM - H:mm:ss",
                           fetchInterval: 4000000,
                           colored: true,
                           coloredSymbolOnly: true,
                           maximumEntries: 9,
                           showEnd: false,
                           Calendars: [
                   {
                           symbol: "calendar-check-o ",
                           url: "https://www.officeholidays.com/ics/ics_country_code.php?iso=GB",
                   }
                   },
                   {
                          module: "mmm-nest-status",
                          position: "bottom_left", // pick whichever position you want
                          config: {
                          token: "",
                          displayMode: "all",
                          displayType: "list",
                          thermostatsToShow: "all",
                          units: "metric",
                          updateInterval: "50000",
                          thermostatSize: "small",
                          alignment: "left",
                   // ... and whatever else configuration options you want to use
                  }
                  },
                  {
                          module: "MMM-SystemStats",
                          position: "Top_Center", 
                          updateInterval: 5000,
                          align: "right",
                          units: "metric",
                          label: "text"
                  }
                  },
                  {
                          module: "newsfeed",
                          position: "bottom_bar",
                          config: {
                          feeds: [
                  {
                          title: "BBC NEWS UK",
                          url: "http://feeds.bbci.co.uk/news/uk/rss.xml"
                   }
                   ],
                         showSourceTitle: true,
                         showPublishDate: true
                  }
              },
          ]
      };
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") {module.exports = config;}
      
      
      1 Reply Last reply Reply Quote 0
      • brobergB Offline
        broberg Project Sponsor
        last edited by

        You are missing config lines and have to many }-brackets

        I would just suggest that you rename that config.js file to config.js.bak and start over from scratch.

        1 Reply Last reply Reply Quote 0
        • cruunnerrC Offline
          cruunnerr
          last edited by cruunnerr

          Try this, but you really need to clean up ;) :P

          /* 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:
          	                      // - "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"], // 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: "MMM-Remote-Control-Repository",
                          
                          },
                          {
                                  module: "alert",
                          
                          },
                          {
                                  module: "MMM-Remote-Control",
                                  position: "center",
                          
                          },
                          {
                                  module: "clock",
                                  position: "top_left"
                          
                          },
                          {
                                 module: "mmm-hue-lights",
                                 position: "bottom_right",
                                 config: {
                                 bridgeIp: "192.168.1.23",
                                 user: "",
                                 updateInterval: "1000",
                                 hideOff: "false",
                                 displayMode: "groups",
                                 displayType: "list",
                                 minimalList: "true",
                                 coloredList: "true",
                                 hideFilter: ["home-away"],
                                 alignment: "right"
                         				 }
                         },
                         {
                                module: "compliments",
                                position: "lower_third",
                         },
                         {
                                module: "MMM-NOAA3",
                                position: "top_right",
                                config: {
                                provider: "darksky",
                                apiKey: "",
                                airKey: "", 
                                css: "NOAA3",
                                updateInterval: 15,
                                userlat: "51.806460",
                                userlon: "-0.778230"
                        				}
                        },  
                        {
                               module: "calendar",
                               header: "Calendar",
                               position: "top_left",
                               config: {
                               timeFormat:"absolute",
                               titleReplace: {"United Kingdom:" : ""},
                               urgency: 0,
                               getRelative: 6,
                               fullDayEventDateFormat: "D MMMM",
                               dateFormat: "D MMMM - H:mm:ss",
                               fetchInterval: 4000000,
                               colored: true,
                               coloredSymbolOnly: true,
                               maximumEntries: 9,
                               showEnd: false,
                               Calendars: [
                       {
                               symbol: "calendar-check-o ",
                               url: "https://www.officeholidays.com/ics/ics_country_code.php?iso=GB",
                       
                       }
                                 ]
                       }
                       },
                       {
                              module: "mmm-nest-status",
                              position: "bottom_left", // pick whichever position you want
                              config: {
                              token: "",
                              displayMode: "all",
                              displayType: "list",
                              thermostatsToShow: "all",
                              units: "metric",
                              updateInterval: "50000",
                              thermostatSize: "small",
                              alignment: "left",
                       // ... and whatever else configuration options you want to use
                      				}
                      },
                      {
                              module: "MMM-SystemStats",
                              position: "Top_Center", 
                              updateInterval: 5000,
                              align: "right",
                              units: "metric",
                              label: "text"
                      
                      },
                      {
                              module: "newsfeed",
                              position: "bottom_bar",
                              config: {
                              feeds: [
                      				{
                              title: "BBC NEWS UK",
                              url: "http://feeds.bbci.co.uk/news/uk/rss.xml"
                       				}
                       ],
                       },
                             showSourceTitle: true,
                             showPublishDate: true
                      }
                  
              ]
          };
          /*************** DO NOT EDIT THE LINE BELOW ***************/
          if (typeof module !== "undefined") {module.exports = config;}
          

          For the future u can put in your code here: https://jshint.com

          Just to analyze what maybe went wrong

          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