Read the statement by Michael Teeuw here.
how to start an image slide show with a press of a button?
-
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!
-
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_ImageSlideshowhttp://YOUR.RASPBERRY.IP.ADDRESS:8080/remote?action=SHOW&module=module_0_ImageSlideshow
don’t work although I’m getting “success” message. -
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
-
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?
-
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
-
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.
-
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.jsnano 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", }, }, ] } },