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-RandomBackground, Background from local folder

    Scheduled Pinned Locked Moved Entertainment
    28 Posts 15 Posters 26.6k Views 18 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.
    • U Offline
      Ultimatum22 Module Developer
      last edited by broberg

      As request by some, first version of showing random full size background from a local folder.

      [card:Ultimatum22/MMM-RandomBackground]

      It will load a photo’s from a photo directory in ~/MagicMirror/modules/MMM-RandomBackground, easiest way is by creating a Windows share. If somebody needs help with that let me know.

      This still has a lot of improvements, I will update the readme with future implementations and a list of issues. If you see any please let me know.

      W N 2 Replies Last reply Reply Quote 2
      • W Offline
        Woody @Ultimatum22
        last edited by

        @Ultimatum22
        many thanks for your efforts. I was looking and waiting for a module like this. I tried it and it works nearly as expected, whenever I would prefer the possibility to load the images from an external source. Maybe in the future you are able to implement this.

        1 Reply Last reply Reply Quote 0
        • U Offline
          Ultimatum22 Module Developer
          last edited by

          Your welcome, good to hear it was what you are looking for. What do you mean with external source, like an usb stick? That isn’t that hard to implement. I am working on supporting multiple folders to read photo’s from, support for external source is then also done.

          W 1 Reply Last reply Reply Quote 0
          • W Offline
            Woody @Ultimatum22
            last edited by

            @Ultimatum22
            No, not a USB storage. I mean a NAS, a cloud resourse, any SMB share.

            foxF 1 Reply Last reply Reply Quote 0
            • J Offline
              jfodor
              last edited by

              i can only get this to work in the full screen locations. can this be placed in any other locations?

              i would also second the network share for the photo location.

              as a note to others you have to create a folder in ~/MagicMirror/modules/MMM-RandomBackground called photos and place your photo’s in there.

              1 Reply Last reply Reply Quote 0
              • D Offline
                docmucki
                last edited by

                Hi, i have some warnings when I try to install this module. Can someone give me a hint what to do?

                thx,
                docmucki

                pi@raspberrypi:~/MagicMirror/modules $ git clone https://github.com/Ultimatum22/MMM-RandomBackground.git
                Klone nach 'MMM-RandomBackground'...
                remote: Counting objects: 81, done.
                remote: Total 81 (delta 0), reused 0 (delta 0), pack-reused 81
                Entpacke Objekte: 100% (81/81), Fertig.
                Prüfe Konnektivität... Fertig.
                pi@raspberrypi:~/MagicMirror/modules $ npm install
                npm WARN enoent ENOENT: no such file or directory, open '/home/pi/MagicMirror/modules/package.json'
                npm WARN enoent ENOENT: no such file or directory, open '/home/pi/MagicMirror/modules/node_modules/node_helper/package.json'
                npm WARN modules No description
                npm WARN modules No repository field.
                npm WARN modules No README data
                npm WARN modules No license field.
                
                in_a_daysI 1 Reply Last reply Reply Quote 0
                • in_a_daysI Offline
                  in_a_days @docmucki
                  last edited by in_a_days

                  @docmucki

                  I suspect you need to execute

                  npm install
                  

                  From ~/MagicMirror/modules/MMM-RandomBackground rather than ~/MagicMirror/modules.

                  Try:

                  cd MMM-RandomBackground
                  npm install
                  

                  What ship would bear me ever back across so wide a Sea?

                  D 1 Reply Last reply Reply Quote 2
                  • D Offline
                    docmucki @in_a_days
                    last edited by

                    @in_a_days
                    Thank you. That was the case.

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      docmucki
                      last edited by

                      Changing the updateInterval seems to have no effect. Always feels like 3 seconds.

                      U 1 Reply Last reply Reply Quote 0
                      • J Offline
                        jfodor
                        last edited by

                        it uses milliseconds. mine is set at 900000 which is 15 minutes.

                        1 Reply Last reply Reply Quote 0
                        • L Offline
                          lignumaqua
                          last edited by

                          This works, but the background image is only in the top half of the screen (running portrait). Is there a way to make it fill the entire screen?

                          1 Reply Last reply Reply Quote 0
                          • U Offline
                            Ultimatum22 Module Developer @docmucki
                            last edited by

                            @docmucki What is the value you use, because it is indeed in miliseconds as jfodor said.

                            @lignumaqua Can you post your configuration for my module? It should work full screen if you look at the default ‘fullscreen_below’.

                            1 Reply Last reply Reply Quote 0
                            • L Offline
                              lignumaqua
                              last edited by

                              This post is deleted!
                              1 Reply Last reply Reply Quote 0
                              • L Offline
                                lignumaqua
                                last edited by

                                Oops! My apologies, I was getting this module confused with another. Mea culpa!

                                1 Reply Last reply Reply Quote 0
                                • foxF Offline
                                  fox @Woody
                                  last edited by

                                  @Woody said in Random background from local folder:

                                  @Ultimatum22
                                  No, not a USB storage. I mean a NAS, a cloud resourse, any SMB share.

                                  Thank you for the module. Is it possible to make this working with a NAS ? And is it also possible e.g. on top_right instead of background?

                                  Issues With MMM-WatchDog known?

                                  https://forum.magicmirror.builders/post/29827

                                  Useful for PIR-Sensor: https://forum.magicmirror.builders/post/21299

                                  1 Reply Last reply Reply Quote 0
                                  • N Offline
                                    nobita @Ultimatum22
                                    last edited by

                                    @Ultimatum22 you can change from local folder to Dropbox (Share Photo) and can adjust time to display from dropbox

                                    yawnsY 1 Reply Last reply Reply Quote 0
                                    • yawnsY Offline
                                      yawns Moderator @nobita
                                      last edited by

                                      @nobita said in Random background from local folder:

                                      @Ultimatum22 you can change from local folder to Dropbox (Share Photo) and can adjust time to display from dropbox

                                      Couldn’t you just synchronize your dropbox client into the specific folder and use the module as is?

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

                                        @yawns Is there any way to implement Dropbox in RPI? I’ve found only one solution Exagear, but it is not free.

                                        U 1 Reply Last reply Reply Quote 0
                                        • U Offline
                                          Ultimatum22 Module Developer @Guest
                                          last edited by

                                          @Sean There is a dropbox client for debian, if you use raspbian on your RPI this should work. I haven’t tested it but if you can get it to synchronize you can link to it from my module like yawns said.

                                          @nobita I don’t want to store my photo’s on dropbox so I don’t have the need implement this option but my above solution should work.

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

                                            @Ultimatum22 said in Random background from local folder:

                                            @Sean There is a dropbox client for debian, if you use raspbian on your RPI this should work. I haven’t tested it but if you can get it to synchronize you can link to it from my module like yawns said.

                                            That client is for normal Intel/AMD devices. As I know, there is no official Dropbox client for ARM architectures. So people cannot install Dropbox on RPi. (maybe I could be wrong…)
                                            Currently, the only available solution is using Exagear(https://eltechs.com/product/exagear-desktop/).

                                            Anyway, There might be some PROs and CONs about using Dropbox or cloud storage for private photos. I bet considering external network storage is not non-sense.

                                            • RPI has the limited volume of storage. Some people have tons of images to show. And they might not want to worry about sync between original photos in archives and those in RPI.
                                            • Some people are not familiar with FTP or SFTP or anything. (e.g. my wife). She just wants to throw her new photos into some folder simply. (Well, there might be another options like netatalk, smb,… but my wife has HER OPINIONS.)
                                            • Google Photo and iCloud Photos are awesome services, but unfortunately, they don’t support external API. That is why people want to use simple and free ‘dropbox’ alternately.
                                            U 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
                                            • 1 / 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