<?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[Module: MMM-OpenmapWeather]]></title><description><![CDATA[<p dir="auto">I am using a Raspberry Pi 3B and have set up the basic configuration of Magic Mirror.</p>
<p dir="auto">I have then gone to activate the Weather module  by adding the API Key and when I restart MagicMirror I get the following Syntax Error error message in the Terminal.</p>
<p dir="auto"><strong>Config.js (File details</strong></p>
<pre><code class="language-js">{
		module: "MMM-OpenmapWeather",
		position: "top_left",	// This can be any of the regions. Best results in left or right regions.
		header: "Current Weather", //Location is the default value if header is empty or not defined.
		config: {
			// See 'Configuration options' for more information.
			location: "Phoenix,USA",
			locationID: "", //Location ID from http://openweathermap.org/help/city_list.txt
			appid: "120e565fba4c2008908c1c2ec957140c",  //openweathermap.org API key
      			colorIcon: true
		}
	}
</code></pre>
<p dir="auto"><strong>Terminal Syntax Error</strong></p>
<pre><code class="language-text">SyntaxError: Unexpected token '{'
    at internalCompileFunction (node:internal/vm:73:18)
    at wrapSafe (node:internal/modules/cjs/loader:1160:20)
    at Module._compile (node:internal/modules/cjs/loader:1212:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1311:10)
    at Module.load (node:internal/modules/cjs/loader:1098:32)
    at Module._load (node:internal/modules/cjs/loader:945:12)
    at c._load (node:electron/js2c/node_init:2:13672)
    at Module.require (node:internal/modules/cjs/loader:1122:19)
    at require (node:internal/modules/helpers:130:18)
    at loadConfig (/home/synint/MagicMirror/js/app.js:117:14)
    at App.start (/home/synint/MagicMirror/js/app.js:250:18)
    at Object.&lt;anonymous&gt; (/home/synint/MagicMirror/js/electron.js:193:7)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1311:10)
    at Module.load (node:internal/modules/cjs/loader:1098:32)
    at Module._load (node:internal/modules/cjs/loader:945:12) 
[2024-04-07 14:26:23.100] [LOG]   Loading module helpers ... 
[2024-04-07 14:26:23.821] [LOG]   Initializing new module helper ... 
[2024-04-07 14:26:23.823] [LOG]   Module helper loaded: updatenotification 
[2024-04-07 14:26:23.825] [LOG]   No helper found for module: helloworld. 
[2024-04-07 14:26:23.828] [LOG]   All module helpers loaded. 
[2024-04-07 14:26:23.847] [LOG]   Starting server on port 8080 ...  
[2024-04-07 14:26:39.288] [LOG]   Server started ... 
[2024-04-07 14:26:39.329] [LOG]   Connecting socket for: updatenotification 
[2024-04-07 14:26:39.331] [LOG]   Starting module helper: updatenotification 
[2024-04-07 14:26:39.333] [LOG]   Sockets connected &amp; modules started ... 
[2024-04-07 14:26:46.150] [LOG]   Launching application. 
[2024-04-07 14:27:14.406] [INFO]  System information:
### SYSTEM:   manufacturer: Raspberry Pi Foundation; model: Raspberry Pi 3 Model B Plus Rev 1.3; raspberry: [object Object]; virtual: false
### OS:       platform: linux; distro: Raspbian GNU/Linux; release: 11; arch: arm; kernel: 6.1.21-v7+
### VERSIONS: electron: 29.1.6; used node: 20.9.0; installed node: 21.7.1; npm: 10.5.0; pm2: 5.3.1
### OTHER:    timeZone: Europe/London; ELECTRON_ENABLE_GPU: undefined 
[7961:0407/142804.045780:ERROR:atom_cache.cc(229)] Add WM_CHANGE_STATE to kAtomsToCache
^C/home/synint/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
</code></pre>
<p dir="auto">synint@raspberrypi:~/MagicMirror $</p>
<p dir="auto">Any help or guidance would be appreciated.</p>
<p dir="auto">Cheers,<br />
John</p>
]]></description><link>https://forum.magicmirror.builders/topic/18635/module-mmm-openmapweather</link><generator>RSS for Node</generator><lastBuildDate>Fri, 15 May 2026 23:39:41 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/18635.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 07 Apr 2024 13:34:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Module: MMM-OpenmapWeather on Sun, 07 Apr 2024 15:11:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/synint" aria-label="Profile: synint">@<bdi>synint</bdi></a>  can you show lines 48-60?</p>
<p dir="auto">unexpected token, 99% of the time means a missing trailing comma, on the line before the line reported, so line 52 in this case</p>
]]></description><link>https://forum.magicmirror.builders/post/116847</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/116847</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 07 Apr 2024 15:11:13 GMT</pubDate></item><item><title><![CDATA[Reply to Module: MMM-OpenmapWeather on Sun, 07 Apr 2024 19:40:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a>  You have made an old man very happy and thank you.  Added a comma after the last curly bracket and it now works.</p>
]]></description><link>https://forum.magicmirror.builders/post/116852</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/116852</guid><dc:creator><![CDATA[synint]]></dc:creator><pubDate>Sun, 07 Apr 2024 19:40:11 GMT</pubDate></item><item><title><![CDATA[Reply to Module: MMM-OpenmapWeather on Sun, 07 Apr 2024 15:11:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/synint" aria-label="Profile: synint">@<bdi>synint</bdi></a>  can you show lines 48-60?</p>
<p dir="auto">unexpected token, 99% of the time means a missing trailing comma, on the line before the line reported, so line 52 in this case</p>
]]></description><link>https://forum.magicmirror.builders/post/116847</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/116847</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 07 Apr 2024 15:11:13 GMT</pubDate></item><item><title><![CDATA[Reply to Module: MMM-OpenmapWeather on Sun, 07 Apr 2024 14:13:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a>  Apologies if I have already posted this response still getting use to the system.</p>
<p dir="auto">the text above the original post is:</p>
<p dir="auto">ynint@raspberrypi:~/MagicMirror $ npm run start</p>
<blockquote>
<p dir="auto">magicmirror@2.27.0 start<br />
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js</p>
</blockquote>
<p dir="auto">[2024-04-07 14:47:03.224] [LOG]   Starting MagicMirror: v2.27.0<br />
[2024-04-07 14:47:03.290] [LOG]   Loading config …<br />
[2024-04-07 14:47:03.298] [LOG]   config template file not exists, no envsubst<br />
[2024-04-07 14:47:03.304] [ERROR] WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: /home/synint/MagicMirror/config/config.js:53</p>
<p dir="auto">I see the line number but still no wiser on what to do.</p>
<p dir="auto">Cheers,<br />
John</p>
]]></description><link>https://forum.magicmirror.builders/post/116846</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/116846</guid><dc:creator><![CDATA[synint]]></dc:creator><pubDate>Sun, 07 Apr 2024 14:13:00 GMT</pubDate></item><item><title><![CDATA[Reply to Module: MMM-OpenmapWeather on Sun, 07 Apr 2024 13:37:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/synint" aria-label="Profile: synint">@<bdi>synint</bdi></a> said in <a href="/post/116840">Module: MMM-OpenmapWeather</a>:</p>
<blockquote>
<p dir="auto">SyntaxError: Unexpected token ‘{’</p>
</blockquote>
<p dir="auto">right above this should be the line number</p>
]]></description><link>https://forum.magicmirror.builders/post/116841</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/116841</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 07 Apr 2024 13:37:09 GMT</pubDate></item></channel></rss>