• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 6.1k 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 Away
    sdetweil
    last edited by Aug 11, 2021, 5:25 PM

    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 Away
      sdetweil
      last edited by Aug 11, 2021, 5:42 PM

      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
      • A Offline
        ankonaskiff17 @sdetweil
        last edited by Aug 11, 2021, 7:09 PM

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

        S 1 Reply Last reply Aug 11, 2021, 7:10 PM Reply Quote 0
        • S Away
          sdetweil @ankonaskiff17
          last edited by Aug 11, 2021, 7:10 PM

          @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

          A 1 Reply Last reply Aug 11, 2021, 9:19 PM Reply Quote 0
          • A Offline
            ankonaskiff17 @sdetweil
            last edited by ankonaskiff17 Aug 11, 2021, 9:37 PM Aug 11, 2021, 9:19 PM

            @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 Aug 11, 2021, 9:35 PM Reply Quote 0
            • S Away
              sdetweil @ankonaskiff17
              last edited by Aug 11, 2021, 9:35 PM

              @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

              A 1 Reply Last reply Aug 11, 2021, 9:38 PM Reply Quote 0
              • A Offline
                ankonaskiff17 @sdetweil
                last edited by Aug 11, 2021, 9:38 PM

                @sdetweil See my wordy edit above

                S 1 Reply Last reply Aug 11, 2021, 9:43 PM Reply Quote 0
                • S Away
                  sdetweil @ankonaskiff17
                  last edited by Aug 11, 2021, 9:43 PM

                  @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

                  A 1 Reply Last reply Aug 11, 2021, 9:48 PM Reply Quote 0
                  • A Offline
                    ankonaskiff17 @sdetweil
                    last edited by Aug 11, 2021, 9:48 PM

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

                    S 1 Reply Last reply Aug 11, 2021, 9:49 PM Reply Quote 0
                    • S Away
                      sdetweil @ankonaskiff17
                      last edited by sdetweil Aug 11, 2021, 9:49 PM Aug 11, 2021, 9:49 PM

                      @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

                      A 1 Reply Last reply Aug 11, 2021, 11:24 PM Reply Quote 1
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      2 / 3
                      • First post
                        19/27
                        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