• 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.

Display the specified picture in the specified location

Scheduled Pinned Locked Moved Custom CSS
21 Posts 2 Posters 5.9k 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.
  • 史 Offline
    史新瑞 @sdetweil
    last edited by Jul 29, 2022, 1:48 PM

    @sdetweil Sorry I didn’t find line 247247.png

    S 1 Reply Last reply Jul 29, 2022, 1:49 PM Reply Quote 0
    • S Away
      sdetweil @史新瑞
      last edited by Jul 29, 2022, 1:49 PM

      @史新瑞 my version

      https://github.com/sdetweil/MMM-ImagesPhotos

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      史 1 Reply Last reply Jul 29, 2022, 1:55 PM Reply Quote 0
      • 史 Offline
        史新瑞 @sdetweil
        last edited by Jul 29, 2022, 1:55 PM

        @sdetweil Thank you. I have downloaded your module, but there is an error when I use it. Could you please help me check it? I’m very sorrybc.png

        史 S 2 Replies Last reply Jul 29, 2022, 1:58 PM Reply Quote 0
        • 史 Offline
          史新瑞 @史新瑞
          last edited by Jul 29, 2022, 1:58 PM

          @史新瑞 cx.png
          This is the config.js file

          1 Reply Last reply Reply Quote 0
          • S Away
            sdetweil @史新瑞
            last edited by Jul 29, 2022, 2:00 PM

            @史新瑞 error… you have to do

            npm install 
            

            in the module folder

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            史 1 Reply Last reply Jul 29, 2022, 2:01 PM Reply Quote 0
            • 史 Offline
              史新瑞 @sdetweil
              last edited by Jul 29, 2022, 2:01 PM

              @sdetweil Sorry, I forgot. I’ll try again

              S 1 Reply Last reply Jul 29, 2022, 10:31 PM Reply Quote 0
              • S Away
                sdetweil @史新瑞
                last edited by sdetweil Jul 29, 2022, 10:32 PM Jul 29, 2022, 10:31 PM

                @史新瑞 my code always uses the full screen
                m is the margin size

                var tw = document.body.clientWidth+(parseInt(m)*2);
                
                var th = document.body.clientHeight+(parseInt(m)*2)
                

                but one could get the module position( part of the config Info passed to module) and then get ITS size.
                see the window.getComputedStyle(), used on line 221.

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                史 2 Replies Last reply Jul 30, 2022, 3:57 AM Reply Quote 0
                • 史 Offline
                  史新瑞 @sdetweil
                  last edited by Jul 30, 2022, 3:57 AM

                  @sdetweil I did the installation and configuration several times. But yesterday’s mistake has not been resolved

                  S 1 Reply Last reply Jul 30, 2022, 11:39 AM Reply Quote 0
                  • 史 Offline
                    史新瑞 @sdetweil
                    last edited by Jul 30, 2022, 6:30 AM

                    @sdetweil Thank you very much. I’ve got the problem

                    Thank you again

                    1 Reply Last reply Reply Quote 0
                    • S Away
                      sdetweil @史新瑞
                      last edited by Jul 30, 2022, 11:39 AM

                      @史新瑞 I do not understand

                      if you did the npm install in the newly cloned module folder then the request library would be added to the modules library list

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      史 1 Reply Last reply Jul 31, 2022, 8:41 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      2 / 3
                      • First post
                        14/21
                        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