<?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[Run Python script which creates a JSON file]]></title><description><![CDATA[<p dir="auto">Hi, I am trying to test something and am wondering the best way to do it (unrelated to node/mirror).  I have an HTML page with a button and a JavaScript file which parses a local JSON file and presents results on screen.  I also have a Python script which I run prior which creates the local JSON file.  Is there a way for me to click this button in my HTML, run the Python script which creates the file then run my JavaScript file which shows the output?</p>
<p dir="auto">Thank you</p>
]]></description><link>https://forum.magicmirror.builders/topic/2003/run-python-script-which-creates-a-json-file</link><generator>RSS for Node</generator><lastBuildDate>Sat, 16 May 2026 23:49:21 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/2003.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 07 Mar 2017 14:08:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Run Python script which creates a JSON file on Tue, 07 Mar 2017 14:22:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yawns" aria-label="Profile: yawns">@<bdi>yawns</bdi></a> Ahhh perfect - I am going to try that, that should definitely work when implementing on the mirror.  But for now I am actually just trying to test this very primitive code to see if it is possible the other way around.  I have seen an ajax call needed but am not 100% sure as to where I’d put that in the code or how it would be configured to just run a local python file which outputs nothing but another file.</p>
]]></description><link>https://forum.magicmirror.builders/post/16724</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/16724</guid><dc:creator><![CDATA[ooom416354]]></dc:creator><pubDate>Tue, 07 Mar 2017 14:22:37 GMT</pubDate></item><item><title><![CDATA[Reply to Run Python script which creates a JSON file on Tue, 07 Mar 2017 14:16:38 GMT]]></title><description><![CDATA[<p dir="auto">You could do it the other way round. Your MagicMirror javascript module could run the python script and wait for its output/result.<br />
See here: <a href="https://forum.magicmirror.builders/topic/1981/python-to-javascript">https://forum.magicmirror.builders/topic/1981/python-to-javascript</a></p>
]]></description><link>https://forum.magicmirror.builders/post/16720</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/16720</guid><dc:creator><![CDATA[yawns]]></dc:creator><pubDate>Tue, 07 Mar 2017 14:16:38 GMT</pubDate></item></channel></rss>