@strawberry-3-141 i´ve changed the path in the node-helper.js, but it doesn´t solve my problem…
Are there any other opportunities?
const NodeHelper = require("node_helper");
const fs= require("fs");
module.exports = NodeHelper.create({
socketNotificationReceived: function(notification, payload) {
if(notification === "START"){
this.config = payload;
this.readData();
setInterval(() => {
this.readData();
}, this.config.updateInterval);
}
},
readData: function(){
fs.readFile("modules/MMM-OEBBv2/daten.txt", "utf8", (err, data) => {
if (err) throw err;
this.sendSocketNotification("DATA", data);
});
}
});
kind regards
k3rn3lpanic