MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Head first developing MM module for extreme beginners

    Development
    9
    27
    14247
    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.
    • S
      sdetweil @Dobi last edited by sdetweil

      @dobi view the source in the dev window

      what u showed above is not changed

      Sam

      Create a working config
      How to add modules

      D 1 Reply Last reply Reply Quote 0
      • D
        Dobi @sdetweil last edited by

        @sdetweil
        sorry I only updated it on github

        
        notificationReceived: function (notification, payload, sender) {
        		var self = this;
        		switch (notification) {
        			case "DOM_OBJECTS_CREATED":
        				var timer = setInterval(() => {
        					//this.updateDom()
        					self.sendSocketNotification("DO_YOUR_JOB", self.count);
        					console.log(`self.sendSocketNotification("DO_YOUR_JOB", this.count)`, self.sendSocketNotification("DO_YOUR_JOB", self.count))
        					self.sendSocketNotification("DO_YOUR_JOB", self.count)
        					self.subElementUp.innerHTML = "Count UP:" + self.count
        					self.count++
        				}, 1000)
        				break
        		}
        	},
        
        
        S 1 Reply Last reply Reply Quote 0
        • S
          sdetweil @Dobi last edited by

          @dobi and in the console.log too

          Sam

          Create a working config
          How to add modules

          D 1 Reply Last reply Reply Quote 1
          • D
            Dobi @sdetweil last edited by

            @sdetweil Hey sorry for my quite late response. But I wanted to tell you that I found my error it was quite stupid. I had to restart my raspi. After a restart the node_helper worked fine 🙂
            I wrote my first module.

            Thanks for your patient

            S cowboysdude 2 Replies Last reply Reply Quote 2
            • S
              sdetweil @Dobi last edited by

              @dobi glad you found it… so much fun!!

              Sam

              Create a working config
              How to add modules

              1 Reply Last reply Reply Quote 1
              • cowboysdude
                cowboysdude Module Developer @Dobi last edited by

                @dobi See you can do it! Great job and glad that it all worked out for you! 🙂 This is what this project is about…learning.

                NOW you can make your mirror your own by showing information that you want and/or need to see…

                1 Reply Last reply Reply Quote 0
                • R
                  riich last edited by

                  Anyone have an idea on how to display an image instead of a line. I downloaded a jpeg image of a dog and I would like to display that instead of

                  1 Reply Last reply Reply Quote 0
                  • 1
                  • 2
                  • 3
                  • 3 / 3
                  • First post
                    Last post
                  Enjoying MagicMirror? Please consider a donation!
                  MagicMirror created by Michael Teeuw.
                  Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy