<?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[Text to config.js]]></title><description><![CDATA[<p dir="auto">Hi !<br />
I am new on Rasberry Pi.<br />
Trying to add text from MMM-ImagesPhotos to MagicMirror/config.js :</p>
<p dir="auto">/* Magic Mirror Config Sample<br />
*</p>
<ul>
<li>By Michael Teeuw <a href="https://michaelteeuw.nl" target="_blank" rel="noopener noreferrer nofollow ugc">https://michaelteeuw.nl</a></li>
<li>MIT Licensed.</li>
<li></li>
<li>For more information on how you can configure this file</li>
<li>See <a href="https://github.com/MichMich/MagicMirror#configuration" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/MichMich/MagicMirror#configuration</a></li>
<li></li>
</ul>
<p dir="auto">*/</p>
<p dir="auto">var config = {<br />
address: “localhost”, 	// Address to listen on, can be:<br />
// - “localhost”, “127.0.0.1”, “::1” to listen on loopback interface<br />
// - another specific IPv4/6 to listen on a specific interface<br />
// - “0.0.0.0”, “::” to listen on any interface<br />
// Default, when address config is left out or empty, is “localhost”<br />
port: 8080,<br />
basePath: “/”, 	// The URL path where MagicMirror is hosted. If you are using a Reverse proxy<br />
// you must set the sub path here. basePath must end with a /<br />
ipWhitelist: [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”], 	// Set [] to allow all IP addresses<br />
// or add a specific IPv4 of 192.168.1.5 :<br />
// [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”, “::ffff:192.168.1.5”],<br />
// or IPv4 range of 192.168.3.0 --&gt; 192.168.3.15 use CIDR format :<br />
// [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”, “::ffff:192.168.3.0/28”],</p>
<pre><code>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",
logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging
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: "alert",
	},
	{
		module: "updatenotification",
		position: "top_bar"
	},
	{
		module: "clock",
		position: "top_left"
	},
	{
		module: "calendar",
		header: "US Holidays",
		position: "top_left",
		config: {
			calendars: [
				{
					symbol: "calendar-check",
					url: "webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics"					}
			]
		}
	},
	{
module: "MMM-ImagesPhotos",
position: "middle_center",
config: {
	opacity: 0.9,
	animationSpeed: 500,
	updateInterval: 5000,
}
</code></pre>
<p dir="auto">},<br />
module: “compliments”,<br />
position: “lower_third”<br />
},<br />
{<br />
module: “currentweather”,<br />
position: “top_right”,<br />
config: {<br />
location: “New York”,<br />
locationID: “5128581”, //ID from <a href="http://bulk.openweathermap.org/sample/city.list.json.gz" target="_blank" rel="noopener noreferrer nofollow ugc">http://bulk.openweathermap.org/sample/city.list.json.gz</a>; unzip the gz file and find your city<br />
appid: “YOUR_OPENWEATHER_API_KEY”<br />
}<br />
},<br />
{<br />
module: “weatherforecast”,<br />
position: “top_right”,<br />
header: “Weather Forecast”,<br />
config: {<br />
location: “New York”,<br />
locationID: “5128581”, //ID from <a href="http://bulk.openweathermap.org/sample/city.list.json.gz" target="_blank" rel="noopener noreferrer nofollow ugc">http://bulk.openweathermap.org/sample/city.list.json.gz</a>; unzip the gz file and find your city<br />
appid: “YOUR_OPENWEATHER_API_KEY”<br />
}<br />
},<br />
{<br />
module: “newsfeed”,<br />
position: “bottom_bar”,<br />
config: {<br />
feeds: [<br />
{<br />
title: “New York Times”,<br />
url: “<a href="https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml" target="_blank" rel="noopener noreferrer nofollow ugc">https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml</a>”<br />
}<br />
],<br />
showSourceTitle: true,<br />
showPublishDate: true,<br />
broadcastNewsFeeds: true,<br />
broadcastNewsUpdates: true<br />
}<br />
},<br />
]<br />
};</p>
<p dir="auto">/*************** DO NOT EDIT THE LINE BELOW ***************/<br />
if (typeof module !== “undefined”) {module.exports = config;}</p>
<p dir="auto">Got wrong position for text when past in ?</p>
<p dir="auto">Litek</p>
]]></description><link>https://forum.magicmirror.builders/topic/14850/text-to-config-js</link><generator>RSS for Node</generator><lastBuildDate>Fri, 12 Jun 2026 04:53:02 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/14850.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 29 Mar 2021 09:45:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Text to config.js on Tue, 30 Mar 2021 18:03:57 GMT]]></title><description><![CDATA[<p dir="auto">Hi again !<br />
Thanks for help .Think I beginn to under stand now :</p>
<p dir="auto"><img src="/assets/uploads/files/1617127391162-2021-03-30-195853_1920x1080_scrot.png" alt="2021-03-30-195853_1920x1080_scrot.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Litek :)</p>
]]></description><link>https://forum.magicmirror.builders/post/90102</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90102</guid><dc:creator><![CDATA[Litek]]></dc:creator><pubDate>Tue, 30 Mar 2021 18:03:57 GMT</pubDate></item><item><title><![CDATA[Reply to Text to config.js on Tue, 30 Mar 2021 11:52:27 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 right you did. Have overseen that.</p>
]]></description><link>https://forum.magicmirror.builders/post/90082</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90082</guid><dc:creator><![CDATA[lavolp3]]></dc:creator><pubDate>Tue, 30 Mar 2021 11:52:27 GMT</pubDate></item><item><title><![CDATA[Reply to Text to config.js on Tue, 30 Mar 2021 11:51:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lavolp3" aria-label="Profile: lavolp3">@<bdi>lavolp3</bdi></a> I gave him exactly where</p>
]]></description><link>https://forum.magicmirror.builders/post/90081</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90081</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 30 Mar 2021 11:51:33 GMT</pubDate></item><item><title><![CDATA[Reply to Text to config.js on Tue, 30 Mar 2021 11:50:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/litek" aria-label="Profile: litek">@<bdi>litek</bdi></a> Sam does not want to do all the work for you and I understand him.<br />
You can see in the file a lot of module entries, and you need to put your module entry in like them.</p>
<p dir="auto"><code>modules</code>is an array containing objects (if that does not ring a bell you should consider going a bit into javascript before moving much further).</p>
<p dir="auto">The structure of this array is like this:</p>
<pre><code>modules: [
  {
    module: '',
    position: '...',
    config: {
     ...
    },
  },
  {
    module: '',
    position: '...',
    config: {
     ...
    },
  },
  {
    module: '',
    position: '...',
    config: {
     ...
    },
  }
]
</code></pre>
<p dir="auto">You need to take care to use commas as seperators, IN an array or an object, semicolons are always misplaced.<br />
Hope that helps.</p>
]]></description><link>https://forum.magicmirror.builders/post/90080</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90080</guid><dc:creator><![CDATA[lavolp3]]></dc:creator><pubDate>Tue, 30 Mar 2021 11:50:51 GMT</pubDate></item><item><title><![CDATA[Reply to Text to config.js on Mon, 29 Mar 2021 17:33:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/litek" aria-label="Profile: litek">@<bdi>litek</bdi></a> no. I gave u the very detailed instructions</p>
]]></description><link>https://forum.magicmirror.builders/post/90052</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90052</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 29 Mar 2021 17:33:32 GMT</pubDate></item><item><title><![CDATA[Reply to Text to config.js on Mon, 29 Mar 2021 16:37:58 GMT]]></title><description><![CDATA[<p dir="auto">Hi again !<br />
Can you make the file for me and wherto so i will understand it ?</p>
<p dir="auto">Please</p>
]]></description><link>https://forum.magicmirror.builders/post/90051</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90051</guid><dc:creator><![CDATA[Litek]]></dc:creator><pubDate>Mon, 29 Mar 2021 16:37:58 GMT</pubDate></item><item><title><![CDATA[Reply to Text to config.js on Mon, 29 Mar 2021 16:34:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/litek" aria-label="Profile: litek">@<bdi>litek</bdi></a> cause u put it in the wrong place</p>
]]></description><link>https://forum.magicmirror.builders/post/90050</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90050</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 29 Mar 2021 16:34:42 GMT</pubDate></item><item><title><![CDATA[Reply to Text to config.js on Tue, 30 Mar 2021 11:45:11 GMT]]></title><description><![CDATA[<p dir="auto">File wonr run :</p>
<pre><code>
/* Magic Mirror Config Sample
 *
 * By Michael Teeuw https://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,
	basePath: "/", 	// The URL path where MagicMirror is hosted. If you are using a Reverse proxy
					// you must set the sub path here. basePath must end with a /
	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",
	logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging
	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: "alert",
		},
		{
			module: "updatenotification",
			position: "top_bar"
		},
		{
			module: "clock",
			position: "top_left"
		},
		{
			module: "calendar",
			header: "US Holidays",
			position: "top_left",
			config: {
				calendars: [
					{
						symbol: "calendar-check",
						url: "webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics"					}
				]
			}
		},
		{
			module: "compliments",
			position: "lower_third"
		},
		{
			module: "currentweather",
			position: "top_right",
			config: {
				location: "New York",
				locationID: "5128581", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
				appid: "YOUR_OPENWEATHER_API_KEY"
			}
		},
		{
			module: "weatherforecast",
			position: "top_right",
			header: "Weather Forecast",
			config: {
				location: "New York",
				locationID: "5128581", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
				appid: "YOUR_OPENWEATHER_API_KEY"
			}
		},
		{
			module: "newsfeed",
			position: "bottom_bar",
			config: {
				feeds: [
					{
						title: "New York Times",
						url: "https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml"
					}
				],
				showSourceTitle: true,
				showPublishDate: true,
				broadcastNewsFeeds: true,
				broadcastNewsUpdates: true
			}
		},
	]
};

	module: "MMM-ImagesPhotos",
	position: "middle_center",
	config: {
		opacity: 0.9,
		animationSpeed: 500,
		updateInterval: 5000,
	}
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}

[29.03.2021 18:15.24.533] [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:107
	position: "middle_center",
	        ^

SyntaxError: Unexpected token ':'
    at Module._compile (internal/modules/cjs/loader.js:896:18)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:986:10)
    at Module.load (internal/modules/cjs/loader.js:816:32)
    at Module._load (internal/modules/cjs/loader.js:728:14)
    at Function.Module._load (electron/js2c/asar.js:748:26)
    at Module.require (internal/modules/cjs/loader.js:853:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at loadConfig (/home/pi/MagicMirror/js/app.js:70:12)
    at App.start (/home/pi/MagicMirror/js/app.js:217:3)
    at Object.&lt;anonymous&gt; (/home/pi/MagicMirror/js/electron.js:129:7)

</code></pre>
<p dir="auto">Need some help</p>
]]></description><link>https://forum.magicmirror.builders/post/90049</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90049</guid><dc:creator><![CDATA[Litek]]></dc:creator><pubDate>Tue, 30 Mar 2021 11:45:11 GMT</pubDate></item><item><title><![CDATA[Reply to Text to config.js on Mon, 29 Mar 2021 14:20:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/litek" aria-label="Profile: litek">@<bdi>litek</bdi></a> well,</p>
<p dir="auto">this is the end of the config.js file</p>
<pre><code>		{
			module: "newsfeed",
			position: "bottom_bar",
			config: {
				feeds: [
					{
						title: "New York Times",
						url: "https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml"
					}
				],
				showSourceTitle: true,
				showPublishDate: true,
				broadcastNewsFeeds: true,
				broadcastNewsUpdates: true
			}
		},
	]      // &lt; ------- this is the end of the module list (the start is [ above
};
</code></pre>
<p dir="auto">so, you place your new module BEFORE the end of the list and AFTER the } of the prior module</p>
<pre><code>		{
			module: "newsfeed",
			position: "bottom_bar",
			config: {
				feeds: [
					{
						title: "New York Times",
						url: "https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml"
					}
				],
				showSourceTitle: true,
				showPublishDate: true,
				broadcastNewsFeeds: true,
				broadcastNewsUpdates: true
			}
		},  // &lt; --- end of prior module 
// new module goes here 
{
	module: "MMM-ImagesPhotos",
	position: "middle_center",
	config: {
		opacity: 0.9,
		animationSpeed: 500,
		updateInterval: 5000,
	}
},
	]   // &lt; --- end of module list 
};
</code></pre>
<p dir="auto">ALWAYS check to make sure end of prior module entry  } ends with a comma (means more to follow)</p>
]]></description><link>https://forum.magicmirror.builders/post/90046</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90046</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 29 Mar 2021 14:20:37 GMT</pubDate></item><item><title><![CDATA[Reply to Text to config.js on Mon, 29 Mar 2021 14:16:05 GMT]]></title><description><![CDATA[<p dir="auto">Hi again !<br />
can you add this in to config js for me :<br />
so i can se how the file look like ?</p>
<p dir="auto">Here is an example of an entry in <code>config.js</code></p>
<pre><code>{
	module: "MMM-ImagesPhotos",
	position: "middle_center",
	config: {
		opacity: 0.9,
		animationSpeed: 500,
		updateInterval: 5000,
	}
},</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/90045</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90045</guid><dc:creator><![CDATA[Litek]]></dc:creator><pubDate>Mon, 29 Mar 2021 14:16:05 GMT</pubDate></item><item><title><![CDATA[Reply to Text to config.js on Mon, 29 Mar 2021 11:39:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/litek" aria-label="Profile: litek">@<bdi>litek</bdi></a> all that doesn’t go in config.js</p>
<p dir="auto">just a little section</p>
<pre><code>{
   module: "?????",
   position:"??!!!??",
   config :{
     .
     .
   }
}
</code></pre>
<p dir="auto">see the topics on my signature below</p>
]]></description><link>https://forum.magicmirror.builders/post/90040</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90040</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 29 Mar 2021 11:39:40 GMT</pubDate></item></channel></rss>