Read the statement by Michael Teeuw here.
Error Node_helper custome Module
-
@Chiiki58 where are you building this module?? are the files located in a folder off the MagicMirror/modules folder??
we create alias entries to the includes for some things…
so your files have to be in the right place…
pupetteer is really about executing a web page, clicking, scrolling
you shouldn’t need that I don’t think…
cheerio will let you extract parts of the page and
https://www.npmjs.com/package/cheerio
https://www.npmjs.com/package/html-to-json-parser
html_to_json to convert them to jsonalso, see my sampleModule that has working node_helper.js
https://github.com/sdetweil/SampleModulealso, names matter… MagicMirror is case sensitive
and the link to the doc for module creators
https://docs.magicmirror.builders/development/introduction.html -
@Chiiki58 also note the required files
module_name(in config.js) = folder_name = filename.js = register inside this file
all MUST MATCH exactlyyour .js doesn’t have the register
css file name has to match the return from
getStyles: function
-
@sdetweil Yeah of course I have everything in the right folder with the right name
I also had cheerio installed, I’ll have to check it out
I’ll try it with httptojson
Thank you very much, Sam
-
It works, thank you very much for the input. I’ll probably upload it to GIT once I get the layout right. Now I’ve just unstructured all the text from the website
-
@Chiiki58 awesome, glad you’re making progress.