Read the statement by Michael Teeuw here.
Help, I need to send data to the module I am trying to create
-
I am new to javascript so this project that I am working on is proving more difficult than anticipated.
I am creating a module to monitor our schools bus routes and display them onto the screen. I have the webscraping working fine in a javascript file that returns a 2x2 array of bus times for each route and stop. but need to implement it into the magic mirror.
to my understanding in order to do this I need a node_helper.js file to scrape the data and send it using sendSocketNotification. Is this right? Im not sure how this function works, if anyone has some insight it would be greatly appreciated
code_text -
@kylelamb1324 see my sample module
it’s node helper receives a message and sends one back
https://github.com/sdetweil/SampleModuleits
string identifying the message
and some buffer of data,
completely up to you, string, number, structure…then on the receiving side u get the identifier, so you can tell different messages apart
and a pointer to the buffer sent by the sendersocket notifications are private to your module
an example use
the node_helper does not get any of the info from config.js like the modulename.js does
so, typically the first thing would be to send the this.config buffer to the node_helper