<?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[Weather module config]]></title><description><![CDATA[<p dir="auto">Just to clarify, I’m talking about the ‘weather’ module, NOT the ‘current weather’ or 'weather forecast" modules. I have added it to my config.js file with some configurations, as outlined in the documentation for the ‘weather’ module, but it wont run. Question for module configs, do I use <code>"true",</code> or <code>'true',</code> to encapsulate my values? Its seems to vary depending on what I’m reading. Here is my config.js script:</p>
<pre><code>/* Magic Mirror Config Sample
 *
 * By Michael Teeuw http://michaelteeuw.nl
 * MIT Licensed.
 *
 * For more information on how you can configure 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 or empty, 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 --&gt; 192.168.3.15 use CIDR format :
	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],

	useHttps: false, 		// Support HTTPS or not, default "false" will use HTTP
	httpsPrivateKey: "", 	// HTTPS private key path, only require when useHttps is true
	httpsCertificate: "", 	// HTTPS Certificate path, only require when useHttps is true

	language: "en",
	timeFormat: 24,
	units: "metric",
	// serverOnly:  true/false/"local" ,
			     // local for armv6l processors, default
			     //   starts serveronly and then starts chrome browser
			     // false, default for all  NON-armv6l devices
			     // true, force serveronly mode, because you want to.. no UI on this device

	modules: [
		{
			module: "currentweather",
			position: "top_right",
			config: {
				location: "Santa Barbara",
				locationID: "5392952", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
				appid: "112847e0ff924d7f26338d5873e7be3d"
			}
		},
		{
			module: "weatherforecast",
			position: "top_right",
			header: "Weather Forecast",
			config: {
				location: "Santa Barbara",
				locationID: "5392952", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
				appid: "xxxxxxxxxxxxxx"
			}
		},
		{
		module: "weather",
		position: "top_left",
		config: {
			weatherProvider: "weathergov",
			units: "metric",
			roundTemp: "true",
			degreeLabel: "true",
			updateInterval" "3600000",
			colored: "true",
			showPrecipitationAmount: "true",
			apiBase: "https://api.weather.gov/points/",
			weatherEndpoint: "/forecast",
			lat: "xxx.xxxxxx",
			lon: "xxx.xxxxxx",
			type: "forecast"
		}
	},
	]

};

/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}
</code></pre>
<p dir="auto">and here are the errors I’m getting:</p>
<pre><code>[2020-04-28 11:31:59.700] [ERROR]  WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: /home/pi/MagicMirror/config/config.js:65
			updateInterval" "3600000",
			              ^^^

SyntaxError: Unexpected string
    at Module._compile (internal/modules/cjs/loader.js:722:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
    at Module.load (internal/modules/cjs/loader.js:645:32)
    at Function.Module._load (internal/modules/cjs/loader.js:560:12)
    at Module.require (internal/modules/cjs/loader.js:685:19)
    at require (internal/modules/cjs/helpers.js:16:16)
    at loadConfig (/home/pi/MagicMirror/js/app.js:69:12)
    at App.start (/home/pi/MagicMirror/js/app.js:210:3)
    at Object.&lt;anonymous&gt; (/home/pi/MagicMirror/js/electron.js:115:7)
    at Module._compile (internal/modules/cjs/loader.js:786:30)
</code></pre>
]]></description><link>https://forum.magicmirror.builders/topic/12706/weather-module-config</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 14:00:53 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/12706.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 28 Apr 2020 18:38:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Weather module config on Tue, 28 Apr 2020 20:43:41 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> haha well that was dumb of me. I copied it from the web page where there isn’t a minus, but in the URL there obviously is. Thanks so much! got it working!</p>
]]></description><link>https://forum.magicmirror.builders/post/73824</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/73824</guid><dc:creator><![CDATA[mrlowndes]]></dc:creator><pubDate>Tue, 28 Apr 2020 20:43:41 GMT</pubDate></item><item><title><![CDATA[Reply to Weather module config on Tue, 28 Apr 2020 20:39:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrlowndes" aria-label="Profile: mrlowndes">@<bdi>mrlowndes</bdi></a> u forgot the - sign</p>
<pre><code>34.5444,119.7913",
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/73823</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/73823</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 28 Apr 2020 20:39:59 GMT</pubDate></item><item><title><![CDATA[Reply to Weather module config on Tue, 28 Apr 2020 20:39:09 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>  I’m using the lat long listed here: <a href="https://forecast.weather.gov/MapClick.php?lat=34.54167&amp;lon=-119.80917#.XqhoOJp7kWr" target="_blank" rel="noopener noreferrer nofollow ugc">https://forecast.weather.gov/MapClick.php?lat=34.54167&amp;lon=-119.80917#.XqhoOJp7kWr</a></p>
]]></description><link>https://forum.magicmirror.builders/post/73822</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/73822</guid><dc:creator><![CDATA[mrlowndes]]></dc:creator><pubDate>Tue, 28 Apr 2020 20:39:09 GMT</pubDate></item><item><title><![CDATA[Reply to Weather module config on Tue, 28 Apr 2020 20:36:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrlowndes" aria-label="Profile: mrlowndes">@<bdi>mrlowndes</bdi></a> how can +119 be US location  , mine is minus 97 (west of london)</p>
]]></description><link>https://forum.magicmirror.builders/post/73821</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/73821</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 28 Apr 2020 20:36:46 GMT</pubDate></item><item><title><![CDATA[Reply to Weather module config on Tue, 28 Apr 2020 20:35:09 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> yeah, it is a US location</p>
]]></description><link>https://forum.magicmirror.builders/post/73820</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/73820</guid><dc:creator><![CDATA[mrlowndes]]></dc:creator><pubDate>Tue, 28 Apr 2020 20:35:09 GMT</pubDate></item><item><title><![CDATA[Reply to Weather module config on Tue, 28 Apr 2020 20:33:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrlowndes" aria-label="Profile: mrlowndes">@<bdi>mrlowndes</bdi></a> as I said, only works for US locations</p>
]]></description><link>https://forum.magicmirror.builders/post/73819</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/73819</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 28 Apr 2020 20:33:36 GMT</pubDate></item><item><title><![CDATA[Reply to Weather module config on Tue, 28 Apr 2020 20:32:49 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> yeah, no dice. This came up in my browser</p>
<pre><code>"title": "Data Unavailable For Requested Point",
    "type": "https://api.weather.gov/problems/InvalidPoint",
    "status": 404,
    "detail": "Unable to provide data for requested point 34.5444,119.7913",
    "instance": "https://api.weather.gov/requests/8199fbe2-ac6c-4c7c-b109-ed162794f780"
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/73818</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/73818</guid><dc:creator><![CDATA[mrlowndes]]></dc:creator><pubDate>Tue, 28 Apr 2020 20:32:49 GMT</pubDate></item><item><title><![CDATA[Reply to Weather module config on Tue, 28 Apr 2020 20:29:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrlowndes" aria-label="Profile: mrlowndes">@<bdi>mrlowndes</bdi></a> no, this is just a test… making sure the api would work as called by the module</p>
]]></description><link>https://forum.magicmirror.builders/post/73817</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/73817</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 28 Apr 2020 20:29:39 GMT</pubDate></item><item><title><![CDATA[Reply to Weather module config on Tue, 28 Apr 2020 20:28:30 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>  Thanks so much, the documentation doesn’t make that clear at all</p>
]]></description><link>https://forum.magicmirror.builders/post/73816</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/73816</guid><dc:creator><![CDATA[mrlowndes]]></dc:creator><pubDate>Tue, 28 Apr 2020 20:28:30 GMT</pubDate></item><item><title><![CDATA[Reply to Weather module config on Tue, 28 Apr 2020 20:21:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrlowndes" aria-label="Profile: mrlowndes">@<bdi>mrlowndes</bdi></a> u can test that the api works from your location</p>
<p dir="auto">put this in your browser</p>
<pre><code>https://api.weather.gov/points/LAT,LON/forecast
</code></pre>
<p dir="auto">replace the LAT,LON<br />
by the values from the google maps (<a href="http://maps.google.com" target="_blank" rel="noopener noreferrer nofollow ugc">maps.google.com</a>)  of your location…<br />
in the url, you will see two numbers xx.yyyyyy,-uu.zzzzzz<br />
just cut/paste that whole set of numbers and  paste over the LAT,LON  (notice the comma comes with the numbers too)</p>
]]></description><link>https://forum.magicmirror.builders/post/73814</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/73814</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 28 Apr 2020 20:21:15 GMT</pubDate></item><item><title><![CDATA[Reply to Weather module config on Tue, 28 Apr 2020 20:12:47 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> Do you have any suggestions as to what I should try next?</p>
]]></description><link>https://forum.magicmirror.builders/post/73813</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/73813</guid><dc:creator><![CDATA[mrlowndes]]></dc:creator><pubDate>Tue, 28 Apr 2020 20:12:47 GMT</pubDate></item><item><title><![CDATA[Reply to Weather module config on Tue, 28 Apr 2020 20:10:45 GMT]]></title><description><![CDATA[<p dir="auto">no key required for that point…  only works for US locations</p>
]]></description><link>https://forum.magicmirror.builders/post/73812</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/73812</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 28 Apr 2020 20:10:45 GMT</pubDate></item><item><title><![CDATA[Reply to Weather module config on Tue, 28 Apr 2020 20:02:35 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> do you know where I could get an appid for weathergov? The documentation for the module is very thin</p>
]]></description><link>https://forum.magicmirror.builders/post/73811</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/73811</guid><dc:creator><![CDATA[mrlowndes]]></dc:creator><pubDate>Tue, 28 Apr 2020 20:02:35 GMT</pubDate></item><item><title><![CDATA[Reply to Weather module config on Tue, 28 Apr 2020 19:53:16 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> Thanks for the tip. The errors were at the bottom. This is what I found:</p>
<pre><code>Failed to load resource: the server responded with a status of 400 ()
weathergov.js:55 Could not load data ...  
XMLHttpRequest
weather.js:151 New weather information available.
main.js:301 [Intervention] Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: http://localhost:8080/vendor/node_modules/weathericons/font/weathericons-regular-webfont.woff
api.openweathermap.o…xxxxxxxxxxxxxxxx:1 Failed to load resource: the server responded with a status of 401 (Unauthorized)
weatherforecast.js:266 weatherforecast: Your AppID does not support long term forecasts. Switching to fallback endpoint.
(index):1 Refused to apply style from 'http://localhost:8080/css/custom.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/73810</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/73810</guid><dc:creator><![CDATA[mrlowndes]]></dc:creator><pubDate>Tue, 28 Apr 2020 19:53:16 GMT</pubDate></item><item><title><![CDATA[Reply to Weather module config on Tue, 28 Apr 2020 19:52:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrlowndes" aria-label="Profile: mrlowndes">@<bdi>mrlowndes</bdi></a> said in <a href="/post/73808">Weather module config</a>:</p>
<blockquote>
<p dir="auto">index):1 Refused to apply style from ‘<a href="http://localhost:8080/css/custom.css" target="_blank" rel="noopener noreferrer nofollow ugc">http://localhost:8080/css/custom.css</a>’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.</p>
</blockquote>
<p dir="auto">ok, don’t know for the slow network.</p>
<p dir="auto">but for this one</p>
<p dir="auto">do</p>
<pre><code>touch ~/MagicMirror/css/custom.css
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/73809</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/73809</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 28 Apr 2020 19:52:56 GMT</pubDate></item><item><title><![CDATA[Reply to Weather module config on Tue, 28 Apr 2020 19:23:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrlowndes" aria-label="Profile: mrlowndes">@<bdi>mrlowndes</bdi></a> did u get an apiid?   ‘loading’ means waiting for data … so, the component getting the data did not succeed</p>
<p dir="auto">npm start<br />
then look at the messages</p>
<p dir="auto">or possibly open the developers window (f12 or ctrl-shift-i) select the console tab, and scroll up looking for errors…</p>
]]></description><link>https://forum.magicmirror.builders/post/73802</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/73802</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 28 Apr 2020 19:23:58 GMT</pubDate></item><item><title><![CDATA[Reply to Weather module config on Tue, 28 Apr 2020 19:02:41 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> thanks. That got rid of the errors, now when I <code>npm start</code> the weather module seems to be just loading indefinitely. Any ideas?</p>
]]></description><link>https://forum.magicmirror.builders/post/73800</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/73800</guid><dc:creator><![CDATA[mrlowndes]]></dc:creator><pubDate>Tue, 28 Apr 2020 19:02:41 GMT</pubDate></item><item><title><![CDATA[Reply to Weather module config on Tue, 28 Apr 2020 18:54:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrlowndes" aria-label="Profile: mrlowndes">@<bdi>mrlowndes</bdi></a> for numbers or true/false, no quotes, all else with quotes, doesn’t matter which kind as long as both ends are the same<br />
in a  list it can be either for each entry, as long as both ends are the same</p>
<p dir="auto">updateInterval" “3600000”,</p>
<p dir="auto">should be name: value<br />
so<br />
updateInterval : “3600000”,</p>
]]></description><link>https://forum.magicmirror.builders/post/73797</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/73797</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 28 Apr 2020 18:54:26 GMT</pubDate></item></channel></rss>