<?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[Creating a module with existing Nodejs client?]]></title><description><![CDATA[<p dir="auto">Is it possible to create a module with a existing  <a href="https://www.npmjs.com/package/open-shl#install" target="_blank" rel="noopener noreferrer nofollow ugc">Nodejs Client?</a></p>
]]></description><link>https://forum.magicmirror.builders/topic/6622/creating-a-module-with-existing-nodejs-client</link><generator>RSS for Node</generator><lastBuildDate>Wed, 12 Aug 2026 21:43:48 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/6622.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 20 Feb 2018 19:36:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Creating a module with existing Nodejs client? on Wed, 21 Feb 2018 08:30:57 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> Thanks for the explanation!!</p>
]]></description><link>https://forum.magicmirror.builders/post/36045</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/36045</guid><dc:creator><![CDATA[Baxer]]></dc:creator><pubDate>Wed, 21 Feb 2018 08:30:57 GMT</pubDate></item><item><title><![CDATA[Reply to Creating a module with existing Nodejs client? on Wed, 21 Feb 2018 02:29:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/baxer" aria-label="Profile: Baxer">@<bdi>Baxer</bdi></a> An API (and client) give you a way to ask for information; it doesn’t stipulate what information to request, or how to display it. However, you could use <a href="https://github.com/roramirez/MagicMirror-Module-Template" target="_blank" rel="noopener noreferrer nofollow ugc"><code>MagicMirror-Module-Template</code></a> then run <code>npm install --save open-shl</code> within your module folder to install <code>open-shl</code>.</p>
<p dir="auto">You would then add the code <a href="https://www.npmjs.com/package/open-shl#usage" target="_blank" rel="noopener noreferrer nofollow ugc">featured here</a> to load the API and start querying data. I recommend loading the API in your <code>node_helper.js</code> and passing back the data to display via <a href="https://github.com/MichMich/MagicMirror/tree/master/modules#thissendsocketnotificationnotification-payload-1" target="_blank" rel="noopener noreferrer nofollow ugc"><code>this.sendSocketNotification(notification, payload)</code></a>.</p>
]]></description><link>https://forum.magicmirror.builders/post/36032</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/36032</guid><dc:creator><![CDATA[ninjabreadman]]></dc:creator><pubDate>Wed, 21 Feb 2018 02:29:08 GMT</pubDate></item></channel></rss>