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

    Scheduled Pinned Locked Moved Solved Troubleshooting
    57 Posts 9 Posters 23.0k Views 7 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.
    • L Offline
      La7dan @geo
      last edited by La7dan

      I will make it works dont worry!
      First reinstall:
      1- Run this command:
      sudo rm -R MagicMirror
      (that will rmove the Magic mirror from your system.
      2- Run this command:
      bash -c “$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)”
      to install the new MagicMirror again.
      3- make sure the config .js is there if not
      run this command
      nano MagicMirror/config/config.js
      then copy between lines:

      /* 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: "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/ical-calendar/ics/76/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/city.list.json.gz; 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 http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your 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,
      				broadcastNewsFeeds: true,
      				broadcastNewsUpdates: true
      			}
      		},
      	]
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") {module.exports = config;}
      
      

      end: dont copy the line above ( you can fin the file in config dirctory under the name of config.js.sample. Just save it as config.js without sample)

      4- start your Magic Mirror
      First: cd MagicMirror
      (to navigate to the Magic Mirror dirctory)
      second run : npm start
      Check if it works!

      I will be helping you step by step even if you wants to add some modules.

      Good luck!!!

      S Mykle1M G 3 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @La7dan
        last edited by

        @La7dan please use the updated installer

        see https://forum.magicmirror.builders/topic/10171/anyone-want-to-try-updated-installer

        it will be part of the next release

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • Mykle1M Offline
          Mykle1 Project Sponsor Module Developer @La7dan
          last edited by

          @La7dan

          Please read and use this guide regarding posting code on the forum. Peace!

          https://forum.magicmirror.builders/topic/4247/how-to-post-code-on-the-forum-for-absolute-beginners

          Create a working config
          How to add modules

          L 1 Reply Last reply Reply Quote 0
          • G Offline
            geo @La7dan
            last edited by

            @La7dan hi the mirror is up and running.the next problem is to have the weather and news modules changed to Gb

            L 1 Reply Last reply Reply Quote 0
            • cowboysdudeC Offline
              cowboysdude Module Developer
              last edited by

              Cannot express this enough… if you have a working config make a copy of it before you make changes that way you can either
              a. compare the working with the non-working config
              or
              b. switch back to the working config.

              G 2 Replies Last reply Reply Quote 0
              • L Offline
                La7dan @geo
                last edited by

                @geo give me the name of the module and the location I will help you to make it works! thank you

                G 2 Replies Last reply Reply Quote 0
                • L Offline
                  La7dan @Mykle1
                  last edited by

                  @Mykle1 Thank you thats help a lot.

                  1 Reply Last reply Reply Quote 0
                  • G Offline
                    geo @cowboysdude
                    last edited by

                    @cowboysdude hi thx for that when you say make a copy where is it saved to.cheers

                    S 1 Reply Last reply Reply Quote 0
                    • G Offline
                      geo @La7dan
                      last edited by

                      @La7dan hi again firstly the mm no longer opens on boot.
                      i have the calander but with us hols.i would like uk weather and news.cheers

                      L 1 Reply Last reply Reply Quote 0
                      • L Offline
                        La7dan @geo
                        last edited by

                        @geo did you install pm2 ? and follow the instructions ?
                        https://github.com/MichMich/MagicMirror/wiki/Auto-Starting-MagicMirror

                        show me your config so I could fix it. im online for an hour we could get it done

                        S 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 6
                        • 4 / 6
                        • 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