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.

    Third Party Modules Don't Work Please Help

    Scheduled Pinned Locked Moved Troubleshooting
    21 Posts 5 Posters 10.3k 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.
    • Z Offline
      zzaidi148 @zzaidi148
      last edited by

      /* 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: 12,
      	units: "imperial",
      
      	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: "Dallas",
      				locationID: "4684888",  //ID from http://www.openweathermap.org/help/city_list.txt
      				appid: "e026fcbb673efea9ee3929a062c137ec",
      			}
      		},
      		
      		{
      			module: "weatherforecast",
      			position: "top_right",
      			header: "Weather Forecast",
      			config: {
      				location: "Dallas",
      				locationID: "4684888",  //ID from http://www.openweathermap.org/help/city_list.txt
      				appid: "e026fcbb673efea9ee3929a062c137ec",
      			}
      		},
      		{
          			module: 'MMM-Stock',
          			position: 'lower_third',
          			config: {
          			companies: ['MSFT', 'GOOG', 'ORCL', 'FB'] 
          			 }
      		},
      		{
      			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: 'MMM-GoogleMapsTraffic',
                  		config: {
                      	key: 'AIzaSyBYRxkk4P4qB5ob506t1b5UHOBYVYntnfs',
                      	lat: 37.8262306,
                      	lng: -122.2920096,
                      	height: '300px',
                      	width: '300px',
                       },
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") {module.exports = config;}
      
      ? 2 Replies Last reply Reply Quote 0
      • ? Offline
        A Former User @zzaidi148
        last edited by

        @zzaidi148
        As I know, all the STOCK modules don’t work, because vendor API is blocked…

        Z 1 Reply Last reply Reply Quote 1
        • Z Offline
          zzaidi148 @Guest
          last edited by

          @Sean What about the first problem I had with the Google Maps Traffic Module not loading while the rest of the mirror started up? Is it because of where I placed it in the config file?

          ? 1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User @zzaidi148
            last edited by A Former User

            @zzaidi148
            I’m not familiar with that module. So I don’t know exactly.
            As I see, there are some syntax errors in your module config.

                            {
                        		module: 'MMM-GoogleMapsTraffic',
                        		config: {
                            	   key: 'AIzaSyBYRxkk4P4qB5ob506t1b5UHOBYVYntnfs',
                            	   lat: 37.8262306,
                            	   lng: -122.2920096,
                            	   height: '300px',
                            	   width: '300px',
                                    } // I think this bracket missed.
                             },
                  ] // And this also.
            

            But I’m not sure this is the main reason of your problem.

            Z 1 Reply Last reply Reply Quote 1
            • Z Offline
              zzaidi148 @Guest
              last edited by

              @Sean I made those changes, but my magic mirror is working but not displaying that module.

              ? 1 Reply Last reply Reply Quote 0
              • ? Offline
                A Former User @zzaidi148
                last edited by

                @zzaidi148
                Ok. There is no error but MMM-GoogleMapsTraffic is not shown, right?
                You can try this

                cd ~/MagicMirror
                npm start dev
                

                It will open your mirror with developer console something similar with this.
                img
                Then you can check there would be some errors(See the red circled X on the image) or warnings. You can find details in console tab.
                And you can check your terminal log also.

                If there is no suspicious point at all, but except that module everything is fine, Just that module has trouble you can not fix easily. Ask the developer directly on Github issue board.

                1 Reply Last reply Reply Quote 0
                • ? Offline
                  A Former User @zzaidi148
                  last edited by A Former User

                  @zzaidi148 said in Third Party Modules Don’t Work Please Help:

                           
                  >         	{
                  >             		module: 'MMM-GoogleMapsTraffic',
                  >             		config: {
                  >                 	key: 'AIzaSyBYRxkk4P4qB5ob506t1b5UHOBYVYntnfs',
                  >                 	lat: 37.8262306,
                  >                 	lng: -122.2920096,
                  >                 	height: '300px',
                  >                 	width: '300px',
                  >                  },
                  

                  I’ve found what is wrong.
                  you should set position of this module.

                  module: 'MMM-GoogleMapsTraffic',
                  position: 'top_left', //this is missed.
                  config: {
                  

                  manual of @vicmora has missed this.

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