MagicMirror² v2.5.0 is available! For more information about this release, check out this topic.

MM module loading stale data??



  • I have a node helper file that is doing this:

    const NodeHelper = require("node_helper");
    const fs= require("fs");
    
    module.exports = NodeHelper.create({
    //here comes the part of the nodehelper after the 3 dots as posted above
    
            socketNotificationReceived: function(notification, payload) {
                    if(notification === "START"){
                            this.config = payload;
                            this.readData();
                            setInterval(() => {
                                    this.readData();
                            }, this.config.updateInterval);
                    }
            },
    
    
            readData: function (){
            //to read a file to do the following
                    fs.readFile('/container.html', 'utf8', (err, data) => {
                    if (err) throw err;
                    this.sendSocketNotification('DATA', data);
                    });
            }
    })
    
    

    This seems to present the same info… despite changing what it is in the file: container.html

    Why is that? Isn’t think loading up on every npm start?