<?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[custom JS file (JQUERY)]]></title><description><![CDATA[<p dir="auto">Hello.<br />
Is there a way to run my own javascript on magicmirror?<br />
I want to run some functions using jquery.<br />
I was thinking to include my code on config.js (but I’m sure that will break the config file)<br />
Any suggestions?</p>
]]></description><link>https://forum.magicmirror.builders/topic/12027/custom-js-file-jquery</link><generator>RSS for Node</generator><lastBuildDate>Wed, 17 Jun 2026 10:36:47 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/12027.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 16 Jan 2020 11:06:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to custom JS file (JQUERY) on Fri, 17 Jan 2020 23:15:37 GMT]]></title><description><![CDATA[<p dir="auto">If you have a git hub account you can fork the module’s repo to your own github account and then install/clone it to your modules folder from your own git. Make the change, push it to your remote repo. When there’s an update, you can merge the update with your changed code on github and update the module afterwards. Or not even bother with updates anymore at all, if you want that.</p>
]]></description><link>https://forum.magicmirror.builders/post/68267</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/68267</guid><dc:creator><![CDATA[doubleT]]></dc:creator><pubDate>Fri, 17 Jan 2020 23:15:37 GMT</pubDate></item><item><title><![CDATA[Reply to custom JS file (JQUERY) on Fri, 17 Jan 2020 23:04:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/panos" aria-label="Profile: panos">@<bdi>panos</bdi></a> Hopefully you find another way to do it because that would be frustrating after a while LOL</p>
]]></description><link>https://forum.magicmirror.builders/post/68266</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/68266</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Fri, 17 Jan 2020 23:04:24 GMT</pubDate></item><item><title><![CDATA[Reply to custom JS file (JQUERY) on Fri, 17 Jan 2020 17:48:40 GMT]]></title><description><![CDATA[<p dir="auto">Thanks guys. I did it by modifying MMM-MQTT original code.<br />
The only issue is that everytime that the module will be updated, I must modify it again.<br />
Thanks for your help!</p>
]]></description><link>https://forum.magicmirror.builders/post/68239</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/68239</guid><dc:creator><![CDATA[panos]]></dc:creator><pubDate>Fri, 17 Jan 2020 17:48:40 GMT</pubDate></item><item><title><![CDATA[Reply to custom JS file (JQUERY) on Fri, 17 Jan 2020 13:36:19 GMT]]></title><description><![CDATA[<p dir="auto">For example:</p>
<p dir="auto">In your main.js file we’ll call it MMM-Whatever.js</p>
<pre><code>  // Define required scripts.
     getScripts: function() {
    return ["jquery.min.js", "moment.js", "run.js"];
    },
</code></pre>
<p dir="auto">That’s one way to to do it.</p>
]]></description><link>https://forum.magicmirror.builders/post/68209</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/68209</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Fri, 17 Jan 2020 13:36:19 GMT</pubDate></item><item><title><![CDATA[Reply to custom JS file (JQUERY) on Thu, 16 Jan 2020 17:53:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/panos" aria-label="Profile: panos">@<bdi>panos</bdi></a> in a module, u need to tell M to make those functions available</p>
<p dir="auto">in a normal js file you would use require(‘js+filename’)</p>
<p dir="auto">in the module u have to return the names (and paths) of these routine files from the<br />
getScripts() function, which returns an array of names</p>
<p dir="auto">then u can use the functions in those files from the modulename.js file functions.</p>
]]></description><link>https://forum.magicmirror.builders/post/68130</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/68130</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 16 Jan 2020 17:53:54 GMT</pubDate></item><item><title><![CDATA[Reply to custom JS file (JQUERY) on Thu, 16 Jan 2020 14:17:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cowboysdude" aria-label="Profile: cowboysdude">@<bdi>cowboysdude</bdi></a><br />
Hi.<br />
I’m using the MMM-MQTT module and I want to change the color of the represented text by MQTT in real-time using JQuery.</p>
<p dir="auto">I wrote the code, but I can’t make it run on MagicMirror web UI</p>
]]></description><link>https://forum.magicmirror.builders/post/68113</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/68113</guid><dc:creator><![CDATA[panos]]></dc:creator><pubDate>Thu, 16 Jan 2020 14:17:26 GMT</pubDate></item><item><title><![CDATA[Reply to custom JS file (JQUERY) on Thu, 16 Jan 2020 12:42:28 GMT]]></title><description><![CDATA[<p dir="auto">Running how? In a module?  If in a module the you can just include it in your getScripts function…</p>
]]></description><link>https://forum.magicmirror.builders/post/68101</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/68101</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Thu, 16 Jan 2020 12:42:28 GMT</pubDate></item></channel></rss>