@strawberry-3.141
hi, now i get " [object ArryBuffer]"
what did i worng?
dominic
@dominic
Posts made by dominic
-
RE: .txt file include
-
RE: .txt file include
@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);
});
- readData: function(){
-
RE: .txt file include
@strawberry-3.141 Hi thank you.
Sorry for the questions, i´m new in .js.Where do I insert the nodehelper und the module and and what I need to modify?
I have insert the nodehelper code in the file: MagicMirror/modules/node_modules/node_helper/index.js.
And the module code in /MagicMirror/modules/sensor/sensor.js.on the mirror is displayed : Sensor module_2_sensor…
-
.txt file include
Hello, i have a .txt file,
this file I want to embed to the mirror. So the
Content is displayed on the mirror.
In addition , the file should be up-dated after a time= x.can someone help me?
Thanks