<?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[Inserting a script output into the compliments module]]></title><description><![CDATA[<p dir="auto">I’ve have a javascript file that checks the date to display a certain message and if the date doesn’t match will output a random quote I have in an array. At the at moment I have that working ok but i’m stuck on how to take the var it has and put that in the module. I’m thinking that I could possibly add the anytime array into that java file for the remote file to pull it from it but I’m not sure if this would work</p>
<pre><code>{
    "anytime" : [
        text
    ],
</code></pre>
<p dir="auto">with the var=text<br />
Also i’m not sure if it would refresh throughout the day like the normal compliments do.</p>
<p dir="auto">Would anyone mind giving me some advice? Thank you</p>
]]></description><link>https://forum.magicmirror.builders/topic/4583/inserting-a-script-output-into-the-compliments-module</link><generator>RSS for Node</generator><lastBuildDate>Thu, 08 Oct 2026 19:14:04 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/4583.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 30 Jul 2017 21:03:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Inserting a script output into the compliments module on Mon, 31 Jul 2017 01:03:26 GMT]]></title><description><![CDATA[<p dir="auto">So i was rereading the wiki and noticed the remote file needs to be in .json format while the script is in .js. I’m sure that will make things more difficult</p>
]]></description><link>https://forum.magicmirror.builders/post/26070</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/26070</guid><dc:creator><![CDATA[clever83]]></dc:creator><pubDate>Mon, 31 Jul 2017 01:03:26 GMT</pubDate></item></channel></rss>