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

    Topics

    • W

      Help needed simple API based module

      Watching Ignoring Scheduled Pinned Locked Moved Development
      19
      0 Votes
      19 Posts
      11k Views
      ooom416354O
      @cowboysdude yup I agree with that!
    • W

      Module programming preview, jsfiddle?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      11
      0 Votes
      11 Posts
      8k Views
      morozgrafixM
      @washichi Interesting idea for the module. And glancing at your code you seem to be on the right track. I may be not understanding what you trying Sublime Text to do. It’s just a text editor with ability to add various packages on top of it. It’s not a full blown IDE. I don’t believe that you can compile or preview the JavaScript module directly in Sublime. My general workflow for module creation is something like this: Create MMM-mymodule directory inside MagicMirror/modules Open MagicMirror directory in sublime Add barebones config for the module to modules array in config.js, for example: { module: "MMM-mymodule", position: "bottom_right", config : { } }, Start node serveronly and point my Chrome with dev tools open to the http://localhost:8080 Create/edit MagicMirror/modules/MMM-mymodule/MMM-mymodule.js, save it. (or other files that you need for the module) Refresh the browser to pickup my changes, debug etc. Repeat steps 5-6 as I go along. If adding/editing node_helper.js repeat steps 4-6 since node needs to pickup that file. Some of restarts/refreshes can be automated on file save with different tools, but I’m not going to get into that right now.
    • 1 / 1