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.

    Newbie MM Husband trying to make a MM for wife for XMAS

    Scheduled Pinned Locked Moved Hardware
    newbiehow tolostadvicehelpgift
    8 Posts 6 Posters 1.5k Views 6 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.
    • bheplerB Offline
      bhepler Module Developer
      last edited by

      Magic Mirror Basics, part 1: Logging in remotely.

      This usually means establishing a connection from your laptop or desktop to your magic mirror and using the command line to make changes to your magic mirror. Once you’ve built your mirror, it’s very inconvenient to make changes directly on the mirror. You have to plug a mouse & keyboard into the Pi which is usually buried behind the glass & frame. It’s much easier to establish a connection from your main computer to the Pi and use that to make changes.

      Your goal here is to establish what’s called an SSH connection between your nice computer and the wimpy computer that drives the mirror. If you’re using Windows, I suggest downloading & installing Bitvise SSH on your main computer. This will ease the process of establishing the connections.

      The Raspberry Pi has the capability to host SSH connections, but you need to tell it to turn this feature on. Plug a keyboard into your Raspberry Pi and press Ctrl + Alt + t (control, alt & tee). That will open up a window with command line access to your Raspberry Pi. Once you see the window with the command line, enter sudo raspi-config and press enter. You’ll see a very basic interface appear with some options. Use the arrow keys and the enter key to navigate down to Interfacing Options and press enter, then navigate to P2 SSH and press enter.

      When it asks you if you want the SSH server to be enabled, make sure <Yes> is highlighted in red and then press enter. It will confirm your selection, then kick you back to the main menu. Use the TAB button to navigate to Finish and press enter. Your Pi is now ready to receive connections.

      You will need to know your Raspberry Pi’s IP address so you know how to connect. Enter the following on the Pi’s command line: ip a | grep wlan0 and press enter. It will spit back two lines of text, the 2nd one should look like this:

      inet 192.168.0.10/24 brd 10.0.0.255 scope global wlan0
      

      That string of numbers after the word inet but before the /24 is what you’re looking for. In the above case, the IP address is 192.168.0.10. Yours may be different. Write it down, 'cuz you’ll need it.

      On your main computer/laptop, open up Bitvise and create a new profile. Name it something easy, like “Magic Mirror” and save it to your desktop. In the Host text box, enter the IP address you just wrote down. The Port value is 22. Over on the right, the username box should contain pi. Initial method is “password”. Once you’re ready, click on “Log in” at the bottom of the Bitvise app and it will establish a connection to your Pi and ask you for a password. By default, the password is raspberry (assuming you didn’t change it).

      It should automatically open two windows. The first will be a command line window. Congratulations! You have remotely logged in to your magic mirror. The other window is a file transfer window. You can use this to upload pictures, sound files, movies, etc. to your mirror (or download things too). The left side is your desktop/laptop and the right side is your mirror. You can copy either direction by dragging files & folders from one side to the other.

      You now have remote access to your mirror.

      1 Reply Last reply Reply Quote 1
      • bheplerB Offline
        bhepler Module Developer
        last edited by

        Magic Mirror Basics, part 2: Modifying your mirror

        You’ve already done this a bit, but I want to expand upon modifying the behavior of your Magic Mirror. The vast majority of the time, you will be able to change the behavior of your magic mirror to your will by doing two things:

        • Installing modules in the /home/pi/MagicMirror/modules folder
        • Modifying the config.js file.

        You’ve already taken a crack at modifying the config.js file. You’ve changed the default compliments to include your wife’s name. That’s pretty much half of the journey right there. The compliments and calendar modules are included with the basic magic mirror framework, so you don’t need to add those modules separately. Adding the modules developed by the community is only slightly more involved.

        The basic steps to adding a third-party module are:

        • clone the module into the /home/pi/MagicMirror/modules folder
        • run the installation script, if necessary
        • edit the config.js file to tell the magic mirror framework to look for the new module.

        The only complex part of the process is that the section of the config.js file for the new module isn’t included in the default file, so you’ll have to add it from scratch. It’s not terribly difficult and the read.me file in each module should give you an example of the relevant code to copy into the config.js file.

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

          @Piznapple welcome, see the two topics in my signature… they are the starter topics… @bhepler has got you going a long way…

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • bheplerB Offline
            bhepler Module Developer
            last edited by

            Yeah, what he said.

            Tell you what. Read those two links and try to add the MMM-COVID19-SPARKLINE module. If you hit a snag, come back here and tell us what happened. We’ll get you sorted out.

            You have a mirror and a plan for specifically what you want to see on the interface. You’re almost there and I don’t think you’re going to need much guidance.

            1 Reply Last reply Reply Quote 0
            • P Offline
              Piznapple
              last edited by

              Thank you guys!!! so so much!!! I havn’t wrapped it up yet just because I wanted to see what you guys said first. She does use an Iphone, but she is old school, she hand writes he schedules out. The MM is my hope to replace that and so all of us can see if we have events going on say we are walking out the door or anything. But I will be giving your post a run through later on today and i will keep you guys posted. I am so thankful for your help and input with this project for her.

              1 Reply Last reply Reply Quote 0
              • R Offline
                ruff.hi
                last edited by

                this is impressive … getting started is one thing, finding this forum is a second … the most impressive (to me) is the community help you got.

                BTW … pictures would be good :) What size / type of screen did you use?

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