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 start an image slide show with a press of a button?

    Scheduled Pinned Locked Moved Troubleshooting
    10 Posts 2 Posters 3.4k Views 1 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.
    • cruunnerrC Offline
      cruunnerr
      last edited by

      hmm…

      To start it hidden just open your remoteControl with http://YOUR.RASPBERRY.IP.ADDRESS:8080/remote.html
      Go to “Edit view” and hide the module. Then press “SAVE”
      Note: Every time you change your config u need to do this again ;)

      so now to your button problem…

      please try this:

      open a browser on your pc and type:

      http://YOUR.RASPBERRY.IP.ADDRESS:8080/remote?action=HIDE&module=module_0_ImageSlideshow

      http://YOUR.RASPBERRY.IP.ADDRESS:8080/remote?action=SHOW&module=module_0_ImageSlideshow

      This should hide and show the module as these are the comments which the remote control is using.

      If this works its probably a configuration problem with the PIN.

      note that:

      +-----+-----+---------+------+---+---Pi 3---+---+------+---------+-----+-----+
       | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |
       +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
       |     |     |    3.3v |      |   |  1 || 2  |   |      | 5v      |     |     |
       |   2 |   8 |   SDA.1 |   IN | 1 |  3 || 4  |   |      | 5v      |     |     |
       |   3 |   9 |   SCL.1 |   IN | 1 |  5 || 6  |   |      | 0v      |     |     |
       |   4 |   7 | GPIO. 7 |   IN | 1 |  7 || 8  | 0 | IN   | TxD     | 15  | 14  |
       |     |     |      0v |      |   |  9 || 10 | 1 | IN   | RxD     | 16  | 15  |
       |  17 |   0 | GPIO. 0 |  OUT | 0 | 11 || 12 | 0 | IN   | GPIO. 1 | 1   | 18  |
       |  27 |   2 | GPIO. 2 |   IN | 0 | 13 || 14 |   |      | 0v      |     |     |
       |  22 |   3 | GPIO. 3 |  OUT | 0 | 15 || 16 | 0 | IN   | GPIO. 4 | 4   | 23  |
       |     |     |    3.3v |      |   | 17 || 18 | 0 | OUT  | GPIO. 5 | 5   | 24  |
       |  10 |  12 |    MOSI |   IN | 0 | 19 || 20 |   |      | 0v      |     |     |
       |   9 |  13 |    MISO |   IN | 0 | 21 || 22 | 0 | IN   | GPIO. 6 | 6   | 25  |
       |  11 |  14 |    SCLK |   IN | 0 | 23 || 24 | 1 | IN   | CE0     | 10  | 8   |
       |     |     |      0v |      |   | 25 || 26 | 1 | IN   | CE1     | 11  | 7   |
       |   0 |  30 |   SDA.0 |   IN | 1 | 27 || 28 | 1 | IN   | SCL.0   | 31  | 1   |
       |   5 |  21 | GPIO.21 |   IN | 1 | 29 || 30 |   |      | 0v      |     |     |
       |   6 |  22 | GPIO.22 |   IN | 1 | 31 || 32 | 0 | IN   | GPIO.26 | 26  | 12  |
       |  13 |  23 | GPIO.23 |   IN | 0 | 33 || 34 |   |      | 0v      |     |     |
       |  19 |  24 | GPIO.24 |   IN | 0 | 35 || 36 | 1 | OUT  | GPIO.27 | 27  | 16  |
       |  26 |  25 | GPIO.25 |   IN | 0 | 37 || 38 | 0 | IN   | GPIO.28 | 28  | 20  |
       |     |     |      0v |      |   | 39 || 40 | 0 | IN   | GPIO.29 | 29  | 21  |
       +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
       | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |
       +-----+-----+---------+------+---+---Pi 3---+---+------+---------+-----+-----+
      

      Don’t know what type u are using (BCM, w-pi, physical ??)

      In your config you wrote Pin: 18, but in your first post u said 15…

      Maybe try another one. For example u could use GPIO 29, which is physically Pin 40, which is BCM Pin 21…

      So in your config u must write, that u are using Pin 21!

      1 Reply Last reply Reply Quote 2
      • X Offline
        xela
        last edited by

        thank you so much for your help!

        so, by going to the http://YOUR.RASPBERRY.IP.ADDRESS:8080/remote.html and hiding the module, it works fine. under “edit view” when i slide it to hide the slideshow goes off and when i’m sliding it to on the slideshow goes on.

        however, both
        http://YOUR.RASPBERRY.IP.ADDRESS:8080/remote?action=HIDE&module=module_0_ImageSlideshow

        http://YOUR.RASPBERRY.IP.ADDRESS:8080/remote?action=SHOW&module=module_0_ImageSlideshow
        don’t work although I’m getting “success” message.

        cruunnerrC 1 Reply Last reply Reply Quote 0
        • cruunnerrC Offline
          cruunnerr @xela
          last edited by

          @xela

          Ah sorry… the MMM was missing. should be this:

          http://your.raspberry.ip.address:8080/remote?action=HIDE&module=module_0_MMM-ImageSlideshow

          And

          http://your.raspberry.ip.address:8080/remote?action=SHOW&module=module_0_MMM-ImageSlideshow

          1 Reply Last reply Reply Quote 2
          • X Offline
            xela
            last edited by

            works perfectly, thank you so much for your help!

            and now to the ultimate question for me… Is it possible to start the camera on full screen by a press of a button?

            1 Reply Last reply Reply Quote 0
            • cruunnerrC Offline
              cruunnerr
              last edited by

              surely, but i don’t know what camera u mean^^

              A security camera somewhere at your house or the RPi camera?

              For security u could check this: https://github.com/shbatm/MMM-RTSPStream

              for RPi cam u could check this: https://forum.magicmirror.builders/topic/603/camera-module

              1 Reply Last reply Reply Quote 0
              • X Offline
                xela
                last edited by

                I use a Microsoft round web cam that I’ve embedded into the frame and I’m using the camera module however the voice recognition is not very good so I wanted to start it with a press of a button, but I don’t know how and how to display the video vertically on full screen.

                1 Reply Last reply Reply Quote 0
                • cruunnerrC Offline
                  cruunnerr
                  last edited by cruunnerr

                  So you use the camera module i posted?

                  unfortunately i don’t use this module, so i am maybe the wrong person to ask…

                  But i took a look at the webcam.js of the module and in line 46/47 the width and hight is defined.
                  Maybe u should play around with that…
                  https://github.com/alexyak/camera/blob/master/webcam.js

                  nano MagicMirror/modules/camera/webcam.js

                  also check the camera.js at line 62/63…

                  nano MagicMirror/modules/camera/camera.js

                  I don’t know if it would be necessary to set the resolution of the cam within raspbian… ?

                  To start the cam with a button u can even use the MMM-Buttons module. This should work, if i understand the camera-module correct ^^

                  {
                  		    module: 'MMM-Buttons',
                  		    config: {
                  			maxShortPressTime: 1000,
                  		        buttons: [
                  		            {
                  		                pin: 15,
                  		                name: "camera",
                  		                shortPress: {
                  		                    notification: "SHOW_CAMERA",
                                                           }
                  		             },
                                                  longPress: {
                                                  notification: "HIDE_CAMERA",
                                                           },
                  		             },
                  		         ]
                  		     }
                  		},
                  
                  1 Reply Last reply Reply Quote 1
                  • 1 / 1
                  • 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