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

MMM-RandomBackground, Background from local folder

Scheduled Pinned Locked Moved Entertainment
28 Posts 15 Posters 22.7k 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 Oct 5, 2019, 8:45 AM Dec 12, 2016, 9:19 PM

    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 Dec 19, 2016, 7:41 PM Reply Quote 2
    • W Offline
      Woody @Ultimatum22
      last edited by Dec 19, 2016, 7:41 PM

      @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 Dec 20, 2016, 9:10 AM

        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 Dec 21, 2016, 12:32 PM Reply Quote 0
        • W Offline
          Woody @Ultimatum22
          last edited by Dec 21, 2016, 12:32 PM

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

          F 1 Reply Last reply Apr 25, 2017, 7:45 PM Reply Quote 0
          • J Offline
            jfodor
            last edited by Jan 4, 2017, 7:43 AM

            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 Jan 26, 2017, 5:40 PM

              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.
              
              I 1 Reply Last reply Jan 26, 2017, 5:43 PM Reply Quote 0
              • I Offline
                in_a_days @docmucki
                last edited by in_a_days Jan 26, 2017, 5:44 PM Jan 26, 2017, 5:43 PM

                @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 Jan 26, 2017, 5:59 PM Reply Quote 2
                • D Offline
                  docmucki @in_a_days
                  last edited by Jan 26, 2017, 5:59 PM

                  @in_a_days
                  Thank you. That was the case.

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    docmucki
                    last edited by Jan 26, 2017, 7:53 PM

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

                    U 1 Reply Last reply Jan 30, 2017, 3:52 PM Reply Quote 0
                    • J Offline
                      jfodor
                      last edited by Jan 27, 2017, 5:29 PM

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

                      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