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 5.3k 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 @surger13
      last edited by

      @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

        @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 Reply Quote 0
        • S Offline
          sdetweil @rts58
          last edited by

          @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 Reply Quote 0
          • S Offline
            surger13 Project Sponsor @sdetweil
            last edited by

            @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 Reply Quote 0
            • S Offline
              sdetweil @surger13
              last edited by

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