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.

    MMM-SimpleBGSlideshow (yet another background slideshow module)

    Scheduled Pinned Locked Moved Utilities
    28 Posts 5 Posters 10.8k Views 6 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
      sdetweil @MagicInMe
      last edited by sdetweil

      @magicinme do npm install --save in your module folder for those dependencies.

      then let npm install for your module figure out where to resolve them

      u might depend on the mm expess server INSTANCE but not the code to talk to that instance

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      M 1 Reply Last reply Reply Quote 0
      • M Offline
        MagicInMe @sdetweil
        last edited by

        @sdetweil what’s the purpose of installing core node features as a module? Looking at npm path it says "This is an exact copy of the NodeJS ’path’ module published to the NPM registry. "

        Good point on express, I had thought I was just calling the express object but I do use express.static

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @MagicInMe
          last edited by

          @magicinme you may not ‘install’ it, as npm will resolve , but you document that you USE it, SO, if things change, you stuff still works…

          I don’t know where stuff is packaged, and don’t want to know

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            MagicInMe @sdetweil
            last edited by

            @sdetweil perhaps this is why https://www.npmjs.com/package/fs gets a million downloads a week even though it does nothing. I believe including core modules in package.json presents an unnecessary security risk (i.e., npm path is controlled by an individual). Unless there’s a way to include a package in package.json as a comment?

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @MagicInMe
              last edited by sdetweil

              @magicinme no comments in json.

              whatever… I have given everything I know and my advice on helping insure users don’t encounter problems.

              the high download counts are from build systems recreating the env from scratch…

              not users

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • R Offline
                robertybob
                last edited by

                Does this module stretch images to fit the mirror? The original module had two different options for this, if I recall correctly

                M 1 Reply Last reply Reply Quote 0
                • M Offline
                  MagicInMe @robertybob
                  last edited by

                  @robertybob I currently have it so that it uses the css “cover” attribute which stretches to fill. Is that what you want?

                  1 Reply Last reply Reply Quote 0
                  • R Offline
                    rs
                    last edited by

                    Hi MagicInMe,

                    Thank you for sharing your work!

                    I’ve installed MMM-SimpleBGSlideshow but for some reason the background stays black, I double-checked the images in the correct folder and i use the full path in the config as well:

                    {
                    			module: 'MMM-SimpleBGSlideshow',
                    			position: 'fullscreen_below',
                    			config: {
                    				imagePaths: ['/home/pi/MagicMirror/modules/MMM-SimpleBGSlideshow/images'],
                    				slideshowSpeed: 15000,
                    				randomizeImageOrder: false,
                    			}
                    		},
                    

                    alt text

                    but… no joy…

                    I clearly missing something basic here :)

                    I appreciate any thought!
                    Best,
                    Ram

                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @rs
                      last edited by sdetweil

                      @rs said in MMM-SimpleBGSlideshow (yet another background slideshow module):

                      MMM-SimpleBGSlideshow

                      the code says

                      imagePaths: [], // resolves relative to MM root. So ‘images’ => ~/MagicMirror/images

                      so, you cannot use the full absolute path

                      the folder MUST be in the MM folder tree…
                      like this, in your case

                      modules/MMM-SimpleBGSlideshow/images'
                      

                      you could use a linked folder to access outside the MM folder tree
                      (I do this for my server shared images path for the MMM-ImagesPhotos module)

                      see the ln command

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • R Offline
                        rs
                        last edited by

                        @sdetweil, many thanks for pointing me to the right direction, the working path was:

                        modules/MMM-SimpleBGSlideshow/images/
                        

                        Thanks again!
                        Cheers,
                        RS

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 1 / 3
                        • 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