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

Cant figure out how to install a module in the config.js

Scheduled Pinned Locked Moved Troubleshooting
19 Posts 5 Posters 10.8k Views 4 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.
  • E Offline
    Edswald
    last edited by Apr 24, 2017, 3:01 PM

    ok so here how my config file looks like i blacked out my twitter info but i think its right i dont know and thanks for everyone how is helping me with this your awesome!!!0_1493046075374_17bf40e2880333d8695ffe5511d2d047.png

    R 1 Reply Last reply Apr 24, 2017, 3:10 PM Reply Quote 0
    • R Offline
      romain @Edswald
      last edited by Apr 24, 2017, 3:10 PM

      @Edswald you didn’t put the module info at the right place and you missing

       ],
              paths: {
                      modules: "modules",
                      vendor: "vendor"
              }
      }
      

      just before the do not edit the line bellow.

      Your file should look like this at the end

                      {
                              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: 'twitControl',
      			position: 'top_left',
      			config: {
      				maxNumTweets: 5,
      				streamType: 'followings',
      				api_keys: {
      					consumer_key: 'YOUR CONSUMER KEY',
      					consumer_secret: 'YOUR CONSUMER SECRET',
      					access_token_key: 'YOUR ACCESS TOKEN KEY',
      					access_token_secret: 'YOUR ACCESS TOKEN SECRET'
      				}
      			}
      		},
              ],
              paths: {
                      modules: "modules",
                      vendor: "vendor"
              }
      }
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== 'undefined') {module.exports = config;}
      
      1 Reply Last reply Reply Quote 0
      • E Offline
        Edswald
        last edited by Apr 24, 2017, 6:13 PM

        ok so is this correct or am i suppose to put somthing in where it says modules and vendor. Its till not running 0_1493057568851_2017-04-24-120637_1280x1024_scrot.png

        B 1 Reply Last reply Apr 24, 2017, 6:24 PM Reply Quote 0
        • B Offline
          broberg Project Sponsor @Edswald
          last edited by Apr 24, 2017, 6:24 PM

          @Edswald 0_1493058241706_1493057570459-2017-04-24-120637_1280x1024_scrot.jpg

          And for future reference, past the contents of the config in text format on the forum, it will be easier to see all of the config file then.

          E 1 Reply Last reply Apr 24, 2017, 7:18 PM Reply Quote 0
          • E Offline
            Edswald @broberg
            last edited by Apr 24, 2017, 7:18 PM

            @broberg is this right me an my team mate are here trying to see if we missed anything. Its still not running.0_1493061502651_2017-04-24-131726_1280x1024_scrot.png

            B 1 Reply Last reply Apr 24, 2017, 7:19 PM Reply Quote 0
            • B Offline
              broberg Project Sponsor @Edswald
              last edited by Apr 24, 2017, 7:19 PM

              @Edswald post it as text. can’t help you with only a screenshot

              E 1 Reply Last reply Apr 24, 2017, 7:22 PM Reply Quote 0
              • E Offline
                Edswald @broberg
                last edited by yawns Apr 25, 2017, 8:30 AM Apr 24, 2017, 7:22 PM

                @broberg ok here you go

                /* Magic Mirror Config Sample
                 *
                 * By Michael Teeuw http://michaelteeuw.nl
                 * MIT Licensed.
                 */
                
                var config = {
                	port: 8080,
                	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses.
                
                	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-o ",
                						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://www.openweathermap.org/help/city_list.txt
                				appid: "YOUR_OPENWEATHER_API_KEY"
                			}
                		},
                		{
                			module: "weatherforecast",
                			position: "top_right",
                			header: "Weather Forecast",
                			config: {
                				location: "New York",
                				locationID: "5128581",  //ID from http://www.openweathermap.org/help/city_list.txt
                				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: 'twitControl',
                			position: 'top_left',
                			config: {
                				maxNumTweets: 5,
                				streamType: 'followings',
                				api_keys: {
                	
                				}
                			}
                		},
                
                	]
                
                },
                /*************** DO NOT EDIT THE LINE BELOW ***************/
                if (typeof module !== "undefined") {module.exports = config;}
                
                1 Reply Last reply Reply Quote 0
                • B Offline
                  broberg Project Sponsor
                  last edited by broberg Apr 24, 2017, 7:33 PM Apr 24, 2017, 7:32 PM

                  You are using the wrong quotations,

                  you are using ’ when you should use '
                  and “ when you should use "

                  so first of change

                  ipWhitelist: [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”], // Set [] to allow all IP addresses.

                  to

                  ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses.

                  and

                  {
                  module: ‘twitControl’,
                  position: ‘top_left’,
                  config: {
                  maxNumTweets: 5,
                  streamType: ‘followings’,
                  api_keys: {
                  consumer_key: ‘ ’,
                  consumer_secret: ‘ ’,
                  access_token_key: ‘ ’,
                  access_token_secret: ‘ ’
                  }
                  }
                  },
                  
                  

                  to

                  {
                  module: "twitControl",
                  position: "top_left",
                  config: {
                  maxNumTweets: 5,
                  streamType: 'followings',
                  api_keys: {
                  consumer_key: ' ' ,
                  consumer_secret: ' ',
                  access_token_key: ' ' ,
                  access_token_secret: ' '
                  }
                  }
                  },
                  
                  

                  And do edit your post above to remove your personal keys!

                  E 1 Reply Last reply Apr 24, 2017, 8:07 PM Reply Quote 1
                  • E Offline
                    Edswald @broberg
                    last edited by Apr 24, 2017, 8:07 PM

                    @broberg Thank you very much it worked finally :)

                    B 1 Reply Last reply Apr 24, 2017, 8:08 PM Reply Quote 1
                    • B Offline
                      broberg Project Sponsor @Edswald
                      last edited by Apr 24, 2017, 8:08 PM

                      @Edswald Glad to hear it!

                      E 1 Reply Last reply Apr 25, 2017, 6:37 PM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        9/19
                        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