MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. TomasF
    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

    TomasF

    @TomasF

    0
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    TomasF Unfollow Follow

    Latest posts made by TomasF

    • 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