Read the statement by Michael Teeuw here.
Want to show full-screen images and switch to MM on keypress
-
I am setting up a MagicMirror and so far I’m just mad that I haven’t done it sooner.
I’d like to get some advice on how to accomplish what I want to do. Mostly, I want the screen to show a slideshow of images but if someone presses a key on an attached keyboard, it would switch to the MagicMirror. I plan to use one of the cheap 3-button macro keyboards for this.
Is this even possible? I’m wondering if a screen saver would work but I suspect that MM disables screen savers (if they’re even available for the RPi).
I would love to hear any suggestions, even just pointers to what I should be looking for.
Thanks!
-
@UncleRoger sure it’s possible.
position:“fullscreen_above”
will put pictures on top of everything
then to need to add support for handling the key press, note that the image module will have to be the handler of that as it’s ABOVE anything else -
@sdetweil Thanks again! That gives me what I need to move further.
It looks like I need a module to display the images (I know I’ve seen some modules that do that) and one to handle the keypress that can send a notification to the image module (and the image module needs to be able to process the notification.)
Or, I’ve seen modules that (I think) can change the layout dynamically, perhaps that could work too.
Thanks!
-
@UncleRoger said in Want to show full-screen images and switch to MM on keypress:
and one to handle the keypress
well, the ‘problem’ is that the browser will direct the keystroke to the topmost element with the handler… that will be the image module…
SO, the IMAGE module will have to handle the keystroke, as it is ON TOP of all the others…
and generally mm doesn’t have any keystroke handling code, as its design is as an output info panel .
(and u will have to enable keystroke and mouse in the css, disabled by default) -
Oh dear. Looks like I’ve got my work cut out for me. 8^) I think I’ll see if I can dig up another RPi to use for testing so I don’t muck up the “production” one. 8^)
Thanks for your help!
-
I built a screensaver module that leverages a google photo module. That module passes a photo to the screensaver and causes it to bounce around a darkened screen. When activated, it’s the top most module and it switches back to hidden when a key is pressed.
-
There is a module that works with pages. You can have one page fullscreen the picture and on the other the information.
But I did not try that out.