A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
using a library in a module
-
Hi,
I’m trying to use https://github.com/onury/tasktimer, I can get it to work in node_helper but
the module doesn’t see it. I’ve tried adding
// Define required scripts.getScripts: function () { return ["modules/MMM-GooglePhotos/node_modules/tasktimer/lib/tasktimer.js"] },
and using
const timer = TaskTimer(1000)
in a function but I get a TaskTimer not defined error.
Any sugestions?
-Tomas
-
@tomasf i don’t know for certain, but you could open the developers window and look at the sources tab to see what was actually imported and setup…