MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. TomasF
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    T
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Groups 0

    Posts

    Recent Best Controversial
    • 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

      posted in Development
      T
      TomasF
    • 1 / 1