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

module for mm background

Scheduled Pinned Locked Moved Unsolved Requests
15 Posts 6 Posters 4.9k 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
    surger13 Project Sponsor @rts58
    last edited by Feb 2, 2019, 6:06 AM

    @rts58 I’m interested. I would like to do it the same way, but it only works with the sample images of the module.
    What path did you specify in config.js to access your NAS?

    Thank you

    @rts58 said in module for mm background:

    I’ve been using MMM-BackgroundSlideshow, it allows me to randomly display an image from 1000’s stored in a many level folder structure on my NAS.

    S 1 Reply Last reply Feb 2, 2019, 1:58 PM Reply Quote 0
    • S Offline
      sdetweil @surger13
      last edited by Feb 2, 2019, 1:58 PM

      @surger13 said in module for mm background:

      What path did you specify in config.js to access your NAS?

      you need to use the ln command to make a soft link from the module folder to the NAS folder…

      ln -s source_path destination_path

      I did this using a folder name foo inside the /MMM-BackgroundSlideshow/exampleImages folder

      drwxrwxr-x 3 odroid odroid    4096 Feb  1 11:42 ./
      drwxrwxr-x 5 odroid odroid    4096 Feb  1 11:40 ../
      -rw-rw-r-- 1 odroid odroid  266282 Feb  1 11:40 245709.jpg
      -rw-rw-r-- 1 odroid odroid 1228351 Feb  1 11:40 245718.jpg
      -rw-rw-r-- 1 odroid odroid  966314 Feb  1 11:40 245742.jpg
      lrwxrwxrwx 1 odroid odroid      42 Feb  1 11:42 foo -> /mnt/buildserver/media/Photos/selectedpics/
      drwxrwxr-x 2 odroid odroid    4096 Feb  1 11:40 subfolder/
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • R Offline
        rts58
        last edited by Feb 2, 2019, 4:14 PM

        @surger13, I did it similar in way as @sdetweil but with extra steps:frowning_face: . I set up a new directory hpmv in the module folder with a symbolic link to the mounted directory in my case ~/Pictures/hpmv. Which required changing the imagePaths setting in config. I had challenges with getting the link to automount after rebooting. I finally got it to work without errors with this entry in /etc/fstab:
        //my.Nas.Ip.Addr/Photos /home/pi/Pictures/hpmv cifs guest,x-systemd.automount,vers=1.0 0 0 and by also using raspi-config setting to wait for network on boot.
        ​

        S 1 Reply Last reply Feb 2, 2019, 5:08 PM Reply Quote 0
        • S Offline
          sdetweil @rts58
          last edited by Feb 2, 2019, 5:08 PM

          @rts58 i had to change the imagePaths setting too…

          and automount is a pain… but needed…

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          S 1 Reply Last reply Feb 3, 2019, 7:42 AM Reply Quote 0
          • S Offline
            surger13 Project Sponsor @sdetweil
            last edited by Feb 3, 2019, 7:42 AM

            @sdetweil
            @rts58

            Thank you both. I have now temporarily mounted the nas and it works. A softlink only works on a mounted drive. That was the important hint for a beginner like me. I have to try the entry in the fstab next.

            Somewhat nasty is that the module also displays images from hidden folders. At least I get some pictures in low resolution.

            S 1 Reply Last reply Feb 3, 2019, 12:55 PM Reply Quote 0
            • S Offline
              sdetweil @surger13
              last edited by Feb 3, 2019, 12:55 PM

              @surger13 yes, sorry, didn’t mention mount was required to get access first before the link…

              hidden folders. that is a a surprise!

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • 1
              • 2
              • 2 / 2
              2 / 2
              • First post
                14/15
                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