• 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-ImagesPhotos - Show images from a directory

Scheduled Pinned Locked Moved Utilities
85 Posts 26 Posters 93.0k Views 26 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.
  • R Offline
    roramirez Core Contributors
    last edited by roramirez Mar 16, 2017, 1:54 AM Feb 5, 2017, 7:54 PM

    Description:

    I had the idea to checking process development of a module and I created one to show images from a directory.

    This module has a lot development stuff’s in files that I think should have a module. Is missing integration of test suite.

    If you have any request to add it please let a message here or add an issue in Github.

    Screenshot:

    alt text

    Download:

    [card:roramirez/MMM-ImagesPhotos]

    Version 0.1.1

    • Update and fix README documentation

    Version 0.1.0

    • Initial release

    Easy module development with MagicMirror Module Template

    J D 2 Replies Last reply Mar 5, 2017, 6:38 AM Reply Quote 5
    • B Offline
      balthaz
      last edited by Feb 6, 2017, 9:17 PM

      Hello,

      I search to display my webcam on my mirror.

      I think to use a script to upload jpg from webcam (http://192.168.0.160/tmpfs/auto.jpg) on the right directory.

      But just the 1st image is displayed, for testing i do :

      wget http://192.168.0.160/tmpfs/auto.jpg (see image on mirror)
      rm *.jpg
      wget http://192.168.0.160/tmpfs/auto.jpg (see the same image on mirror)

      I playing with updateInterval and getInterval, no success.

      Like there are a cache in app.

      Thanks in advance, and thanks for your work

      Olivier

      R 1 Reply Last reply Feb 6, 2017, 11:45 PM Reply Quote -1
      • R Offline
        roramirez Core Contributors @balthaz
        last edited by Feb 6, 2017, 11:45 PM

        @balthaz Yes is the cache of Electron app, because the name is same for image url.

        I create a little hack for this but I think this can be overhead the cache of app. Can you try and tell me?

        https://github.com/roramirez/MMM-ImagesPhotos/tree/test-force-cache (branch)
        https://github.com/roramirez/MMM-ImagesPhotos/commit/b8ead890b701ed6264a417c9c4f4a92b135f8816 (patch)

        Other way is create a new name and delete previous file in your script

        wget -O $(date +%s).jpg http://192.168.0.160/tmpfs/auto.jpg
        

        Easy module development with MagicMirror Module Template

        B 1 Reply Last reply Feb 7, 2017, 6:51 PM Reply Quote 0
        • C Offline
          cowboysdude Module Developer
          last edited by Feb 7, 2017, 1:16 AM

          Very nice!!!

          1 Reply Last reply Reply Quote 0
          • S Offline
            schlachtkreuzer6
            last edited by Feb 7, 2017, 3:29 PM

            super cool! :)

            1 Reply Last reply Reply Quote 0
            • B Offline
              balthaz
              last edited by Feb 7, 2017, 6:15 PM

              hello,

              I test force cache, it’s no working, my test:
              apply new git
              wget jpg display jpg
              rm jpg
              wget jpg display same jpg

              i test with rotate wget

              thanks

              1 Reply Last reply Reply Quote 0
              • B Offline
                balthaz @roramirez
                last edited by Feb 7, 2017, 6:51 PM

                @roramirez said in MMM-ImagesPhotos - Show images from a directory:

                wget -O $(date +%s).jpg http://192.168.0.160/tmpfs/auto.jpg

                with wget -O $(date +%s).jpg http://192.168.0.160/tmpfs/auto.jpg i have a random picture

                R 1 Reply Last reply Feb 7, 2017, 7:55 PM Reply Quote 0
                • R Offline
                  roramirez Core Contributors @balthaz
                  last edited by Feb 7, 2017, 7:55 PM

                  @balthaz For your need I think is better using
                  https://github.com/TheBogueRat/MMM-iFrameReload

                  Easy module development with MagicMirror Module Template

                  B 1 Reply Last reply Feb 11, 2017, 1:45 PM Reply Quote 0
                  • B Offline
                    balthaz @roramirez
                    last edited by Feb 11, 2017, 1:45 PM

                    @roramirez Thanks, exactly what a need !

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      Mire
                      last edited by Feb 26, 2017, 7:52 AM

                      From reading the readme, i couldn´t figure out where to place the directory MMM-ImagesPhotos searches for the pictures.

                      R 1 Reply Last reply Feb 26, 2017, 2:43 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 8
                      • 9
                      • 1 / 9
                      • 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