MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    module develop help!

    Scheduled Pinned Locked Moved Development
    11 Posts 3 Posters 5.7k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? Offline
      A Former User
      last edited by

      And the last, you SHOULD DRAW YOUR DOM for real rendering.

      getDom: function() {
        // do your job...
        yourDOM = document.createElement("div")
        yourDOM.innerHTML = "Something"
        return yourDOM // DOM which has your content inside, should be returned.
      },
      
      
      
      wiresharkW 1 Reply Last reply Reply Quote 0
      • wiresharkW Offline
        wireshark @Guest
        last edited by

        This post is deleted!
        ? 1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User @wireshark
          last edited by

          @wireshark
          Run with npm start dev. And see the logs and errors. They tell you what are real problems. And even for us, without exact information, we couldn’t help.
          Anyway, what it means ‘doesn’t work’? It has errors? Black screen?
          I think if it works, just alert window would be popped up. (Return value of xhr.send() might be not what you really want.) You’d better to investigate codes around alert().

          wiresharkW 1 Reply Last reply Reply Quote 0
          • wiresharkW Offline
            wireshark @Guest
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • E Offline
              E3V3A
              last edited by

              Did you ever get your module to work?

              "Everything I do (here) is for free – altruism is the way!"
              MMM-FlightsAbove, MMM-Tabulator, MMM-Assistant (co-maintainer)

              1 Reply Last reply Reply Quote 0
              • 1
              • 2
              • 2 / 2
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy