MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. Tags
    3. nodehelper
    Log in to post
    • All categories
    • M

      Async Functions inside node_helper.js
      Development • async scraping nodehelper module • • magmirusr

      6
      0
      Votes
      6
      Posts
      387
      Views

      M

      @mmrize
      Thank you very much!!! It’s working now. 🙂

    • N

      How to send a function as payload of socket notification?
      Development • socket notification notifications payload nodehelper • • ngnijland

      5
      0
      Votes
      5
      Posts
      412
      Views

      N

      @Sean
      Ah ofcourse, thanks for the explanation!

      My function does not have dependencies. I’ll use good old eval to fix this!

      My use case is that I need to use a different function based on the language setting of the mirror. These functions live in a separate folder and I import them in the node_helper.js file (together with some other arrays and objects I need based on language). For now I’ll use this solution, maybe in the future I build in a build step in my module so I can import the files directly into my main module file.

      https://github.com/ngnijland/MMM-text-clock/pull/2

    • J

      Feature/API requests for new NodeHelper?
      General Discussion • nodehelper experimental • • joshwilsonvu

      2
      0
      Votes
      2
      Posts
      280
      Views

      S

      @joshwilsonvu not with the helper itself.

      I think it should allow null responses to getscripts, styles, templates…
      the core crashes now…

    • 1 / 1