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.

    Sachin's Mirror

    Scheduled Pinned Locked Moved Show your Mirror
    30 Posts 5 Posters 30.4k Views 7 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.
    • S Offline
      Sachin
      last edited by

      0_1466440752908_MagicMirror.jpg

      1 Reply Last reply Reply Quote 0
      • A Offline
        adamsidelsky
        last edited by

        Which modules are you using?

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

          Apologies for the belated response, I’ve been traveling for work. Here’s a list of the modules…

          • All default modules (current weather, weather forecast, calendar, compliments, RSS Newsfeed, Traffic.)

          3rd Party modules

          • PIR Sensor
          • Scrobbler
          • iCloud client (For birthday calendar)
          • Nest
          • Wunderlist (For ToDo’s)
          • System Temp
          Wilco89W 1 Reply Last reply Reply Quote 0
          • A Offline
            adamsidelsky
            last edited by

            Sachin,

            Thanks very much for the info, the mirror looks great. Would you be able to share a more clear image of the mirror screen and the source code? I would like to make something very similar. If not publicly, I can PM you my email address and such.

            Regards,

            -Adam

            S 3 Replies Last reply Reply Quote 0
            • Wilco89W Offline
              Wilco89 @Sachin
              last edited by

              @Sachin where did you put the PIR sensor?

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

                @adamsidelsky Thanks. I’ll take a clearer picture tonight when I get home and post it.

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

                  @adamsidelsky I can post the full image of the SD card somewhere I suppose? Part of the fun however is to play with the code.

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

                    @Wilco89 It is in the bottom right hand corner. I’ll make sure to include it when I take a clearer picture tonight.

                    1 Reply Last reply Reply Quote 0
                    • KirAsh4K Offline
                      KirAsh4 Moderator
                      last edited by

                      @Sachin, use 'scrot' to take a screen shot of the display itself. 'scrot /home/pi/screenshot.png' will get you an image of the screen that you can then post here. (if you’re loged in remotely, you need to tell it which display to use: 'DISPLAY=:0 scrot /home/pi/screenshot.png')

                      As for the source code, you don’t have to post a full image, just the modules folder (assuming everything you have on there is in modules.) You can simply zip it up (you’d have to install zip first if you don’t already have it, 'sudo apt-get install zip'):

                      $ cd ~/MagicMirror
                      $ zip -9 -r modules.zip modules
                      

                      Then you can post that 'modules.zip' file somewhere.

                      OR, alternatively, you can push your code up to a Github repository so others can download them selectively instead of grabbing the entire modules folder. It’s also easier to maintain your code that way.

                      A Life? Cool! Where can I download one of those from?

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

                        @KirAsh4 Thanks for the tips, I learn something new every day!

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

                          @adamsidelsky 0_1467292849443_MagicMirror.png

                          1 Reply Last reply Reply Quote 0
                          • A Offline
                            adamsidelsky
                            last edited by

                            Sanchin,

                            Looks great! I’d love a copy of the code please and thank you.

                            Regards,

                            -Adam

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

                              @adamsidelsky Thanks Adam, glad you like it. I’ll see if I can follow KirAsh’s directions can get something up on Github. I do need to strip my API key’s from the config files so you can plug in your own, otherwise you will be seeing my info :-)

                              I’ll post a link later today when I get a chance to pull it all together.

                              • Sachin
                              A 1 Reply Last reply Reply Quote 0
                              • A Offline
                                amanzimdwini @Sachin
                                last edited by

                                @Sachin
                                I’d be interested in your config too - specifically making the compliments a different color / font size. Probably not that difficult, but I always find it easiest to “program by cannibalizing” :) What good is an idea if nobody steals it? Anyway, if you would post at clean-ed up version of your config, I’d appreciate it…

                                Looks great!

                                Wilco89W 1 Reply Last reply Reply Quote 0
                                • Wilco89W Offline
                                  Wilco89 @amanzimdwini
                                  last edited by

                                  @amanzimdwini i think you also need the custom CSS

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

                                    Thanks everyone. Per KirAsh4’s suggestion. I’m going to upload a sanitized copy on Github. I’d still encourage everyone to read through the install docs so you know where/how to tweak it to your liking. I’ll try to get to it this weekend.

                                    Have a great 4th!

                                    1 Reply Last reply Reply Quote 0
                                    • KirAsh4K Offline
                                      KirAsh4 Moderator
                                      last edited by

                                      Changing any of the module’s color settings is done in the '~/MagicMirror/css/custom.css' file. This is assuming the author of the module wrapped the various elements in tags that you can refer to, which all of the default modules are. You can look at the 'main.css' file to get an idea of what the various tags are that you can use. I do not recommend changing anything in 'main.css', but rather override them in 'custom.css' instead.

                                      Alternatively you can also look at the raw HTML generated through your browser’s console (just pulling up the page’s source won’t show the full HTML generated.)

                                      A Life? Cool! Where can I download one of those from?

                                      A 2 Replies Last reply Reply Quote 0
                                      • A Offline
                                        amanzimdwini @KirAsh4
                                        last edited by

                                        @KirAsh4
                                        THX. Will spend some happy time fiddling with all the stuff. “Wasted” 2 days on getting MM2 up on a brand-new Pi3, but the ‘wife-acceptance-factor’ is already awfully high :) Now I have to just customize it to the n-th degree…

                                        1 Reply Last reply Reply Quote 0
                                        • KirAsh4K Offline
                                          KirAsh4 Moderator
                                          last edited by

                                          Nothing’s ever “wasted”. You learned a lot during that time … educational enrichment. :)

                                          A Life? Cool! Where can I download one of those from?

                                          1 Reply Last reply Reply Quote 0
                                          • A Offline
                                            amanzimdwini @KirAsh4
                                            last edited by

                                            @KirAsh4
                                            Now I have question that is probably painfully obvious to anyone but me (I’m an old physicist and drive around in SQL all day long – don’t ask; I have no idea about hardcoding CSS.)

                                            IF I want to change the font of, say, the compliments,
                                            THEN I poke around and see that part of compliments.js

                                                var compliment = document.createTextNode(complimentText);
                                                var wrapper = document.createElement("div");
                                                wrapper.className = "thin xlarge bright";
                                            

                                            Cool: I could redefine, say, xlarge in my custom.css. But that seems a silly hack, and I’d mess up everything else that also uses xlarge. Not good. Much better to change the color of compliments only. How do I do that? Say I want

                                            compliments
                                            .color: #3CF
                                            .font-size: 80px
                                            .line-height: 80px
                                            .font.family: "Ariel"
                                            

                                            I suspect that this is very obvious how to change my custom.css, but you guys all seem helpful :)
                                            Hey: I already figured out how to push things around on the screen to where I want them to be. Next, I have to stretch everything, since the fonts seem a bit compressed. Lots of fun. Ultimately I’ll write my own modules, I hope.

                                            Thanks in advance!

                                            Wilco89W 2 Replies 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
                                            • 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