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.

    Trouble getting Background Image to Show

    Scheduled Pinned Locked Moved Custom CSS
    27 Posts 2 Posters 10.7k Views 2 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 Do not disturb
      sdetweil
      last edited by

      then I added a root entry to custom.css

      root: {
        background-color: black;
      }
      
      html {
      /*  cursor: none; */
      }
      
      body { 
        background-image: url("http://localhost:8090/modules/images/testimage.jpg")
      }
      

      and got
      Screenshot at 2021-08-11 12-18-23.jpg

      notice border around pic

      then turned it off in the dev window

      Screenshot at 2021-08-11 12-18-39.jpg

      border gone

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Do not disturb
        sdetweil
        last edited by

        same results with

        root: {
          --background-color: black;
        }
        
        html {
        /*  cursor: none; */
        }
        
        body { 
          background-image: url("http://localhost:8090/modules/images/testimage.jpg")
        }
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Do not disturb
          sdetweil
          last edited by

          using file:// does NOT work

          body { 
            background-image: url("file:///home/sam/MagicMirror/modules/images/testimage.jpg")
          }
          

          even tho it works in chrome

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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

            @sdetweil localhost is what shows in developer window? You show 8090 vs my 8080

            S 1 Reply Last reply Reply Quote 0
            • S Do not disturb
              sdetweil @ankonaskiff17
              last edited by

              @ankonaskiff17 localhost, cause I am on the same machine as MM is running

              and port 8090 cause I have another app using 8080 …

              Sam

              How to add modules

              learning how to use browser developers window for css changes

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

                @sdetweil I am getting a Not allowed to load local resource
                I thought the image might have not been quite right so copied it fresh and did renaming in terminal but really sure what is going on.

                I’m a dummy. I do think the image file was messed up as I was getting file not found errors before I reloaded & renamed file in terminal vs in the Pi version of file manager. Windows habits die hard.
                After I did that I started getting the local resource message. I had been doing this through VNC on my laptop but pulled big screen tv over where I could read it, deleted the localhost address from file that I did in VNC and redid the exact same address via Pi directly and its all good now.
                Shame on me but is there some rule of thumb about what you can and can’t do remotely. I have built 5 of these things with no issues using VNC until this background sreen issue. Even on this one, I’ve loaded multiple modules, jumbo sized fonts etc.

                S 1 Reply Last reply Reply Quote 0
                • S Do not disturb
                  sdetweil @ankonaskiff17
                  last edited by

                  @ankonaskiff17

                  where are u doing this? on pi, or remote(pc desktop)

                  what is the address: in config.js?

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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

                    @sdetweil See my wordy edit above

                    S 1 Reply Last reply Reply Quote 0
                    • S Do not disturb
                      sdetweil @ankonaskiff17
                      last edited by

                      @ankonaskiff17 address: and ipWhitelist are not in any of your posts above

                      i set address: my machine address 192.168.2.106
                      and it failed with a macthing URL

                      I still had ipWhitelist set as default, which prevented connect from other than localhost

                      changed to ipWhitelist:[]
                      and ip address url works and from a different machine…

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

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

                        @sdetweil So I need to put laptop IP in whitelist what I think I understand you to be saying

                        S 1 Reply Last reply Reply Quote 0
                        • S Do not disturb
                          sdetweil @ankonaskiff17
                          last edited by sdetweil

                          @ankonaskiff17 I always start with NO ipWhitelist… get it working then fix the filter

                          debug ONE thing at a time…

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          ankonaskiff17A 1 Reply Last reply Reply Quote 1
                          • ankonaskiff17A Offline
                            ankonaskiff17 @sdetweil
                            last edited by

                            @sdetweil Wasn’t in vain. Thanks for the help. Image pretty washed out in photo but have some opacity and gradient and looks better in person.

                            bigmm.jpg

                            S 1 Reply Last reply Reply Quote 2
                            • S Do not disturb
                              sdetweil @ankonaskiff17
                              last edited by sdetweil

                              @ankonaskiff17 Nice… I use an updated MMM-ImagesPhotos to show my photos from my server machine, images on an external 5tb drive.
                              https://github.com/sdetweil/MMM-ImagesPhotos

                              and I have a module that allows you to scan a QR from your phone and upload a pic to whatever storage area u want , then the image displayer can use it…

                              https://github.com/sdetweil/uploadPics

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

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

                                @sdetweil I have a ton of pictures from rocket launches to elk in Rockies. I somehow or another had found Dak Board and piddled with it but it was a subscription based system that MagicMirror puts to shame.

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