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.

    MMM-Button doesn't work

    Scheduled Pinned Locked Moved Troubleshooting
    11 Posts 2 Posters 8.0k Views 2 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.
    • lolobyteL Offline
      lolobyte
      last edited by

      hi,

      see here…

      https://forum.magicmirror.builders/topic/948/error-found-error-module-version-mismatch-expected-50-got-46/7

      1 Reply Last reply Reply Quote 0
      • C Offline
        Codejune
        last edited by Codejune

        I have already run npm rebuild --runtime = electron --target = 1.4.5 --disturl = https: //atom.io/download/atom-shell --abi = 50, but Expected 50, got 49. The error is still output.

        1 Reply Last reply Reply Quote 0
        • lolobyteL Offline
          lolobyte
          last edited by

          at first u must check witch version u have.

          Error was in my electron:
          Error: Module version mismatch. Expected 50, got 51.

          Stat your shell an type following command in your MagicMirror folder: npm list | grep electron

          At result you must see something like this…

          pi@raspberrypi:~/MagicMirror $ npm list | grep electron
          ├─┬ electron-prebuilt@1.4.6
          │ ├─┬ electron-download@3.0.1
          npm ERR! extraneous: stylelint@7.5.0 /home/pi/MagicMirror/node_modules/stylelint

          What must be done here?
          at first change in your Button folder:

          cd ~/MagicMirror/modules/MMM-Button

          and then type in following command, you must change the version number with your own:

          npm rebuild --runtime=electron --target=1.4.6 --disturl=https://atom.io/download/atom-shell --abi=50

          That’s all.

          1 Reply Last reply Reply Quote 0
          • C Offline
            Codejune
            last edited by Codejune

            I have run the command in the project folder and have not run it from the module folder. So I guess it was not solved yet.
            This solves the problem. Thank you!

            1 Reply Last reply Reply Quote 0
            • lolobyteL Offline
              lolobyte
              last edited by

              you’re welcome.

              Have fun with your Mirror.

              Does the button work now with MMM-podcast?

              1 Reply Last reply Reply Quote 0
              • C Offline
                Codejune
                last edited by Codejune

                MMM-Podcast seems to be working correctly.

                lolobyteL 1 Reply Last reply Reply Quote 0
                • lolobyteL Offline
                  lolobyte @Codejune
                  last edited by

                  @Codejune

                  nice, with gpio 5 and GND?

                  C 1 Reply Last reply Reply Quote 0
                  • C Offline
                    Codejune @lolobyte
                    last edited by

                    @lolobyte Sure. By default, I put a Push Button on pin 5 and connected it to GND. As a result, I was able to see that it worked successfully.

                    Like this Image -> https://github.com/Codejune/WebImageStorage/blob/master/Result.jpg?raw=true

                    lolobyteL 1 Reply Last reply Reply Quote 0
                    • lolobyteL Offline
                      lolobyte @Codejune
                      last edited by

                      @Codejune

                      are u in a club or a hw do it yourself organisation?

                      C 1 Reply Last reply Reply Quote 0
                      • C Offline
                        Codejune @lolobyte
                        last edited by

                        @lolobyte I am a college student and I do not belong to any organization. I’m just studying alone, collecting money, buying or collecting parts, and doing my DIY MagicMirror project on my own.

                        1 Reply Last reply Reply Quote 0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • 1 / 1
                        • 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