<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Syntax error]]></title><description><![CDATA[<p dir="auto">Re: <a href="/topic/2040/mmm-prayertime">MMM-PrayerTime</a><br />
How to change the language. npm start throws syntax error<br />
“WARNING! Could not load config file. Starting with default configuration. Error found: TypeError: Cannot read property ‘language’ of undefined”<br />
please guide to correct format</p>
]]></description><link>https://forum.magicmirror.builders/topic/4239/syntax-error</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 14:29:32 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/4239.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 27 Jun 2017 15:42:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Syntax error on Sun, 03 Dec 2017 06:44:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cowboysdude" aria-label="Profile: cowboysdude">@<bdi>cowboysdude</bdi></a> can you help me in MMM-NOAA and MMM-awesome-alexa</p>
]]></description><link>https://forum.magicmirror.builders/post/31876</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/31876</guid><dc:creator><![CDATA[Gxnfr Ali]]></dc:creator><pubDate>Sun, 03 Dec 2017 06:44:12 GMT</pubDate></item><item><title><![CDATA[Reply to Syntax error on Sun, 03 Dec 2017 06:39:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cowboysdude" aria-label="Profile: cowboysdude">@<bdi>cowboysdude</bdi></a> sir</p>
]]></description><link>https://forum.magicmirror.builders/post/31875</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/31875</guid><dc:creator><![CDATA[Gxnfr Ali]]></dc:creator><pubDate>Sun, 03 Dec 2017 06:39:55 GMT</pubDate></item><item><title><![CDATA[Reply to Syntax error on Sun, 03 Dec 2017 06:02:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gxnfr-ali" aria-label="Profile: Gxnfr-Ali">@<bdi>Gxnfr-Ali</bdi></a> I’m not sure what you mean</p>
]]></description><link>https://forum.magicmirror.builders/post/31873</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/31873</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Sun, 03 Dec 2017 06:02:29 GMT</pubDate></item><item><title><![CDATA[Reply to Syntax error on Sun, 03 Dec 2017 06:01:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cowboysdude" aria-label="Profile: cowboysdude">@<bdi>cowboysdude</bdi></a><br />
what module you can magicmirror done?</p>
]]></description><link>https://forum.magicmirror.builders/post/31872</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/31872</guid><dc:creator><![CDATA[Gxnfr Ali]]></dc:creator><pubDate>Sun, 03 Dec 2017 06:01:57 GMT</pubDate></item><item><title><![CDATA[Reply to Syntax error on Sun, 03 Dec 2017 05:57:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cowboysdude" aria-label="Profile: cowboysdude">@<bdi>cowboysdude</bdi></a> okay and thanks</p>
]]></description><link>https://forum.magicmirror.builders/post/31871</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/31871</guid><dc:creator><![CDATA[Gxnfr Ali]]></dc:creator><pubDate>Sun, 03 Dec 2017 05:57:41 GMT</pubDate></item><item><title><![CDATA[Reply to Syntax error on Sun, 03 Dec 2017 05:56:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gxnfr-ali" aria-label="Profile: Gxnfr-Ali">@<bdi>Gxnfr-Ali</bdi></a> I just did …the config I posted is valid and should work :)</p>
<p dir="auto">The prayer module you will have to get help in that topic for it… I don’t know that module :)</p>
<p dir="auto">What exactly do you need help with?  :)</p>
]]></description><link>https://forum.magicmirror.builders/post/31870</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/31870</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Sun, 03 Dec 2017 05:56:00 GMT</pubDate></item><item><title><![CDATA[Reply to Syntax error on Sun, 03 Dec 2017 05:46:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cowboysdude" aria-label="Profile: cowboysdude">@<bdi>cowboysdude</bdi></a><br />
hi<br />
can u help me?</p>
]]></description><link>https://forum.magicmirror.builders/post/31868</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/31868</guid><dc:creator><![CDATA[Gxnfr Ali]]></dc:creator><pubDate>Sun, 03 Dec 2017 05:46:58 GMT</pubDate></item><item><title><![CDATA[Reply to Syntax error on Sun, 03 Dec 2017 05:43:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/gxnfr-ali" aria-label="Profile: Gxnfr-Ali">@<bdi>Gxnfr-Ali</bdi></a> said in <a href="/post/31866">Syntax error</a>:<br />
there’s a problem in this line…take it out and what’s below is valid according to this site:<br />
<a href="http://esprima.org/demo/validate.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://esprima.org/demo/validate.html</a></p>
<p dir="auto">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.</p>
<blockquote>
<p dir="auto">ipWhitelist: [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”],</p>
</blockquote>
<pre><code>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&amp;hl=en&amp;gl=US"
				}],
				showSourceTitle: true,
				showPublishDate: true
			}
		},
	]
};
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/31867</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/31867</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Sun, 03 Dec 2017 05:43:19 GMT</pubDate></item><item><title><![CDATA[Reply to Syntax error on Sun, 03 Dec 2017 05:30:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mykle1" aria-label="Profile: Mykle1">@<bdi>Mykle1</bdi></a><br />
that is my confis.js file…but prayer module does not work…</p>
<p dir="auto">/* Magic Mirror Config Sample<br />
*</p>
<ul>
<li>By Michael Teeuw <a href="http://michaelteeuw.nl" target="_blank" rel="noopener noreferrer nofollow ugc">http://michaelteeuw.nl</a></li>
<li>MIT Licensed.<br />
*/</li>
</ul>
<p dir="auto">var config = {<br />
port: 8080,<br />
ipWhitelist: [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”], // Set [] to allow all IP addresses.</p>
<pre><code>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&amp;hl=en&amp;gl=US"
				}
			],
			showSourceTitle: true,
			showPublishDate: true
		}
	},
]
</code></pre>
<p dir="auto">};</p>
<p dir="auto">/*************** DO NOT EDIT THE LINE BELOW ***************/<br />
if (typeof module !== “undefined”) {module.exports = config;}</p>
]]></description><link>https://forum.magicmirror.builders/post/31866</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/31866</guid><dc:creator><![CDATA[Gxnfr Ali]]></dc:creator><pubDate>Sun, 03 Dec 2017 05:30:54 GMT</pubDate></item><item><title><![CDATA[Reply to Syntax error on Wed, 28 Jun 2017 11:15:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/arifms" aria-label="Profile: arifms">@<bdi>arifms</bdi></a> said in <a href="/post/24611">Syntax error</a>:</p>
<blockquote>
<p dir="auto">@ strawberry<br />
Thanks for pointing out the error.<br />
all working good now.<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/cowboysdude" aria-label="Profile: cowboysdude">@<bdi>cowboysdude</bdi></a>  edited the app id’s thanks again for pointing it out.</p>
<p dir="auto">Cheers</p>
</blockquote>
<p dir="auto">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 ;)</p>
]]></description><link>https://forum.magicmirror.builders/post/24612</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/24612</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Wed, 28 Jun 2017 11:15:28 GMT</pubDate></item><item><title><![CDATA[Reply to Syntax error on Wed, 28 Jun 2017 11:10:17 GMT]]></title><description><![CDATA[<p dir="auto">@ strawberry<br />
Thanks for pointing out the error.<br />
all working good now.<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/cowboysdude" aria-label="Profile: cowboysdude">@<bdi>cowboysdude</bdi></a>  edited the app id’s thanks again for pointing it out.</p>
<p dir="auto">Cheers</p>
]]></description><link>https://forum.magicmirror.builders/post/24611</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/24611</guid><dc:creator><![CDATA[arifms]]></dc:creator><pubDate>Wed, 28 Jun 2017 11:10:17 GMT</pubDate></item><item><title><![CDATA[Reply to Syntax error on Wed, 28 Jun 2017 10:59:57 GMT]]></title><description><![CDATA[<p dir="auto">I just linted his config and sent it to him pm…</p>
]]></description><link>https://forum.magicmirror.builders/post/24609</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/24609</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Wed, 28 Jun 2017 10:59:57 GMT</pubDate></item><item><title><![CDATA[Reply to Syntax error on Wed, 28 Jun 2017 10:56:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/arifms" aria-label="Profile: arifms">@<bdi>arifms</bdi></a> if you copied the config from <a class="plugin-mentions-user plugin-mentions-a" href="/user/cowboysdude" aria-label="Profile: cowboysdude">@<bdi>cowboysdude</bdi></a> you are using the wrong quotes replace all quotes with either <code>'</code> or <code>"</code>, because backticks don’t work</p>
]]></description><link>https://forum.magicmirror.builders/post/24608</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/24608</guid><dc:creator><![CDATA[strawberry 3.141]]></dc:creator><pubDate>Wed, 28 Jun 2017 10:56:58 GMT</pubDate></item><item><title><![CDATA[Reply to Syntax error on Wed, 28 Jun 2017 10:33:03 GMT]]></title><description><![CDATA[<p dir="auto">Post your config file for me so I can look at it :)</p>
]]></description><link>https://forum.magicmirror.builders/post/24607</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/24607</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Wed, 28 Jun 2017 10:33:03 GMT</pubDate></item><item><title><![CDATA[Reply to Syntax error on Wed, 28 Jun 2017 10:19:45 GMT]]></title><description><![CDATA[<p dir="auto">Hi cowboysdude;<br />
Appreciate your assistance.<br />
I copied the example as provided, editign the lat, long &amp; timezone to suit mine, however it still throws error.<br />
carefully checked the code, noted an extra line after position, removed the same.<br />
tried running again, with no luck.<br />
changed my timezone on pi to UTC from Asia/Dubai and same in to the code, still no result.<br />
it throws error as below;<br />
Starting MagicMirror: v2.1.1<br />
Loading config …<br />
WARNING! Could not validate config file. Please correct syntax errors. Starting with default configuration.<br />
Loading module helpers …<br />
Initializing new module helper …<br />
Module helper loaded: updatenotification<br />
No helper found for module: helloworld.<br />
All module helpers loaded.<br />
Starting server on port 8080 …<br />
Starting server op port 8080 …<br />
Server started …<br />
Connecting socket for: updatenotification<br />
Sockets connected &amp; modules started …<br />
Launching application.</p>
]]></description><link>https://forum.magicmirror.builders/post/24606</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/24606</guid><dc:creator><![CDATA[arifms]]></dc:creator><pubDate>Wed, 28 Jun 2017 10:19:45 GMT</pubDate></item><item><title><![CDATA[Reply to Syntax error on Wed, 28 Jun 2017 08:25:46 GMT]]></title><description><![CDATA[<p dir="auto">The config isn’t working.   I had to change this:</p>
<p dir="auto">language: config.language,</p>
<p dir="auto">TO:</p>
<p dir="auto">language: “en”,</p>
<p dir="auto">and this:</p>
<p dir="auto">timezone: true,<br />
to<br />
timezone: ‘EST’</p>
<p dir="auto">and it worked… so change your language and timezone that should make it work :)</p>
<p dir="auto">Here is an example: [the lon and lat are JUST examples, use yours].<br />
{<br />
module: ‘MMM-PrayerTime’,<br />
position: ‘top_left’,	<br />
top_left/top_right.<br />
config: {<br />
apiVersion: ‘1.0’,<br />
lat: 12.089796,<br />
lon: -56.807734,<br />
timezone: ‘EST’,<br />
method: 5,<br />
playAdzan: [‘fajr’, ‘dhuhr’, ‘asr’, ‘maghrib’, ‘isha’],<br />
notDisplayed: [‘midnight’, ‘sunset’],<br />
useUpdateInterval: true,<br />
updateInterval: 86400 * 1000,<br />
animationSpeed: 2.5 * 1000,<br />
language: “en”,<br />
showAdzanAlert: true,<br />
alertTimer: 15000<br />
}<br />
},</p>
]]></description><link>https://forum.magicmirror.builders/post/24602</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/24602</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Wed, 28 Jun 2017 08:25:46 GMT</pubDate></item><item><title><![CDATA[Reply to Syntax error on Thu, 29 Jun 2017 20:25:13 GMT]]></title><description><![CDATA[<p dir="auto">Yes Exactly MM was working as required until i added the MMM-PrayerTime. As reuested below is the config.js</p>
<pre><code>/* 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: '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: 'MMM-PrayerTime',
			position: 'top_left',
			config: {
				apiVersion: '1.0',
				lat: 25.258169,
				lon: 55.304722,
				timezone: true,
				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: "alert",
		},
		{
			module: 'MMM-ModuleScheduler'
		},
		{
			module: "updatenotification",
			position: "top_bar"
		},
		{
			module: "clock",
			position: "top_left"
		},
		{
			module: "calendar",
			header: "UAE Holidays",
			position: "top_left",
			config: {
				calendars: [
					{
						symbol: "calendar-check-o ",
						url: "webcal://www.calendarlabs.com/templates/ical/UAE-Holidays.ics"
					}
				]
			}
		},
		{
			module: "compliments",
			position: "lower_third"
		},
		{
			module: "currentweather",
			position: "top_right",
			config: {
				location: "Dubai",
				locationID: "292223",  //ID from http://www.openweathermap.org/help/city_list.txt
				appid: "xxxxxxxxxxxxxxxxxxxxxxxxxxx"
			}
		},
		{
			module: "weatherforecast",
			position: "top_right",
			header: "Weather Forecast",
			config: {
				location: "Dubai",
				locationID: "292223",  //ID from http://www.openweathermap.org/help/city_list.txt
				appid: "xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
			}
		},
		{
			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
			}
		},
	]

};

/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/24595</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/24595</guid><dc:creator><![CDATA[arifms]]></dc:creator><pubDate>Thu, 29 Jun 2017 20:25:13 GMT</pubDate></item><item><title><![CDATA[Reply to Syntax error on Tue, 27 Jun 2017 20:25:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/arifms" aria-label="Profile: arifms">@<bdi>arifms</bdi></a></p>
<p dir="auto">I assume that your mirror was working until you added MMM-PrayerTime to your config.js. So, please post your config.js here.</p>
]]></description><link>https://forum.magicmirror.builders/post/24571</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/24571</guid><dc:creator><![CDATA[Mykle1]]></dc:creator><pubDate>Tue, 27 Jun 2017 20:25:22 GMT</pubDate></item></channel></rss>