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

How to change the path of a picture in magicmirror , using MMM-imageSlideshow

Scheduled Pinned Locked Moved Solved Troubleshooting
17 Posts 2 Posters 4.2k Views 2 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 Away
    sdetweil
    last edited by Apr 26, 2019, 2:35 PM

    and another test, open a browser on mm, then use the full file url to the new image file

    file:///home/pi/MagicMirror/modules/MMM-ImageSlideshow/…

    and see if the pic opens

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    E 1 Reply Last reply Apr 26, 2019, 3:45 PM Reply Quote 0
    • E Offline
      emrhssla @sdetweil
      last edited by Apr 26, 2019, 3:40 PM

      @sdetweil
      Clicking makes the capture and overwrite the file successful in the process where the magic mirror is run. But it doesn’t appear on the screen.
      When the magic mirror is turned off and restarted, a new image will appear successfully.

      I think the code is working properly, but the MMM-imageSlideshow module is not being renewed.

      1 Reply Last reply Reply Quote 0
      • E Offline
        emrhssla @sdetweil
        last edited by Apr 26, 2019, 3:45 PM

        @sdetweil
        Are you saying to run chrome and put fil://~ in url?
        :) ?

        S 1 Reply Last reply Apr 26, 2019, 4:30 PM Reply Quote 0
        • S Away
          sdetweil @emrhssla
          last edited by Apr 26, 2019, 4:30 PM

          @emrhssla yes, just adding another way to verify that the file was changed… u reported it is ok…

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          E 1 Reply Last reply Apr 30, 2019, 6:06 AM Reply Quote 0
          • E Offline
            emrhssla @sdetweil
            last edited by Apr 30, 2019, 6:06 AM

            @sdetweil When I click Refresh in Chrome, a picture that has been successfully changed appears.

            Is there any way to restart a specific module?

            S 1 Reply Last reply Apr 30, 2019, 12:00 PM Reply Quote 0
            • S Away
              sdetweil @emrhssla
              last edited by sdetweil Apr 30, 2019, 2:04 PM Apr 30, 2019, 12:00 PM

              @emrhssla i think this is a caching problem… the ‘file’ was already loaded…

              see this discussion about adding a string to the end of the image filename to make it ‘unique’
              thus not reading from cache

              https://stackoverflow.com/questions/728616/disable-cache-for-some-images

              however, this will add a new image to be cached… eventually growing maybe beyond memory limits…
              another way is to disable caching in electron

              in MagicMirror/js/electron.js
              add this line

              function createWindow() {
                  app.commandLine.appendSwitch('--disable-http-cache');  //< -------- added
              	var electronOptionsDefaults = {
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              E 1 Reply Last reply Apr 30, 2019, 1:22 PM Reply Quote 0
              • E Offline
                emrhssla @sdetweil
                last edited by Apr 30, 2019, 1:22 PM

                @sdetweil thank U!!

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