<?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[Help developing first module, displaying webscraped text.]]></title><description><![CDATA[<p dir="auto">Sorry in advance for my code, I know extremely little Javascript but I like to think I’m pretty decent at Python. I’ve made a functioning webscraper in Python, transfered it to Javascript, but now I’m running into errors implementing it into a module and displaying it on my mirror.<br />
The code for it is <a href="https://github.com/EnderFlop/MMM-DiningHallChecker" target="_blank" rel="noopener noreferrer nofollow ugc">here on my github</a>.<br />
Only the dining-hall folder is in my modules folder and I’ve npm installed both dependencies (axios and cheerio). My config file has no syntax errors and I think it is set up correctly.<br />
<img src="/assets/uploads/files/1642739176128-72da62f6-53c9-4b1b-8fd8-6b04c5869130-image.png" alt="72da62f6-53c9-4b1b-8fd8-6b04c5869130-image.png" class=" img-fluid img-markdown" />   I’m currently running into the error in the following screenshot when trying to get the module to display.<br />
<img src="/assets/uploads/files/1642739059224-7d766f67-4ad3-4243-8769-2baadb7ea534-image.png" alt="7d766f67-4ad3-4243-8769-2baadb7ea534-image.png" class=" img-fluid img-markdown" /><br />
The errors continue on for a while.<br />
I have no idea where to start debugging. Please tear apart my code, call me an idiot or whatever, I’m just looking to get this solved and learn something along the way. Thanks for your help! I’ll be around to respond and give any additional materials that might help. By the end I would like to not only have the module displaying, but also displaying the correct information. I might need some help with notification and payload transfer lol. Thanks for everything!</p>
]]></description><link>https://forum.magicmirror.builders/topic/16229/help-developing-first-module-displaying-webscraped-text</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Jul 2026 16:21:00 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/16229.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 21 Jan 2022 04:27:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Help developing first module, displaying webscraped text. on Sun, 23 Jan 2022 16:22:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/enderflop" aria-label="Profile: enderflop">@<bdi>enderflop</bdi></a> cool</p>
<p dir="auto">key here is module name = foldername = filename = register name<br />
and node_helper.js has to be in the same folder</p>
]]></description><link>https://forum.magicmirror.builders/post/98896</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/98896</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 23 Jan 2022 16:22:26 GMT</pubDate></item><item><title><![CDATA[Reply to Help developing first module, displaying webscraped text. on Sun, 23 Jan 2022 01:45:07 GMT]]></title><description><![CDATA[<p dir="auto">Got it to work! Thanks for the PR <a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> and the example webscraping code <a class="plugin-mentions-user plugin-mentions-a" href="/user/cowboysdude" aria-label="Profile: cowboysdude">@<bdi>cowboysdude</bdi></a><br />
<img src="/assets/uploads/files/1642902298907-4ea51fcf-a566-4981-b99d-54bd250929a0-image.png" alt="4ea51fcf-a566-4981-b99d-54bd250929a0-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.magicmirror.builders/post/98893</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/98893</guid><dc:creator><![CDATA[enderflop]]></dc:creator><pubDate>Sun, 23 Jan 2022 01:45:07 GMT</pubDate></item><item><title><![CDATA[Reply to Help developing first module, displaying webscraped text. on Sun, 23 Jan 2022 01:22:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> Hey, sorry for the late response. I accidentally took the screenshot of mmpm but the same error was coming up with dining-hall lol that’s a mistake. I’ll take a look at the PR and see how it goes, thanks!</p>
]]></description><link>https://forum.magicmirror.builders/post/98890</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/98890</guid><dc:creator><![CDATA[enderflop]]></dc:creator><pubDate>Sun, 23 Jan 2022 01:22:09 GMT</pubDate></item><item><title><![CDATA[Reply to Help developing first module, displaying webscraped text. on Sun, 23 Jan 2022 00:32:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/enderflop" aria-label="Profile: enderflop">@<bdi>enderflop</bdi></a> i tested your module, a couple tiny changes</p>
<p dir="auto">submitted a PR with the updates…</p>
]]></description><link>https://forum.magicmirror.builders/post/98886</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/98886</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 23 Jan 2022 00:32:23 GMT</pubDate></item><item><title><![CDATA[Reply to Help developing first module, displaying webscraped text. on Sat, 22 Jan 2022 23:15:55 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> mmpm is another module… disable that in config.js for now</p>
<p dir="auto">module: mmpm,<br />
disabled: true</p>
]]></description><link>https://forum.magicmirror.builders/post/98884</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/98884</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 22 Jan 2022 23:15:55 GMT</pubDate></item><item><title><![CDATA[Reply to Help developing first module, displaying webscraped text. on Sat, 22 Jan 2022 23:13:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/enderflop" aria-label="Profile: enderflop">@<bdi>enderflop</bdi></a> nice start…</p>
<p dir="auto">sorry, yuou can’t do require() in the browser side (dining-hall.js)<br />
only n the server side (node_helper)</p>
<p dir="auto">so the layout looks right…  and you’ve got the flow correct…<br />
send request to node_helper<br />
it processes, gets data<br />
sends back to modulename.js<br />
and then it does updateDom()<br />
and getDom() builds the html /dom content…</p>
]]></description><link>https://forum.magicmirror.builders/post/98883</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/98883</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 22 Jan 2022 23:13:14 GMT</pubDate></item><item><title><![CDATA[Reply to Help developing first module, displaying webscraped text. on Sat, 22 Jan 2022 16:37:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/enderflop" aria-label="Profile: enderflop">@<bdi>enderflop</bdi></a> No one is going to call you an idiot.   The very first error is easy because it cannot find the file you are trying to load.</p>
<p dir="auto">what is mmpm.js?   That’s the file it can’t find.</p>
]]></description><link>https://forum.magicmirror.builders/post/98876</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/98876</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Sat, 22 Jan 2022 16:37:00 GMT</pubDate></item></channel></rss>