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.

    Add a background image

    Scheduled Pinned Locked Moved Solved Development
    18 Posts 9 Posters 33.4k Views 13 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.
    • AnachorA Offline
      Anachor
      last edited by Anachor

      Hello!

      i wanna add a background picture instead of the black background color but no command works in the custom css. I made a folder call images, add the command to the css (backgroud-image: url (…images/image.jpg)) but the screen become white and no picture…

      Any solution ?

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

        body {
            background-image: url("paper.gif");
            background-color: #cccccc;
        }
        

        like this?

        (how do I post it as code?)

        paviroP I 2 Replies Last reply Reply Quote 0
        • AnachorA Offline
          Anachor
          last edited by

          Works perfect! Thank you so much! Is it possible to add a video as background later or a webcam ?

          1 Reply Last reply Reply Quote 0
          • paviroP Offline
            paviro @Wilco89
            last edited by

            @Wilco89 Check out https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#code! :)

            We're all stories in the end. Just make it a good one, eh?

            – The Doctor

            1 Reply Last reply Reply Quote 0
            • AnachorA Offline
              Anachor
              last edited by

              Thanks for everything! :blush:

              1 Reply Last reply Reply Quote 0
              • O Offline
                ostfilinchen
                last edited by

                Hi all,

                i’ve made an Folder in /home/pi/MagicMirror calld Images and copy in this a file logo.jpeg.

                Next i changed the custom.css like this:
                body {
                background-Image: url(“/Images/logo.jpeg”);
                background-Color: #cccccc;
                }

                But nothing happens. No Error and no Backgroundimage. What’s wrong in the custom.css? Pls help me

                Regards
                Daniel

                strawberry 3.141S 1 Reply Last reply Reply Quote 0
                • strawberry 3.141S Offline
                  strawberry 3.141 Project Sponsor Module Developer @ostfilinchen
                  last edited by

                  @ostfilinchen background-Image: url("../Images/logo.jpeg");

                  Please create a github issue if you need help, so I can keep track

                  1 Reply Last reply Reply Quote 0
                  • O Offline
                    ostfilinchen
                    last edited by

                    @strawberry-3-141: that also doesn’t work :-(

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

                      @ostfilinchen Try this one: background-Image: url("Images/logo.jpeg");

                      Double-check your capitalization on your path and your file name. That’s burned me more than a couple of times.

                      1 Reply Last reply Reply Quote 0
                      • O Offline
                        ostfilinchen
                        last edited by

                        i have moved the jpeg from Images to css. now it works. The Mirror doesn’t have access to the Folder Images…

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

                          @Anachor Did you ever find out how to add a webcam as the background?

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

                            @ostfilinchen Hi there,
                            I also wanted to add background images to my MM and came across your post. Although it is not very recent, I think it might be a good idea to add the following information:

                            if you want to have additional folders to be available within the Mirror, you need to specify those in the /js/server.js just after the other app.use commands, e.g. :

                            app.use("/Images",express.static(path.resolve(__dirname + "/../Images")));

                            1 Reply Last reply Reply Quote 1
                            • J Offline
                              jaymichael78
                              last edited by

                              Is there a way to have multiple background-images to slideshow? I have lots of html/jquery/css workarounds but wanted to see if anyone had a good magic mirror hack?

                              1 Reply Last reply Reply Quote 0
                              • I Offline
                                I_Am_Anthony @Wilco89
                                last edited by

                                @Wilco89 I know this thread is old, but maybe you can help. Do you know how to change the background picture based on time of day? I have seen modules that update by a random interval, but looking for specific time.

                                I’m making a MM for a friend. I’m going to have a background image on it, but I want it to change to the scary girl from The Ring late at night. Should be a nice surprise for him…

                                Thanks.

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

                                  @I_Am_Anthony Off the top of my head, use the scheduling module and the background image module in conjunction. There’s no reason you can’t put the background module in twice and swap 'em out at a particular time.

                                  1 Reply Last reply Reply Quote 0
                                  • ? Offline
                                    A Former User
                                    last edited by A Former User

                                    in custom.css add from main.css

                                    .region.fullscreen {
                                      position: absolute;
                                      top: -60px;
                                      left: -60px;
                                      right: -60px;
                                      bottom: -60px;
                                      pointer-events: none;
                                    }
                                    

                                    then add

                                    background: transparent url("background.jpg") no-repeat center;  */image must be in css folder*/
                                    background-size: cover;
                                    opacity: 0.5; */what ever opacity you want/*
                                    z-index: -1;
                                    

                                    so you have

                                    .region.fullscreen {
                                      position: absolute;
                                      top: -60px;
                                      left: -60px;
                                      right: -60px;
                                      bottom: -60px;
                                      pointer-events: none;
                                      background: transparent url("background.jpg") no-repeat center;
                                      background-size: cover;
                                      opacity: 0.5;
                                      z-index: -1;
                                    }
                                    
                                    brobergB 1 Reply Last reply Reply Quote 1
                                    • brobergB Offline
                                      broberg Project Sponsor @Guest
                                      last edited by

                                      @razvanh after 3 years, I think it has been solved already 😎

                                      1 Reply Last reply Reply Quote 0
                                      • ? Offline
                                        A Former User
                                        last edited by

                                        yes, right

                                        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