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.

    New and confused.

    Scheduled Pinned Locked Moved General Discussion
    55 Posts 5 Posters 34.0k Views 5 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.
    • SexyTroggS Offline
      SexyTrogg @mickyas
      last edited by

      @mickyas Its an example of what options are available. Every module has to be placed into the Magic Mirror config file and inside of that file will be the settings for each module. For example:

      modules: [
       {
      	module: "compliments",
      	position: "lower_third",	// This can be any of the regions.
      								// Best results in one of the middle regions like: lower_third
      	config: {
      		// The config property is optional.
      		// If no config is set, the default compliments are shown.
      		// See 'Configuration options' for more information.
      	}
      }
      ]
      

      Above is taken from the compliments module. As you can see there is the position:“lower_third” option. The link I gave you gives you all of the other options for where you can place your module.
      As for colors, the link only used colors to help make each region stand out. Modules set their colors through their .css files so you can always go into that and change it to your needs.

      mickyasM 1 Reply Last reply Reply Quote 1
      • mickyasM Offline
        mickyas @SexyTrogg
        last edited by mickyas

        @SexyTrogg Just tried from the link you sent me…didn’t work.
        I opened a terminal put in … sudo nano /boot/config.txt (pressed enter)
        then added …display_rotate=1
        avoid_warnings=1 (it already had the display_rotate=1 as the first line)
        then i pressed ctrl x and saved, then rebooted, No difference still wrong orientation. :-((( I even tried changing the text ‘vertical’ to horizontal’ and still nothing. I’d already altered the screen orientation (playing around) from horizontal to vertical but i’d like to change it back but nowt happening :-(

        Mick

        SexyTroggS Mykle1M 2 Replies Last reply Reply Quote 0
        • SexyTroggS Offline
          SexyTrogg @mickyas
          last edited by

          @mickyas Id use the advice that @Mykle1 gave. The Xscreensaver is really easy to use and is much easier than editing a file through the terminal

          1 Reply Last reply Reply Quote 1
          • mickyasM Offline
            mickyas @SexyTrogg
            last edited by

            @SexyTrogg Just to clarify…every time i’d like to add a module i have to first open a terminal then enter … sudo nano /boot/config.txt … then (copy and paste?) enter the text/code (copy and paste?) for the module…where?..anywhere? Then ctrl x and save then reboot???
            Mick

            SexyTroggS 1 Reply Last reply Reply Quote 0
            • SexyTroggS Offline
              SexyTrogg @mickyas
              last edited by

              @mickyas That’s the hard way (in my opinion).
              I use Filezilla to connect to my PI though FTP. That lets me easily click and drag new modules into the /modules folder. I also use FTP to download the config file to my PC and make edits there before I upload it back. But yes, every module needs for you to manually add it to the config. All modules on github follow a similar format where the Readme will give an example of the lines of code you need to put into the config.

              1 Reply Last reply Reply Quote 0
              • Mykle1M Offline
                Mykle1 Project Sponsor Module Developer @mickyas
                last edited by

                @mickyas said in New and confused.:

                I opened a terminal put in … sudo nano /boot/config.txt (pressed enter)
                then added …display_rotate=1
                avoid_warnings=1 (it already had the display_rotate=1 as the first line)
                then i pressed ctrl x and saved, then rebooted, No difference still wrong orientation. :-((( I even tried changing the text ‘vertical’ to horizontal’ and still nothing. I’d already altered the screen orientation (playing around) from horizontal to vertical but i’d like to change it back but nowt

                When I said “reverse the directions” I guess I wasn’t clear enough. The directions are telling to you to “add” display_rotate=1. You want to “remove” that line of code because that is telling your system to rotate the screen. If that line of code is there twice then you need to remove both instances for your screen to go back to landscape mode.

                Create a working config
                How to add modules

                Mykle1M 1 Reply Last reply Reply Quote 1
                • Mykle1M Offline
                  Mykle1 Project Sponsor Module Developer @Mykle1
                  last edited by Mykle1

                  @mickyas said in New and confused.:

                  Just to clarify…every time i’d like to add a module i have to first open a terminal then enter … sudo nano /boot/config.txt … then (copy and paste?) enter the text/code (copy and paste?) for the module…where?..anywhere? Then ctrl x and save then reboot???

                  Mick, here’s an easier way to add a module and you only have to use the terminal once. Lets use my MMM-JEOPARDY module as test. Go to this page of modules https://github.com/MichMich/MagicMirror/wiki/MagicMirror²-Modules#3rd-party-modules and scroll down until you see MMM-JEOPARDY by Mykle1 . Click on it.
                  Now you’re at my repo for that module. Click on the green Clone or download button on the right. That shows you the url to get the module. Copy that url.

                  Now open a terminal and type cd MagicMirror/modules. Now you’re in the MagicMirror/modules directory. Now type git clone and one space and paste the url that you copied from my repo for the module. It should look like this:
                  git clone https://github.com/mykle1/MMM-JEOPARDY.git and press your Enter key. This will download the module into the modules folder where it belongs.

                  You’re now done with the terminal! (for now)

                  From your Pi desktop, click the File Manager folder. Double click the MagicMirror folder. Double click the config folder. Double click the config.js file. Your config.js file is now open in a text editor. You have to add an entry for the module you just downloaded so that MM knows to load it. Lets put MMM-JEOPARDY under your calendar module entry so that it appears under the calendar on your mirror. Modules that occupy the same postition load in the order they appear in the config.js file. Scroll down to the calendar entry in the config.js file. The entry “ends” at the last }, before the next module entry that begins with a single {.

                  Copy and paste this “between” the ending of the calendar module entry and the beginning of the next module. (It’s probably compliments)

                               {
                  		disabled: false,
                  		module: "MMM-JEOPARDY",
                  		position: "top_left",
                  		config: {
                  			rotateInterval: 25 * 1000,         // New Clue Appears             
                  			useHeader: false,                  // true if you want a header
                  			header: "This is Jeopardy!",
                  			maxWidth: "250px",
                  			animationSpeed: 3000,              // Fades to next clue
                  		}
                  		},
                  

                  SAVE!

                  Go back to your terminal, or open a new one, and type npm start in the MagicMirror directory.

                  From now on, you’ll find the entry you need to make in the README file of each module that you download. You now have a guide on how to do that.

                  Create a working config
                  How to add modules

                  mickyasM C 2 Replies Last reply Reply Quote 1
                  • mickyasM Offline
                    mickyas @Mykle1
                    last edited by

                    @Mykle1 Perfect description of how to carry out an install, i like laymans terms :-))) step by step…perfect, much appreciated. :-))
                    Mick

                    Mykle1M 1 Reply Last reply Reply Quote 1
                    • Mykle1M Offline
                      Mykle1 Project Sponsor Module Developer @mickyas
                      last edited by

                      @mickyas said in New and confused.:

                      Perfect description of how to carry out an install, i like laymans terms :-))) step by step…perfect, much appreciated. :-))

                      You’re welcome. Enjoy your mirror.

                      Create a working config
                      How to add modules

                      1 Reply Last reply Reply Quote 1
                      • C Offline
                        caseyrcoughlin @Mykle1
                        last edited by caseyrcoughlin

                        @Mykle1 said in New and confused.:

                        @mickyas said in New and confused.:

                        Just to clarify…every time i’d like to add a module i have to first open a terminal then enter … sudo nano /boot/config.txt … then (copy and paste?) enter the text/code (copy and paste?) for the module…where?..anywhere? Then ctrl x and save then reboot???

                        Mick, here’s an easier way to add a module and you only have to use the terminal once. Lets use my MMM-JEOPARDY module as test. Go to this page of modules https://github.com/MichMich/MagicMirror/wiki/MagicMirror²-Modules#3rd-party-modules and scroll down until you see MMM-JEOPARDY by Mykle1 . Click on it.
                        Now you’re at my repo for that module. Click on the green Clone or download button on the right. That shows you the url to get the module. Copy that url.

                        Now open a terminal and type cd MagicMirror/modules. Now you’re in the MagicMirror/modules directory. Now type git clone and one space and paste the url that you copied from my repo for the module. It should look like this:
                        git clone https://github.com/mykle1/MMM-JEOPARDY.git and press your Enter key. This will download the module into the modules folder where it belongs.

                        You’re now done with the terminal! (for now)

                        From your Pi desktop, click the File Manager folder. Double click the MagicMirror folder. Double click the config folder. Double click the config.js file. Your config.js file is now open in a text editor. You have to add an entry for the module you just downloaded so that MM knows to load it. Lets put MMM-JEOPARDY under your calendar module entry so that it appears under the calendar on your mirror. Modules that occupy the same postition load in the order they appear in the config.js file. Scroll down to the calendar entry in the config.js file. The entry “ends” at the last }, before the next module entry that begins with a single {.

                        Copy and paste this “between” the ending of the calendar module entry and the beginning of the next module. (It’s probably compliments)

                                     {
                        		disabled: false,
                        		module: "MMM-JEOPARDY",
                        		position: "top_left",
                        		config: {
                        			rotateInterval: 25 * 1000,         // New Clue Appears             
                        			useHeader: false,                  // true if you want a header
                        			header: "This is Jeopardy!",
                        			maxWidth: "250px",
                        			animationSpeed: 3000,              // Fades to next clue
                        		}
                        		},
                        

                        SAVE!

                        Go back to your terminal, or open a new one, and type npm start in the MagicMirror directory.

                        From now on, you’ll find the entry you need to make in the README file of each module that you download. You now have a guide on how to do that.

                        Another newbie here but instead of starting my own thread, I’ll just piggyback on this one. This helped me understand things a lot but I think I’m either doing something wrong or the raspberry pi isn’t wanting to work with me.

                        I went in to the File Manager folder and saw everything that was supposed to be there. But when I tried to open the config.js file it didn’t pull up a text editor. Instead I had to choose a program to open it with and when I chose the text editor or anything else for that matter it just closed the program selection window and then nothing else happened. So I was never able to pull anything up to edit or add to it. Any ideas?

                        Thanks

                        EDIT - So I came back to it this morning and while I still wasn’t able to get it to work I figured out that I was asking it to open with a program it’s not able to open with, like text editor under accessories in the “Choose Application” menu. So I tried to open it with the Terminal and it acted like it was going to open and gave me a pointer with an hourglass next to it and after about 7 seconds or so nothing happened and the hourglass went away. So I’m still doing something wrong, still not sure what. Any help is appreciated.

                        Mykle1M 1 Reply Last reply Reply Quote 0
                        • Mykle1M Offline
                          Mykle1 Project Sponsor Module Developer @caseyrcoughlin
                          last edited by

                          @caseyrcoughlin said in New and confused.:

                          So I’m still doing something wrong, still not sure what. Any help is appreciated.

                          A few questions:
                          Can you create a new document with your text editor? If so, then the problem is NOT your text editor.

                          Is your config.js file named EXACTLY, “config.js”? The icon should look like a “gear”. Text files should look like a page of text. If the file “type” is incorrect then that could make the text editor unable to open the file. Check the properties of the file.

                          Long shot here: Are you sure the file isn’t opening below the visible area of the window? Meaning, make sure you scroll all the way through the entire window as the file may have opened outside of your view.

                          Create a working config
                          How to add modules

                          C 1 Reply Last reply Reply Quote 0
                          • C Offline
                            caseyrcoughlin @Mykle1
                            last edited by caseyrcoughlin

                            @Mykle1 said in New and confused.:

                            @caseyrcoughlin said in New and confused.:

                            So I’m still doing something wrong, still not sure what. Any help is appreciated.

                            A few questions:
                            Can you create a new document with your text editor? If so, then the problem is NOT your text editor.

                            Is your config.js file named EXACTLY, “config.js”? The icon should look like a “gear”. Text files should look like a page of text. If the file “type” is incorrect then that could make the text editor unable to open the file. Check the properties of the file.

                            Long shot here: Are you sure the file isn’t opening below the visible area of the window? Meaning, make sure you scroll all the way through the entire window as the file may have opened outside of your view.

                            The file is named config.js exactly with a gear for an icon. It also has a config.js.sample next to it and the icon looks like a page with lines on it so I’m assuming that’s a text file. But as far as the Text Editor, therein may lie the problem. I can’t even find the text editor on my raspberry pi…does it not come with one? It comes up on the “Choose Application” box under “Accessories” but under the Applications Menu under “Accessories” I only have File Manager, Task Manager, and Terminal. Also, another question…when the Magic Mirror is running, how to I get it to stop and get back to the desktop GUI? I’ve just been rebooting it so far.

                            cowboysdudeC 1 Reply Last reply Reply Quote 0
                            • cowboysdudeC Offline
                              cowboysdude Module Developer @caseyrcoughlin
                              last edited by

                              @caseyrcoughlin said in New and confused.:

                              @Mykle1 said in New and confused.:

                              @caseyrcoughlin said in New and confused.:

                              So I’m still doing something wrong, still not sure what. Any help is appreciated.

                              A few questions:
                              Can you create a new document with your text editor? If so, then the problem is NOT your text editor.

                              Is your config.js file named EXACTLY, “config.js”? The icon should look like a “gear”. Text files should look like a page of text. If the file “type” is incorrect then that could make the text editor unable to open the file. Check the properties of the file.

                              Long shot here: Are you sure the file isn’t opening below the visible area of the window? Meaning, make sure you scroll all the way through the entire window as the file may have opened outside of your view.

                              The file is named config.js exactly with a gear for an icon. It also has a config.js.sample next to it and the icon looks like a page with lines on it so I’m assuming that’s a text file. But as far as the Text Editor, therein may lie the problem. I can’t even find the text editor on my raspberry pi…does it not come with one? It comes up on the “Choose Application” box under “Accessories” but under the Applications Menu under “Accessories” I only have File Manager, Task Manager, and Terminal. Also, another question…when the Magic Mirror is running, how to I get it to stop and get back to the desktop GUI? I’ve just been rebooting it so far.

                              Hit the ALT key on the keyboard and a menu will pop up at the top… from there you can exit MM.

                              C 1 Reply Last reply Reply Quote 1
                              • C Offline
                                caseyrcoughlin @cowboysdude
                                last edited by caseyrcoughlin

                                @cowboysdude said in New and confused.:

                                That makes life so much easier, can’t believe I didn’t think to hit the ALT key before. So I got into the config menu through the terminal but I messed some stuff up and deleted a few of the modules that I want back to mess around with some more. I’d like to uninstall and reinstall Magic Mirror. How do I uninstall it?

                                EDIT - Nevermind, figured out how to install it again. At least a workaround anyway. I renamed the old Magic Mirror and I’m reinstalling it again. I’d imagine I’ll have about 25 failed versions of Magic Mirror under various names before I get it to how I want it lol. Is there anyway to delete these files off of the RPi?

                                Mykle1M cowboysdudeC 2 Replies Last reply Reply Quote 1
                                • Mykle1M Offline
                                  Mykle1 Project Sponsor Module Developer @caseyrcoughlin
                                  last edited by Mykle1

                                  @caseyrcoughlin

                                  You can delete the old folders by simply dragging them to the trash, as you would any other file or folder.

                                  It’s odd that you don’t have a text editor. What OS are you installing? Rasbian Jessie certainly has a text editor. Are you using a Pi 3? You could always install a 3rd party text editor if you wanted to. You have options.

                                  I’m curious. Open a terminal and type leafpad and Enter. This would launch the default text editor in Jessie, if that’s what you’re running.

                                  How did you manage to edit your config.js file in the first place to get your MagicMirror running? Or, you haven’t gotten that far?

                                  Create a working config
                                  How to add modules

                                  1 Reply Last reply Reply Quote 0
                                  • cowboysdudeC Offline
                                    cowboysdude Module Developer @caseyrcoughlin
                                    last edited by

                                    @caseyrcoughlin said in New and confused.:

                                    @cowboysdude said in New and confused.:

                                    That makes life so much easier, can’t believe I didn’t think to hit the ALT key before. So I got into the config menu through the terminal but I messed some stuff up and deleted a few of the modules that I want back to mess around with some more. I’d like to uninstall and reinstall Magic Mirror. How do I uninstall it?

                                    EDIT - Nevermind, figured out how to install it again. At least a workaround anyway. I renamed the old Magic Mirror and I’m reinstalling it again. I’d imagine I’ll have about 25 failed versions of Magic Mirror under various names before I get it to how I want it lol. Is there anyway to delete these files off of the RPi?

                                    DO NOT feel bad…we’ve all been there :) You’re trying and that’s what this project is all about. Feel free to ask questions… it’s how we learn ;)

                                    1 Reply Last reply Reply Quote 0
                                    • mickyasM Offline
                                      mickyas
                                      last edited by

                                      Well me and my ten thumbs were playing around and i entered the config.js file to alter parts of the weather module ( i managed to get an API key and my location I.D. as the weather in New York doesn’t really interest me at the mo :-))) ) and entered them in to the code, between the speech marks, saved it and then ran MM but the weather module wasn’t present, everything else was …any ideas??? Next will be altering the holidays/calendar etc (i’m trying to work out how to use my google calendar with all of my saved dates etc, so expect more questions) :0. Thanks.
                                      Mick

                                      cowboysdudeC Mykle1M 2 Replies Last reply Reply Quote 0
                                      • cowboysdudeC Offline
                                        cowboysdude Module Developer @mickyas
                                        last edited by

                                        @mickyas said in New and confused.:

                                        Well me and my ten thumbs were playing around and i entered the config.js file to alter parts of the weather module ( i managed to get an API key and my location I.D. as the weather in New York doesn’t really interest me at the mo :-))) ) and entered them in to the code, between the speech marks, saved it and then ran MM but the weather module wasn’t present, everything else was …any ideas??? Next will be altering the holidays/calendar etc (i’m trying to work out how to use my google calendar with all of my saved dates etc, so expect more questions) :0. Thanks.
                                        Mick

                                        My advice is always the same… if you have a working config.js then copy it to config.bak then you know no matter what you’ll never be down :)

                                        THEN:

                                        It’s easier if you post your config.js minus the api keys just put xx in place of that… then we can peek at it :)

                                        mickyasM 1 Reply Last reply Reply Quote 0
                                        • Mykle1M Offline
                                          Mykle1 Project Sponsor Module Developer @mickyas
                                          last edited by

                                          @mickyas said in New and confused.:

                                          entered them in to the code, between the speech marks, saved it and then ran MM but the weather module wasn’t present, everything else was …any ideas???

                                          You likely made a small mistake somewhere. As @cowboysdude said, it would be easier for us to help you if would copy and paste that portion of your config.js file (minus the API key)

                                          Next will be altering the holidays/calendar etc (i’m trying to work out how to use my google calendar with all of my saved dates etc, so expect more questions) :0.

                                          Go to your google calendar. On the LEFT side of the page you’ll see My Calendars, Other Calendars. Hover (don’t click) your mouse over the individual calendar that you want. A down arrow v appears to the RIGHT of the calendar. Click the down arrow v and choose Calendar settings. Click the green ICAL button. This will give you the url you need to enter into the calendar module

                                          Create a working config
                                          How to add modules

                                          mickyasM 1 Reply Last reply Reply Quote 0
                                          • mickyasM Offline
                                            mickyas @cowboysdude
                                            last edited by

                                            @cowboysdude Sorry but you assume i know what you’re on about :-)))) what’s config.bak??? I have NO knowledge whatsoever of any kind of coding etc, my computer abilities stretch as far as writing a n e-mail and doing the odd letter. :-))).
                                            Mick

                                            Mykle1M 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
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • 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