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

Syntax error

Scheduled Pinned Locked Moved Solved Troubleshooting
20 Posts 5 Posters 9.3k Views 5 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.
  • C Offline
    cowboysdude Module Developer @arifms
    last edited by Jun 28, 2017, 11:15 AM

    @arifms said in Syntax error:

    @ strawberry
    Thanks for pointing out the error.
    all working good now.
    @cowboysdude edited the app id’s thanks again for pointing it out.

    Cheers

    Yeah my fault… it doesn’t copy to the forum… it changes the quotes… sorry about that. Been up since 4 not enough tea yet ;)

    1 Reply Last reply Reply Quote 0
    • G Offline
      Gxnfr Ali @Mykle1
      last edited by Dec 3, 2017, 5:30 AM

      @Mykle1
      that is my confis.js file…but prayer module does not work…

      /* 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: 'email',
                  position: 'bottom_left',
                  header: 'Email',
                  config: {
                      accounts: [
                         {
                              user: 'xxxxx@gmail.com',
                              password: 'xxxxx',
                              host: 'imap.gmail.com',
                              port: 993,
                              tls: true,
                              authTimeout: 10000,
                              numberOfEmails: 2,
                          },
                      ],
                      fade: true,
                      maxCharacters: 30
                  }
      	},
      	{
      		module: "clock",
      		position: "top_left"
      	},
      	{
      		module: "calendar",
      		header: "PK Holidays",
      		position: "top_left",
      		config: {
      			calendars: [
      				{
      					symbol: "calendar-check-o ",
      					url: "webcal://www.officeholidays.com/ics/ics_country_code.php?iso=PK"
      				}
      			]
      		}
      	},
      	{
      		module: "compliments",
      		position: "lower_third"
      	},
      	{
      		module: "currentweather",
      		position: "top_right",
      		config: {
      			location: "Dubai",
      			locationID: "1166547",  //ID from http://www.openweathermap.org/help/city_list.txt
      			appid: "xxxxxxxxxxxxxxxxxxxxxxxxxxx"
      		}
      	},
      	{
      		module: "weatherforecast",
      		position: "top_right",
      		header: "Weather Forecast",
      		config: {
      			location: "Dubai",
      			locationID: "1166547",  //ID from http://www.openweathermap.org/help/city_list.txt
      			appid: "xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
      		}
      	},
      	{
      		module: 'MMM-PrayerTime',
      		position: 'top_left',
      		config: {
      			apiVersion: '1.0',
      			lat: '30.6612',
      			lon: '73.1086',
      			timezone: 'Asia/Karachi',
      			method: 4,
      			playAdzan: ['fajr', 'dhuhr', 'asr', 'maghrib', 'isha'],
      			notDisplayed: ['midnight', 'sunset'],
      			useUpdateInterval: true,
      			updateInterval: 86400 * 1000,
      			animationSpeed: 2.5 * 1000,
      			language: config.language,
      			showAdzanAlert: true,
      			alertTimer: 15000
      			}
      	},
      	{
      		module: "newsfeed",
      		position: "bottom_bar",
      		config: {
      			feeds: [
      				{
      					title: "New York Times",
      					url: "https://news.google.com/news/rss/local?ned=en_pk&hl=en&gl=US"
      				}
      			],
      			showSourceTitle: true,
      			showPublishDate: true
      		}
      	},
      ]
      

      };

      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== “undefined”) {module.exports = config;}

      1 Reply Last reply Reply Quote 0
      • C Offline
        cowboysdude Module Developer
        last edited by Dec 3, 2017, 5:43 AM

        @Gxnfr-Ali said in Syntax error:
        there’s a problem in this line…take it out and what’s below is valid according to this site:
        http://esprima.org/demo/validate.html

        as for the prayer module not working you should post in that topic and get help with that as I’m not sure why it’s not working.

        ipWhitelist: [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”],

        var config = {
        	port: 8080,
        	 
        	language: "en",
        	timeFormat: 24,
        	units: "metric",
        
        	modules: [{
        			module: "alert",
        		},
        
        		{
        			module: "updatenotification",
        			position: "top_bar"
        		},
        		{
        			module: 'email',
        			position: 'bottom_left',
        			header: 'Email',
        			config: {
        				accounts: [{
        					user: 'xxxxx@gmail.com',
        					password: 'xxxxx',
        					host: 'imap.gmail.com',
        					port: 993,
        					tls: true,
        					authTimeout: 10000,
        					numberOfEmails: 2,
        				}, ],
        				fade: true,
        				maxCharacters: 30
        			}
        		},
        		{
        			module: "clock",
        			position: "top_left"
        		},
        		{
        			module: "calendar",
        			header: "PK Holidays",
        			position: "top_left",
        			config: {
        				calendars: [{
        					symbol: "calendar-check-o ",
        					url: "webcal://www.officeholidays.com/ics/ics_country_code.php?iso=PK"
        				}]
        			}
        		},
        		{
        			module: "compliments",
        			position: "lower_third"
        		},
        		{
        			module: "currentweather",
        			position: "top_right",
        			config: {
        				location: "Dubai",
        				locationID: "1166547", 
        				appid: "xxxxxxxxxxxxxxxxxxxxxxxxxxx"
        			}
        		},
        		{
        			module: "weatherforecast",
        			position: "top_right",
        			header: "Weather Forecast",
        			config: {
        				location: "Dubai",
        				locationID: "1166547", 
        				appid: "xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
        			}
        		},
        		{
        			module: 'MMM-PrayerTime',
        			position: 'top_left',
        			config: {
        				apiVersion: '1.0',
        				lat: '30.6612',
        				lon: '73.1086',
        				timezone: 'Asia/Karachi',
        				method: 4,
        				playAdzan: ['fajr', 'dhuhr', 'asr', 'maghrib', 'isha'],
        				notDisplayed: ['midnight', 'sunset'],
        				useUpdateInterval: true,
        				updateInterval: 86400 * 1000,
        				animationSpeed: 2.5 * 1000,
        				language: config.language,
        				showAdzanAlert: true,
        				alertTimer: 15000
        			}
        		},
        		{
        			module: "newsfeed",
        			position: "bottom_bar",
        			config: {
        				feeds: [{
        					title: "New York Times",
        					url: "https://news.google.com/news/rss/local?ned=en_pk&hl=en&gl=US"
        				}],
        				showSourceTitle: true,
        				showPublishDate: true
        			}
        		},
        	]
        };
        
        G 1 Reply Last reply Dec 3, 2017, 5:46 AM Reply Quote 0
        • G Offline
          Gxnfr Ali @cowboysdude
          last edited by Dec 3, 2017, 5:46 AM

          @cowboysdude
          hi
          can u help me?

          C 1 Reply Last reply Dec 3, 2017, 5:56 AM Reply Quote 0
          • C Offline
            cowboysdude Module Developer @Gxnfr Ali
            last edited by Dec 3, 2017, 5:56 AM

            @Gxnfr-Ali I just did …the config I posted is valid and should work :)

            The prayer module you will have to get help in that topic for it… I don’t know that module :)

            What exactly do you need help with? :)

            G 2 Replies Last reply Dec 3, 2017, 5:57 AM Reply Quote 0
            • G Offline
              Gxnfr Ali @cowboysdude
              last edited by Dec 3, 2017, 5:57 AM

              @cowboysdude okay and thanks

              1 Reply Last reply Reply Quote 1
              • G Offline
                Gxnfr Ali @cowboysdude
                last edited by Dec 3, 2017, 6:01 AM

                @cowboysdude
                what module you can magicmirror done?

                C 1 Reply Last reply Dec 3, 2017, 6:02 AM Reply Quote 0
                • C Offline
                  cowboysdude Module Developer @Gxnfr Ali
                  last edited by Dec 3, 2017, 6:02 AM

                  @Gxnfr-Ali I’m not sure what you mean

                  G 3 Replies Last reply Dec 3, 2017, 6:14 AM Reply Quote 0
                  • G Offline
                    Gxnfr Ali @cowboysdude
                    last edited by Dec 3, 2017, 6:14 AM

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • G Offline
                      Gxnfr Ali @cowboysdude
                      last edited by Dec 3, 2017, 6:39 AM

                      @cowboysdude sir

                      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