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

Magic Mirror Modules Not Working

Scheduled Pinned Locked Moved Troubleshooting
9 Posts 2 Posters 3.8k Views 2 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.
  • K Offline
    Kartik596
    last edited by Feb 17, 2018, 10:16 AM

    /* 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 Offline
      Kartik596
      last edited by Feb 17, 2018, 10:22 AM

      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 Feb 17, 2018, 11:27 AM Reply Quote 0
      • N Offline
        ninjabreadman @Kartik596
        last edited by Feb 17, 2018, 11:27 AM

        @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 Feb 17, 2018, 11:35 AM Reply Quote 0
        • K Offline
          Kartik596 @ninjabreadman
          last edited by Feb 17, 2018, 11:35 AM

          @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 Feb 17, 2018, 11:37 AM Reply Quote 0
          • N Offline
            ninjabreadman @Kartik596
            last edited by Feb 17, 2018, 11:37 AM

            @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 Feb 17, 2018, 11:40 AM Reply Quote 0
            • K Offline
              Kartik596 @ninjabreadman
              last edited by Feb 17, 2018, 11:40 AM

              @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 Feb 17, 2018, 11:54 AM Reply Quote 0
              • N Offline
                ninjabreadman @Kartik596
                last edited by Feb 17, 2018, 11:54 AM

                @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 Feb 17, 2018, 12:41 PM Reply Quote 0
                • K Offline
                  Kartik596
                  last edited by Feb 17, 2018, 12:32 PM

                  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 Offline
                    Kartik596 @ninjabreadman
                    last edited by Feb 17, 2018, 12:41 PM

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

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