<?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[Gurus, what is the problem with this code ?]]></title><description><![CDATA[<p dir="auto">When I use this function I got an error and nothing appear on the screen.</p>
<pre><code>/* Magic Mirror Config Sample
 *
 * By Michael Teeuw http://michaelteeuw.nl
 * MIT Licensed.
 *
 * For more information how you can configurate this file
 * See https://github.com/MichMich/MagicMirror#configuration
 *
 */

var full  = "";

function LoadData() {

full = "Hello";

}

$( document ).ready(function() {
	LoadData();
}); 

var config = {
	address: "localhost", 
        port: 8080,
	ipWhitelist: ["192.168.1.9"],
	language: "en",
	timeFormat: 24,
	units: "metric",
	zoom: 0.85,
	
        modules: [

		{
		module: "helloworld",
		position: "center",
		config: {
			text: full
		}
		},

	]

};

/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}
</code></pre>
]]></description><link>https://forum.magicmirror.builders/topic/8523/gurus-what-is-the-problem-with-this-code</link><generator>RSS for Node</generator><lastBuildDate>Wed, 12 Aug 2026 18:18:22 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/8523.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 05 Aug 2018 17:09:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Gurus, what is the problem with this code ? on Mon, 06 Aug 2018 08:51:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rsellmer" aria-label="Profile: rsellmer">@<bdi>rsellmer</bdi></a><br />
one more thing;<br />
<code>config.js</code> is validated when MM is booted up, not rendered. maybe you can put some codes in <code>config.js</code> but that would not be working as your expectation.</p>
]]></description><link>https://forum.magicmirror.builders/post/43118</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/43118</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 06 Aug 2018 08:51:39 GMT</pubDate></item><item><title><![CDATA[Reply to Gurus, what is the problem with this code ? on Mon, 06 Aug 2018 07:19:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rsellmer" aria-label="Profile: rsellmer">@<bdi>rsellmer</bdi></a><br />
<code>config.js</code> is not for your custom job. leave it.<br />
When you want to do something your own, create <code>module</code>.<br />
Read the manual.</p>
<ul>
<li><a href="https://github.com/MichMich/MagicMirror/blob/master/modules/README.md" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/MichMich/MagicMirror/blob/master/modules/README.md</a></li>
</ul>
<p dir="auto">And see how other modules work;</p>
<ul>
<li><a href="https://github.com/MichMich/MagicMirror/wiki/3rd-party-modules" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/MichMich/MagicMirror/wiki/3rd-party-modules</a></li>
</ul>
<p dir="auto">You can start by modifying any simple module as your wish.</p>
]]></description><link>https://forum.magicmirror.builders/post/43117</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/43117</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 06 Aug 2018 07:19:43 GMT</pubDate></item><item><title><![CDATA[Reply to Gurus, what is the problem with this code ? on Mon, 06 Aug 2018 07:13:55 GMT]]></title><description><![CDATA[<p dir="auto">@sean Tks again … I am newb with MM, so I think that it is not possible to create a function in the config.js … I think that this will not work. because the next step I will need to call an api from config.js to get some data from mysql.<br />
In my test using a config.js out the MM system, I could call the api, but I think that this is not possible in the MM. Am I right ? Tks</p>
]]></description><link>https://forum.magicmirror.builders/post/43116</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/43116</guid><dc:creator><![CDATA[rsellmer]]></dc:creator><pubDate>Mon, 06 Aug 2018 07:13:55 GMT</pubDate></item><item><title><![CDATA[Reply to Gurus, what is the problem with this code ? on Mon, 06 Aug 2018 06:24:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rsellmer" aria-label="Profile: rsellmer">@<bdi>rsellmer</bdi></a><br />
As I’ve written in your other post, jQuery is not included as a default. You did a try to use jQuery(<code>$(document).ready()</code>)</p>
]]></description><link>https://forum.magicmirror.builders/post/43113</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/43113</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 06 Aug 2018 06:24:41 GMT</pubDate></item><item><title><![CDATA[Reply to Gurus, what is the problem with this code ? on Sun, 05 Aug 2018 23:31:52 GMT]]></title><description><![CDATA[<pre><code>/* Magic Mirror Config Sample
 *
 * By Michael Teeuw http://michaelteeuw.nl
 * MIT Licensed.
 *
 * For more information how you can configurate this file
 * See https://github.com/MichMich/MagicMirror#configuration
 *
 */

var full  = "";

function LoadData() {

full = "Hello";

}

$( document ).ready(function() {
	LoadData();
}); 

var config = {
	address: "localhost", 
        port: 8080,
	ipWhitelist: ["192.168.1.9"],
	language: "en",
	timeFormat: 24,
	units: "metric",
	zoom: 0.85,
	
        modules: [

		{
		module: "helloworld",
		position: "center",
		config: {
			text: full
		}
		},

	]

};

/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/43102</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/43102</guid><dc:creator><![CDATA[rsellmer]]></dc:creator><pubDate>Sun, 05 Aug 2018 23:31:52 GMT</pubDate></item><item><title><![CDATA[Reply to Gurus, what is the problem with this code ? on Sun, 05 Aug 2018 23:12:34 GMT]]></title><description><![CDATA[<p dir="auto">Ok … I am so sorry about that. It was not easy to understand.<br />
Let me try to explain … I need call a function which is declared into the config.js. However, this is impossible. Nothing appeared on the screen. I did not find any example using a function call. Is it clear ?</p>
]]></description><link>https://forum.magicmirror.builders/post/43100</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/43100</guid><dc:creator><![CDATA[rsellmer]]></dc:creator><pubDate>Sun, 05 Aug 2018 23:12:34 GMT</pubDate></item><item><title><![CDATA[Reply to Gurus, what is the problem with this code ? on Sun, 05 Aug 2018 21:43:09 GMT]]></title><description><![CDATA[<p dir="auto">I can’t read it when it’s not in a code block? :-0)</p>
]]></description><link>https://forum.magicmirror.builders/post/43096</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/43096</guid><dc:creator><![CDATA[Mykle1]]></dc:creator><pubDate>Sun, 05 Aug 2018 21:43:09 GMT</pubDate></item><item><title><![CDATA[Reply to Gurus, what is the problem with this code ? on Sun, 05 Aug 2018 21:32:35 GMT]]></title><description><![CDATA[<p dir="auto">What are you trying to do and what isn’t working?</p>
]]></description><link>https://forum.magicmirror.builders/post/43094</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/43094</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Sun, 05 Aug 2018 21:32:35 GMT</pubDate></item><item><title><![CDATA[Reply to Gurus, what is the problem with this code ? on Sun, 05 Aug 2018 17:35:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rsellmer" aria-label="Profile: rsellmer">@<bdi>rsellmer</bdi></a><br />
We don’t know <code>what problem</code> do you have.  How can we imagine?</p>
]]></description><link>https://forum.magicmirror.builders/post/43066</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/43066</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Sun, 05 Aug 2018 17:35:53 GMT</pubDate></item></channel></rss>