@strawberry-3.141 Thanks for the fast answer :)
I did it , just as you said it. on the mirror is displayed : NO DATA
Here is the code from the nodehelper:
Is the path specified correctly or I need to change something?
- readData: function(){
//to read a file to do the following
fs.readFile(‘/home/pi/MagicMirror/Test-temp.txt’, (err, data) => {
if (err) throw err;
this.sendSocketNotification(‘DATA’, data);
});