Read the statement by Michael Teeuw here.
how to start an image slide show with a press of a button?
-
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", }, }, ] } },