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 11.4k 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.
    • brobergB Offline
      broberg Project Sponsor @Edswald
      last edited by

      @Edswald Glad to hear it!

      E 1 Reply Last reply Reply Quote 0
      • E Offline
        Edswald @broberg
        last edited by

        @broberg umm can you help me again now im trying to install another twitter module with no luck :(

        1 Reply Last reply Reply Quote 0
        • E Offline
          Edswald
          last edited by Edswald

          /* 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: {
          consumer_key: ‘fill’,
          consumer_secret: ‘fill’,
          access_token_key: ‘fill’,
          access_token_secret: ‘fill’
          }
          }
          },

          ]
          

          },
          {
          module: ‘MMM-TwitterTrendsByPlace’,
          position: ‘bottom_left’,
          config: {
          // visit the url below for the twitter keys/tokens
          // https://dev.twitter.com/oauth/overview/application-owner-access-tokens
          consumer_key: ‘fill’,
          consumer_secret: ‘fill’,
          access_token_key: ‘fill’,
          access_token_secret: ‘fill’,
          // set the display name/title for the place
          placeName: ‘New York, NY’,
          // set the woeid for the place, see documentation for more
          // http://woeid.rosselliot.co.nz/lookup/
          placeWoeid: ‘2459115’,
          }
          };
          /*************** 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

            0_1493145766820_2017-04-25-124034_1280x1024_scrot.png

            brobergB 1 Reply Last reply Reply Quote 0
            • brobergB Offline
              broberg Project Sponsor @Edswald
              last edited by

              @Edswald you have to place the modules within the brackets

              If you go back to the picture where I marked that you should move two brackets you will see which ones I mean.

              And when you post your config files delete your sensitiv data (like api-keyes)

              E 1 Reply Last reply Reply Quote 0
              • E Offline
                Edswald @broberg
                last edited by

                @broberg Ahhh i see what you mean thank you again :)

                1 Reply Last reply Reply Quote 0
                • 1
                • 2
                • 2 / 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