<?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[Display JSON data from an api]]></title><description><![CDATA[<p dir="auto">Hi</p>
<p dir="auto">I want to be able to display some data that is delivered in JSON format</p>
<p dir="auto">I ideally would like to be able to create a category with several titles in each and eah of the titles will get dynamic data produced by the API I will be using. Has anyone made anything like this or know how to make this ?</p>
<p dir="auto">Thank you</p>
]]></description><link>https://forum.magicmirror.builders/topic/1582/display-json-data-from-an-api</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 05:12:53 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/1582.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 28 Jan 2017 23:57:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Display JSON data from an api on Wed, 01 Mar 2017 19:43:19 GMT]]></title><description><![CDATA[<p dir="auto">The big elephant in the room here is that Panic’s StatusBoard did this and is now dead. They discontinued their iPad app in November, and users from all over the world are looking for something to replace it with. MagicMirror is the perfect replacement, but it lacks the most popular module: The Graph Module. When the Graph Module in Statusboard is fed just one number, it displays the number with a name, instead of the graph. I think a good solution would be to base further MMM development based on the same JSON structure that has already been established in the StatusBoard community. Examples:</p>
<pre><code>{

"graph": {

"title" : "IKKE BEHANDLET",

"total" : true,

"datasequences" : [

{

"title" : "Datasupport",

"datapoints" : [

{ "title" : "Antall", "value" : 3 }

] } ] } }
</code></pre>
<p dir="auto">This will in StatusBoard look like this:<br />
<img src="/assets/uploads/files/1488397036452-datasupport-ikkebehandlet.jpeg" alt="0_1488397034636_datasupport-ikkebehandlet.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">If however, the same module is used, and pointed to this JSON-file:</p>
<pre><code>{

"graph" : {

"title" : "Prod-Redigering : antall saker opprettet",

"total" : true,

"datasequences" : [

{

"title" : "Uke 29",

"datapoints" : [

{"title" : "Mandag", "value" : 0 },

{"title" : "Tirsdag", "value" : 4 },

{"title" : "Onsdag", "value" : 0 },

{"title" : "Torsdag" , "value" : 3 },

{"title" : "Fredag", "value" : 2 }

]

}

]

}

}
</code></pre>
<p dir="auto">That will produce this nice Column Graph:</p>
<p dir="auto"><img src="/assets/uploads/files/1488397215581-produke.jpeg" alt="0_1488397213531_produke.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">The whitepaper still exists here: <a href="https://library.panic.com/statusboard/graph_tutorial/" target="_blank" rel="noopener noreferrer nofollow ugc">https://library.panic.com/statusboard/graph_tutorial/</a></p>
<p dir="auto">If someone needs motivation to look into this, please check the comments here:<br />
<a href="https://panic.com/blog/the-future-of-status-board/" target="_blank" rel="noopener noreferrer nofollow ugc">https://panic.com/blog/the-future-of-status-board/</a></p>
]]></description><link>https://forum.magicmirror.builders/post/16246</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/16246</guid><dc:creator><![CDATA[looolz]]></dc:creator><pubDate>Wed, 01 Mar 2017 19:43:19 GMT</pubDate></item><item><title><![CDATA[Reply to Display JSON data from an api on Wed, 01 Mar 2017 15:50:22 GMT]]></title><description><![CDATA[<p dir="auto">:D<br />
I just noticed <a class="plugin-mentions-user plugin-mentions-a" href="/user/peppapigkilla" aria-label="Profile: PeppaPigKilla">@<bdi>PeppaPigKilla</bdi></a> was the one asking for a UbisoftStats display and <a class="plugin-mentions-user plugin-mentions-a" href="/user/looolz" aria-label="Profile: looolz">@<bdi>looolz</bdi></a> was asking for some different usecase</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/looolz" aria-label="Profile: looolz">@<bdi>looolz</bdi></a>: do you have an example of your JSON file?</p>
]]></description><link>https://forum.magicmirror.builders/post/16227</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/16227</guid><dc:creator><![CDATA[yawns]]></dc:creator><pubDate>Wed, 01 Mar 2017 15:50:22 GMT</pubDate></item><item><title><![CDATA[Reply to Display JSON data from an api on Wed, 01 Mar 2017 14:58:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/looolz" aria-label="Profile: looolz">@<bdi>looolz</bdi></a> I am actually trying to do this also.  I have JSON data I’m pulling from an API and am able to present it on a page when I click a button but am not entirely sure how to map this over to an actual MM2 module.  I’m trying to follow the documentation and it’s overwhelming for someone with limited JS experience!  Is there a generic module already created which can be used to kind of re-point the URL to use any JSON feed, change the returned field names and obviously update the results on the mirror?</p>
]]></description><link>https://forum.magicmirror.builders/post/16223</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/16223</guid><dc:creator><![CDATA[ooom416354]]></dc:creator><pubDate>Wed, 01 Mar 2017 14:58:14 GMT</pubDate></item><item><title><![CDATA[Reply to Display JSON data from an api on Wed, 01 Mar 2017 09:31:48 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> Thanks for the reply!</p>
<p dir="auto">Well, the JSON-file would be hosted on a server, so a http-path to the file would do the job for sure. A common way to do this that I’ve seen is installing Dropbox on a server, and sharing out the JSON file via a public link.</p>
]]></description><link>https://forum.magicmirror.builders/post/16192</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/16192</guid><dc:creator><![CDATA[looolz]]></dc:creator><pubDate>Wed, 01 Mar 2017 09:31:48 GMT</pubDate></item><item><title><![CDATA[Reply to Display JSON data from an api on Wed, 01 Mar 2017 09:27:17 GMT]]></title><description><![CDATA[<p dir="auto">So this is just a JSON file which is sitting on your raspberry, right?<br />
The approach would be the same as with the compliments.js module loading a local file with additional statements.<br />
That shouldn’t be too difficult. I could try to tackle this, but I need to complete another module first which is waiting for so long already … too much to do and no time :(</p>
]]></description><link>https://forum.magicmirror.builders/post/16191</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/16191</guid><dc:creator><![CDATA[yawns]]></dc:creator><pubDate>Wed, 01 Mar 2017 09:27:17 GMT</pubDate></item><item><title><![CDATA[Reply to Display JSON data from an api on Wed, 01 Mar 2017 08:58: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> There is no API. In this case it’s just shell scripts that write out JSON files. I could modify the shell script to write out the files anyhow I want.</p>
]]></description><link>https://forum.magicmirror.builders/post/16190</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/16190</guid><dc:creator><![CDATA[looolz]]></dc:creator><pubDate>Wed, 01 Mar 2017 08:58:26 GMT</pubDate></item><item><title><![CDATA[Reply to Display JSON data from an api on Tue, 28 Feb 2017 13:31:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/looolz" aria-label="Profile: looolz">@<bdi>looolz</bdi></a> Where is the info coming from?  What is the api address?</p>
]]></description><link>https://forum.magicmirror.builders/post/16082</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/16082</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Tue, 28 Feb 2017 13:31:00 GMT</pubDate></item><item><title><![CDATA[Reply to Display JSON data from an api on Tue, 28 Feb 2017 13:30:45 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> said in <a href="/post/16079">Display JSON data from an api</a>:</p>
<blockquote>
<p dir="auto">it would be easier to just write a new module for it…</p>
</blockquote>
<p dir="auto">Perhaps. I just guessed a the rest module could be a good starting point.</p>
]]></description><link>https://forum.magicmirror.builders/post/16081</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/16081</guid><dc:creator><![CDATA[mortenbirkelund]]></dc:creator><pubDate>Tue, 28 Feb 2017 13:30:45 GMT</pubDate></item><item><title><![CDATA[Reply to Display JSON data from an api on Tue, 28 Feb 2017 13:30:16 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></p>
<p dir="auto">Thanks, yes. Do you happen to know of a module that successfully loads data from a JSON file? Seems like such a simple thing to do.</p>
<p dir="auto">and <a class="plugin-mentions-user plugin-mentions-a" href="/user/mortenbirkelund" aria-label="Profile: mortenbirkelund">@<bdi>mortenbirkelund</bdi></a><br />
Thanks for the suggestion. I don’t have the skills to make this, yet.</p>
]]></description><link>https://forum.magicmirror.builders/post/16080</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/16080</guid><dc:creator><![CDATA[looolz]]></dc:creator><pubDate>Tue, 28 Feb 2017 13:30:16 GMT</pubDate></item><item><title><![CDATA[Reply to Display JSON data from an api on Tue, 28 Feb 2017 13:30:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mortenbirkelund" aria-label="Profile: mortenbirkelund">@<bdi>mortenbirkelund</bdi></a> it would be easier to just write a new module for it…  hacking something will probably not give you the results you want.</p>
<p dir="auto">What is the address of the api?</p>
]]></description><link>https://forum.magicmirror.builders/post/16079</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/16079</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Tue, 28 Feb 2017 13:30:16 GMT</pubDate></item><item><title><![CDATA[Reply to Display JSON data from an api on Tue, 28 Feb 2017 13:26:37 GMT]]></title><description><![CDATA[<p dir="auto">You could take a look at the MMM-Rest… It doesnt have the ability to read json but could be modified. If you do modify it to accept json, please let me know as I am also looking for a way to do this.</p>
<p dir="auto"><a href="https://forum.magicmirror.builders/topic/1851/mmm-rest-reading-json">https://forum.magicmirror.builders/topic/1851/mmm-rest-reading-json</a></p>
]]></description><link>https://forum.magicmirror.builders/post/16078</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/16078</guid><dc:creator><![CDATA[mortenbirkelund]]></dc:creator><pubDate>Tue, 28 Feb 2017 13:26:37 GMT</pubDate></item><item><title><![CDATA[Reply to Display JSON data from an api on Tue, 28 Feb 2017 13:25:21 GMT]]></title><description><![CDATA[<p dir="auto">You would need to create a module to do this…</p>
]]></description><link>https://forum.magicmirror.builders/post/16077</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/16077</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Tue, 28 Feb 2017 13:25:21 GMT</pubDate></item><item><title><![CDATA[Reply to Display JSON data from an api on Tue, 28 Feb 2017 13:19:26 GMT]]></title><description><![CDATA[<p dir="auto">Did you get any traction with this? I’m looking for similar solutions; Display fields from JSON formatted file.</p>
]]></description><link>https://forum.magicmirror.builders/post/16076</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/16076</guid><dc:creator><![CDATA[looolz]]></dc:creator><pubDate>Tue, 28 Feb 2017 13:19:26 GMT</pubDate></item><item><title><![CDATA[Reply to Display JSON data from an api on Sun, 29 Jan 2017 13:34:15 GMT]]></title><description><![CDATA[<p dir="auto">To add more to this.</p>
<p dir="auto">This is the output of the API</p>
<pre><code>{"player":{"username":"peppapigkilla","platform":"uplay","ubisoft_id":"bb2c294b-d691-4708-863f-a55242d3270e","indexed_at":"2016-05-29T16:03:49.884Z","updated_at":"2017-01-29T11:38:10.755Z","stats":{"ranked":{"has_played":true,"wins":21,"losses":9,"wlr":2.333,"kills":153,"deaths":127,"kd":1.205,"playtime":42600},"casual":{"has_played":true,"wins":468,"losses":383,"wlr":1.222,"kills":3019,"deaths":2212,"kd":1.365,"playtime":729250.0},"overall":{"revives":92,"suicides":21,"reinforcements_deployed":1765,"barricades_built":985,"steps_moved":4027174420,"bullets_fired":94519,"bullets_hit":27318,"headshots":1193,"melee_kills":23,"penetration_kills":329,"assists":927},"progression":{"level":109,"xp":9128}}}}
</code></pre>
<p dir="auto">I want to create a block that displasy this information.<br />
Not all of it, just some.</p>
<p dir="auto">This is a bot i use on my discord<br />
<img src="https://i.gyazo.com/4a7f0cbdda60d74159595ec00a1be7a2.png" alt="alt text" class=" img-fluid img-markdown" /></p>
<p dir="auto">Essentially just the information on this.</p>
]]></description><link>https://forum.magicmirror.builders/post/12892</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/12892</guid><dc:creator><![CDATA[PeppaPigKilla]]></dc:creator><pubDate>Sun, 29 Jan 2017 13:34:15 GMT</pubDate></item></channel></rss>