MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    Magic Mirror Modules Not Working

    Troubleshooting
    2
    9
    3174
    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.
    • K
      Kartik596 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: "metric",
      
      	modules: [
      		{
      			module: "alert",
      		},
      		{
      			module: "updatenotification",
      			position: "top_bar"
      		},
      		{
      			module: "clock",
      			position: "top_left"
      		},
      		{
      			module: "calendar",
      			header: "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: "my location",
      				locationID: "1261481",  //ID from http://www.openweathermap.org/help/city_list.txt
      				appid: "7c60047afbb24881da6bcae12e24f0ee"
      			}
      		},
      		{
      			module: "weatherforecast",
      			position: "top_right",
      			header: "Weather Forecast",
      			config: {
      				location: "my location",
      				locationID: "1261481",  //ID from http://www.openweathermap.org/help/city_list.txt
      				appid: "7c60047afbb24881da6bcae12e24f0ee"
      			}
      		},
      		{
      			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: 'phone_notification',
                  		position: 'bottom_right',
                  		header: 'Phone Notifications',
                  		config: {
                      			accessToken:"my access token",
                      			numberOfNotifications: 5,
                      			displayNotificationIcon: true,
                      			displayMessage: true,
                      			displayCount: false,
                      			alert: false,
                      			fade: true,
                      			maxCharacters: 50
                  			}
      		},
      				{
          					module: "MMM-GoogleAssistant",
          					position: "top_right",
          					config: {
             					 maxWidth: "100%",    
              					header: ""
          						}
      				},
      	]
      
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") {module.exports = config;}
      _KEY
      
      1 Reply Last reply Reply Quote 0
      • K
        Kartik596 last edited by

        Weather module is working fine and Time.
        Problem is in : 1) News feed doesn’t load. It keeps on saying Loading…
        2) I added air quality index earlier it wasn’t working too.
        3) Even Phone notifications are not displaying.

        N 1 Reply Last reply Reply Quote 0
        • N
          ninjabreadman @Kartik596 last edited by

          @Kartik596 There’s some cruft (i.e. _KEY) at the bottom of your code. Is it in the actual file? To start, you can copy/paste your config into JSHint to catch any other syntax errors.

          Problem with config or JavaScript? Copy/paste it into JSHint.
          Check out the detailed walkthroughs on install, config, modules, etc.

          K 1 Reply Last reply Reply Quote 0
          • K
            Kartik596 @ninjabreadman last edited by

            @ninjabreadman yes key was in actual code. I used jslint.com for debugging the error was use space instead of tabs and there were many syntax errors that i Don’t think are valid

            N 1 Reply Last reply Reply Quote 0
            • N
              ninjabreadman @Kartik596 last edited by

              @Kartik596 I mean if you look at the very bottom of your code block, there is a _KEY that would cause a syntax error. However, I imagine this isn’t in your actual config.

              Problem with config or JavaScript? Copy/paste it into JSHint.
              Check out the detailed walkthroughs on install, config, modules, etc.

              K 1 Reply Last reply Reply Quote 0
              • K
                Kartik596 @ninjabreadman last edited by

                @ninjabreadman As i said it was there in original config file when i installed MM script. And as it said do not edit below this line so i kept it undisturbed

                N 1 Reply Last reply Reply Quote 0
                • N
                  ninjabreadman @Kartik596 last edited by

                  @Kartik596 It’s not in the original file, as seen here. It must be a typo introduced at some point.

                  Problem with config or JavaScript? Copy/paste it into JSHint.
                  Check out the detailed walkthroughs on install, config, modules, etc.

                  K 1 Reply Last reply Reply Quote 0
                  • K
                    Kartik596 last edited by

                    Yeah you are right ! _KEY was a problem. Now most of the things are opening up but still phone notifications are not working and compliment section while editing or adding new compliments show the error and Don’t display anything on MM

                    1 Reply Last reply Reply Quote 0
                    • K
                      Kartik596 @ninjabreadman last edited by

                      @ninjabreadman https://github.com/ronny3050/phone-notification-mirror I used this module for push notification.

                      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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy