MagicMirror² v2.4.1 is available! For more information about this release, check out this topic.
Please read the release notes carefully since this update requires adjustments to your Raspberry Pi configuration!

can someone help pleas with my config/config.js



  • language: "en",
    timeFormat: 12,
    units: "imperial",
    
    modules: [
    	{
    		module: "alert",
    	},
    	{
    		module: "updatenotification",
    		position: "top_bar"
    	},
    	{
    		module: "clock",
    		position: "top_left"
    	},
    	{
    	        module: 'MMM-PrayerTime',
    	        position: 'top_left',	// This can be any of the regions. Best result is in the top_left/top_right.
    	        config: {
    		         apiVersion: '1.0' // please, leave unchanged. reserved for future use.
    		        lat: false, // latitude of your position (city)
    		        lon: false, // longitude of your position (city)
    		        timezone: false, // please refer to http://php.net/manual/en/timezones.php
    		        timeFormat: 12,
    		        method: 5,
    		        playAdzan: ['spede', 'nivro', 'evar', 'maghrib', 'aisha'],
    		        notDisplayed: ['midnight', 'sunset'],
    		        useUpdateInterval: true,
    		        updateInterval: 86400 * 1000, // How often do you want to fetch new praying time? (milliseconds)
    		        animationSpeed: 2.5 * 1000, // Speed of the update animation. (milliseconds)
    		        language: config.language,
    		        showAdzanAlert: true,
    		        alertTimer: 15000
    				} 
    			]
            	}
    	},
    	{
    		module: "compliments",
    		position: "lower_third"
              	},
    	{
    		module: "currentweather",
    		position: "top_right",
    		config: {
    			location: "Erbil",
    			locationID: "95446",  //ID from http://www.openweathermap.org/help/city_list.txt
    			appid: "bd5e378503939ddaee76f12ad7a97608"
    		}
    	},
    	{
    		module: "weatherforecast",
    		position: "top_right",
    		header: "Weather Forecast",
    		config: {
    			location: "Erbil",
    			locationID: "95446",  //ID from http://www.openweathermap.org/help/city_list.txt
    			appid: "bd5e378503939ddaee76f12ad7a97608"
    		}
    	},
    	{
    		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
    		}
    	},
    ]
    

    };



  • @jiyar you have two issues, both are in the section of the module prayer time:

    1. after apiVersion there is a comma missing before your comment
      apiVersion: '1.0', // please, leave unchanged. reserved for future use.
    2. There are two brackets too much (} ]), it should be:
        alertTimer: 15000
      }
    },
    


  • @strawberry-3.141 thank u for replaying but I’v got the same problem
    language: “en”,
    timeFormat: 12,
    units: “imperial”,

    modules: [
    	{
    		module: "alert",
    	},
    	{
    		module: "updatenotification",
    		position: "top_bar"
    	},
    	{
    		module: "clock",
    		position: "top_left"
    	},
    	{
    	        module: 'MMM-PrayerTime',
    	        position: 'top_left',	// This can be any of the regions. Best result is in the top_left/top_right.
    	        config: {
    		         apiVersion: '1.0', // please, leave unchanged. reserved for future use.
    		        lat: false, // latitude of your position (city)
    		        lon: false, // longitude of your position (city)
    		        timezone: false, // please refer to http://php.net/manual/en/timezones.php
    		        timeFormat: 12,
    		        method: 5,
    		        playAdzan: ['spede', 'nivro', 'evar', 'maghrib', 'aisha'],
    		        notDisplayed: ['midnight', 'sunset'],
    		        useUpdateInterval: true,
    		        updateInterval: 86400 * 1000, // How often do you want to fetch new praying time? (milliseconds)
    		        animationSpeed: 2.5 * 1000, // Speed of the update animation. (milliseconds)
    		        language: config.language,
    		        showAdzanAlert: true,
    		        alertTimer: 15000
         		}
    	},
    	{
    		module: "compliments",
    		position: "lower_third"
              	},
    	{
    		module: "currentweather",
    		position: "top_right",
    		config: {
    			location: "Duhok",
    			locationID: "95446",  //ID from http://www.openweathermap.org/help/city_list.txt
    			appid: "bd5e378503939ddaee76f12ad7a97608"
    		}
    	},
    	{
    		module: "weatherforecast",
    		position: "top_right",
    		header: "Weather Forecast",
    		config: {
    			location: "Erbil",
    			locationID: "95446",  //ID from http://www.openweathermap.org/help/city_list.txt
    			appid: "bd5e378503939ddaee76f12ad7a97608"
    		}
    	},
    	{
    		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
    		}
    	},
    ]
    

    };



  • @jiyar linting your config on http://jshint.com/ doesn’t give anymore issues, can you specify what the issue is with your config. Can you provide any error logs (pm2, electron, browser, terminal …)?



  • @strawberry-3.141 my problems when I run the magicmirror it says creat config file



  • @jiyar is your file called config.js? Is it stored in MagicMirror/config/config.js



  • @strawberry-3.141 yes config.js



  • @strawberry-3.141 I add a new module I got this problem but whith defualt config file it works


  • Module Developer