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.

    how to put my code into QRCode?

    Scheduled Pinned Locked Moved Troubleshooting
    11 Posts 4 Posters 3.8k Views 4 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.
    • Mykle1M Offline
      Mykle1 Project Sponsor Module Developer
      last edited by Mykle1

      If, as you say, you have already installed the MMM-QRCode module then you would simply have to make your config.js entry as follows.

      {
          module: 'MMM-QRCode',
          position: "bottom_left",            // place where you want it
          config: {
              text: "Scan to join my network", // Any text you want
      	colorDark  : "#fff",
      	colorLight : "#000",
              imageSize  : 150,                // the size of the QRCode displayed.
              showRaw    : false,              // will hide and show your text
      	}
      },
      

      From what I can tell, the module itself creates the code for you.

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 1
      • C Offline
        CheapDad
        last edited by

        I have a related question. I’d like to use MMM-QRCode to access my MMM-Remote Control. All I would need is for the QRCode to pull my current mirror’s IP address, add “:8080” to the end of the url and generate the code. However, I don’t see how to do that in the documentation. Can someone point me in the right direction?

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @CheapDad
          last edited by

          @cheapdad he didn’t document the most important parameter

          text: url to link to

          text:“http://pi_address:mm_port/…”

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          C 1 Reply Last reply Reply Quote 1
          • C Offline
            CheapDad @sdetweil
            last edited by

            @sdetweil This works if you know your IP address. My daughter will take this to college with her, so I’m not sure she will know the IP address the dorm assigns her. I also don’t know if DHCP will change over the course of the semester.

            Or am I misunderstanding your suggestion?

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @CheapDad
              last edited by

              @cheapdad no… the module is not smart, it just uses the text string provided…
              doesn’t know what the string means

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @sdetweil
                last edited by

                @CheapDad there is a wifipassword module to get u connected to the wifi… but not MM…

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • 1
                • 2
                • 1 / 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