<?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[Quick Question regarding Magic Mirror cache]]></title><description><![CDATA[<p dir="auto">Hi!<br />
Recently I have been using Magic Mirrors alert system, along with the RESTful(ish) Api to show an image from my home security camera.</p>
<p dir="auto">Example API POST request:</p>
<pre><code>"http://192.168.2.48:8080/api/v1/modules/alert/show_ALERT?timer=10500&amp;imageUrl=http://192.168.2.18:9920/security/values/2&amp;imageHeight=220px";

</code></pre>
<p dir="auto">Where the image is being served on a custom security web server.</p>
<p dir="auto">Everything is working quite nicely using the API module, however, it would seem that the magic mirror server is keeping an image in a cache and will repeat the same image over and over despite the POST request sending it a more current image.</p>
<p dir="auto">Is there a way to clear the Magic Mirrors cache?<br />
Perhaps a command I can send through the API prior to giving the Alert module the new image?</p>
<p dir="auto">I hope this question is making sense to the lead developers.</p>
<p dir="auto">I can go into more detail and explain the workflow further if this isn’t making sense to anyone.</p>
<p dir="auto">Many thanks!</p>
]]></description><link>https://forum.magicmirror.builders/topic/7123/quick-question-regarding-magic-mirror-cache</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 14:04:16 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/7123.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 07 May 2018 13:14:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Quick Question regarding Magic Mirror cache on Mon, 14 May 2018 11:40:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/e3v3a" aria-label="Profile: e3v3a">@<bdi>e3v3a</bdi></a> Sure I can share it!</p>
<p dir="auto">There is a bit of a setup to get things rolling, but in the end, the security camera/alexa/Cognitive neural network is quite on point.</p>
<p dir="auto">The best part is that if the neural network does get confused, the image is sent to the magic mirror anyway. So, Alexa will apologize for not being able to gather image information but will remind you to look at the magic mirror alert.</p>
<p dir="auto">However, in both instances, the security camera image is posted on the mirror.</p>
]]></description><link>https://forum.magicmirror.builders/post/39458</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/39458</guid><dc:creator><![CDATA[chef]]></dc:creator><pubDate>Mon, 14 May 2018 11:40:30 GMT</pubDate></item><item><title><![CDATA[Reply to Quick Question regarding Magic Mirror cache on Mon, 14 May 2018 08:07:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chef" aria-label="Profile: chef">@<bdi>chef</bdi></a><br />
You project sound awesome! IS it private, or will you share it with us?</p>
]]></description><link>https://forum.magicmirror.builders/post/39452</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/39452</guid><dc:creator><![CDATA[E3V3A]]></dc:creator><pubDate>Mon, 14 May 2018 08:07:37 GMT</pubDate></item><item><title><![CDATA[Reply to Quick Question regarding Magic Mirror cache on Sun, 13 May 2018 14:51:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/e3v3a" aria-label="Profile: e3v3a">@<bdi>e3v3a</bdi></a> so it would seem that the cache is in place to keep those images from a constant request situation.</p>
<p dir="auto">However, now that you mention using FA icons on the alerts; I wasn’t able to successfully request FA images in my alerts.</p>
<p dir="auto">Do you have an example of how you are doing it I could see?</p>
]]></description><link>https://forum.magicmirror.builders/post/39430</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/39430</guid><dc:creator><![CDATA[chef]]></dc:creator><pubDate>Sun, 13 May 2018 14:51:48 GMT</pubDate></item><item><title><![CDATA[Reply to Quick Question regarding Magic Mirror cache on Sun, 13 May 2018 14:46:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ninjabreadman" aria-label="Profile: ninjabreadman">@<bdi>ninjabreadman</bdi></a> said in <a href="/post/39315">Quick Question regarding Magic Mirror cache</a>:</p>
<blockquote>
<p dir="auto"><a href="http://192.168.2.48:8080/api/v1/modules/alert/show_ALERT?timer=10500&amp;imageUrl=http://192.168.2.18:9920/security/values/2%3F" target="_blank" rel="noopener noreferrer nofollow ugc">http://192.168.2.48:8080/api/v1/modules/alert/show_ALERT?timer=10500&amp;imageUrl=http://192.168.2.18:9920/security/values/2%3F</a><br />
{INSERT TIMESTAMP HERE}&amp;imageHeight=220px</p>
</blockquote>
<p dir="auto">Thaaaaank you sir! absolutely spot on! Now Alexa will describe the person in the security image (using M$ cognitive sense API), and the mirror in the kitchen flashes the security image as an alert.</p>
<p dir="auto">Pretty bad@$$ actually!</p>
]]></description><link>https://forum.magicmirror.builders/post/39429</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/39429</guid><dc:creator><![CDATA[chef]]></dc:creator><pubDate>Sun, 13 May 2018 14:46:04 GMT</pubDate></item><item><title><![CDATA[Reply to Quick Question regarding Magic Mirror cache on Tue, 08 May 2018 17:44:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chef" aria-label="Profile: chef">@<bdi>chef</bdi></a> The <code>POST</code> request isn’t sending it an image, it’s sending the URL to the image (e.g. <code>http://192.168.2.18:9920/security/values/2</code>). The problem is, it already has a cached copy of that image. I suggest you <a href="https://forum.magicmirror.builders/topic/6816/gif-update-from-url-with-mmm-eyecandy/6">append a timestamp</a> to trick <code>electron</code> into re-fetching the same image/resource.</p>
<p dir="auto">You want to pass it a URL-encoded value, so use <code>%3F</code> as <code>?</code> and just append your timestamp, like so:</p>
<pre><code>http://192.168.2.48:8080/api/v1/modules/alert/show_ALERT?timer=10500&amp;imageUrl=http://192.168.2.18:9920/security/values/2%3F
{INSERT TIMESTAMP HERE}&amp;imageHeight=220px
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/39315</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/39315</guid><dc:creator><![CDATA[ninjabreadman]]></dc:creator><pubDate>Tue, 08 May 2018 17:44:58 GMT</pubDate></item><item><title><![CDATA[Reply to Quick Question regarding Magic Mirror cache on Tue, 08 May 2018 06:51:43 GMT]]></title><description><![CDATA[<p dir="auto">This is a very interesting question!</p>
<p dir="auto">I have been thinking about all those calls to the font-awesome site that is (probably?) being continually generated every time a module refreshes. Just to re-fetch the same few icons… Seem crazy to me.</p>
]]></description><link>https://forum.magicmirror.builders/post/39291</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/39291</guid><dc:creator><![CDATA[E3V3A]]></dc:creator><pubDate>Tue, 08 May 2018 06:51:43 GMT</pubDate></item><item><title><![CDATA[Reply to Quick Question regarding Magic Mirror cache on Mon, 07 May 2018 14:16:42 GMT]]></title><description><![CDATA[<p dir="auto">Upon further research, perhaps it is Electron which is cache the image.</p>
<p dir="auto">And I might be wrong but it looks as though clearing cache has to happen in the core of the application.</p>
<p dir="auto">Something like “session.Clear()”</p>
]]></description><link>https://forum.magicmirror.builders/post/39267</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/39267</guid><dc:creator><![CDATA[chef]]></dc:creator><pubDate>Mon, 07 May 2018 14:16:42 GMT</pubDate></item></channel></rss>