<?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[static text to MM2]]></title><description><![CDATA[<p dir="auto">Hey  @ all,</p>
<p dir="auto">I´m a freshy at raspberrypi and I copied the “helloworld”-module to create a static-text-module with a name “MMM-static-text” just to avoid any problems in future if someone changes the “helloworld” for any reasons.<br />
I changed the names of the folder, files and within the file to “MMM-static-text”<br />
MMM-static-text.js:</p>
<pre><code>/* global Module */

/* Magic Mirror
 * Module: MMM-static-text
 *
 * By Michael Teeuw http://michaelteeuw.nl
 * MIT Licensed.
 */

Module.register("MMM-static-text",{

	// Default module config.
	config: {
		text: "Wetterinformationen"
	}
});
</code></pre>
<p dir="auto">config.js:</p>
<pre><code>{	module: "MMM-static-text",
			position: "top_right",
			config:{
				text: "Wetterinformationen"
			}
		},
</code></pre>
<p dir="auto">Unfortunatelly it doesn´t show “Wetterinformation”. Instead it shows “MMM-static-text” and below “module_4_MMM-static-text”. If I use the helloworld-module it is the same.<br />
What is wrong with my module?<br />
Thanks for any help.<br />
Best Regards<br />
Daniel</p>
]]></description><link>https://forum.magicmirror.builders/topic/7556/static-text-to-mm2</link><generator>RSS for Node</generator><lastBuildDate>Mon, 10 Aug 2026 11:28:02 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/7556.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 02 Jul 2018 17:05:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to static text to MM2 on Tue, 03 Jul 2018 11:22:06 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/yawns" aria-label="Profile: yawns">@<bdi>yawns</bdi></a> ,</p>
<p dir="auto">thanks a lot. This works fine after I copied your code into my file.<br />
Just typing the rest of the missing code does´nt worked. I had to copy the code.<br />
I assume a missing <code>;</code> or <code>,</code>.<br />
Anyway I fixed with your help.<br />
Thanks a lot!</p>
]]></description><link>https://forum.magicmirror.builders/post/41157</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/41157</guid><dc:creator><![CDATA[killing joke]]></dc:creator><pubDate>Tue, 03 Jul 2018 11:22:06 GMT</pubDate></item><item><title><![CDATA[Reply to static text to MM2 on Tue, 03 Jul 2018 09:38:39 GMT]]></title><description><![CDATA[<p dir="auto">Ah, I see. The module is missing the code to actually display/do something, either directly or via template system.</p>
<pre><code>/* global Module */

/* Magic Mirror
 * Module: MMM-static-text
 *
 * By Michael Teeuw http://michaelteeuw.nl
 * MIT Licensed.
 */

Module.register("MMM-static-text",{

	// Default module config.
	defaults: {
		text: "Wetterinformationen!"
	},

	// Override dom generator.
	getDom: function() {
		var wrapper = document.createElement("div");
		wrapper.innerHTML = this.config.text;
		return wrapper;
	}
});
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/41151</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/41151</guid><dc:creator><![CDATA[yawns]]></dc:creator><pubDate>Tue, 03 Jul 2018 09:38:39 GMT</pubDate></item><item><title><![CDATA[Reply to static text to MM2 on Tue, 03 Jul 2018 08:08:36 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/yawns" aria-label="Profile: yawns">@<bdi>yawns</bdi></a></p>
<p dir="auto">I copied the complete <code>helloworld</code>-folder from <code>modules/default</code> to <code>modules</code> and renamed it to <code>MMM-static-text</code>.<br />
I renamed all files as well.<br />
This is the outcome…<br />
<img src="/assets/uploads/files/1530605312454-forum.png" alt="0_1530605311658_Forum.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.magicmirror.builders/post/41146</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/41146</guid><dc:creator><![CDATA[killing joke]]></dc:creator><pubDate>Tue, 03 Jul 2018 08:08:36 GMT</pubDate></item><item><title><![CDATA[Reply to static text to MM2 on Mon, 02 Jul 2018 22:03:09 GMT]]></title><description><![CDATA[<p dir="auto">Did you change all files in <code>modules/default</code>? Or did you create a folder <code>MM-static-text</code> in <code>modules</code> ?</p>
]]></description><link>https://forum.magicmirror.builders/post/41113</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/41113</guid><dc:creator><![CDATA[yawns]]></dc:creator><pubDate>Mon, 02 Jul 2018 22:03:09 GMT</pubDate></item></channel></rss>