• 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.

Screen saver module that displays photos

Scheduled Pinned Locked Moved Development
4 Posts 3 Posters 392 Views 3 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.
  • C Offline
    cpcode
    last edited by Jan 8, 2025, 8:21 PM

    I have my mirror mostly done. Right now, the screen turns off after 10 minutes of inactivity (RPI default screensaver). I want to do something different - I’d like to create a module that does the following:

    • When the screen has been idle for a specified time, the display goes to a “photo frame” mode where everything is hidden except for a rotating image from local storage
    • When the screen is touched, things go back to the regular mirror contents (I have a touch screen)

    Additional nice-to-haves:

    • Some modules could remain visible: for example I might want my Clock module to stay up
    • When the screen is touched, I’d want to go back to a specific page
    • Between certain times of day (at night), the screen just goes blank or turns off

    I’m happy to develop this, and I’m looking for the simplest path forward - I would prefer not to reinvent the entire wheel.

    I looked around and found a number of modules that can display photos, I think that part is fine. I’m already using MMM-BackgroundSlideshow, in fact.
    I also found MMM-PIR, which seems to be able to a) do something after X minutes of inactivity, and b) do something else after the screen is touched.
    However, the code for MMM-PIR is fairly complicated for me and I’m not sure I can just borrow the pieces I want. Right now I would try to fork it and make some minimal changes to do what I want instead.

    Questions for the community: Are there other modules I should look at, with some of this functionality but maybe easier to fork or borrow from? Are there existing forks of MMM-PIR or other modules that you can share, if you did similar stuff?

    S 1 Reply Last reply Jan 8, 2025, 9:21 PM Reply Quote 0
    • S Away
      sdetweil @cpcode
      last edited by Jan 8, 2025, 9:21 PM

      @cpcode havent seen anything similar, don’t see in 3rd party list

      you could modify background slideshow a little

      change its z-index to plus number , 500 to put on top
      minus number to put it back below

      other post recently mentioned button wouldn’t work cause other module was at plus 9999

      allow modules thru? make their z-index plus more than your full screen (new parm for list to surface)

      listen for notifications to wake up for other reasons, pir
      new parm for what to listen for as wakeup events

      touch is a fun one
      make an empty window above all else to catch the click events

      powering off/on is the hardest as most monitors are not friendly that way anymore, and the os keeps changing the tools needed (look at mmm-pir as example)

      probably less tgat 25 lines of code til you get to power off/on

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      C 1 Reply Last reply Jan 8, 2025, 9:55 PM Reply Quote 1
      • C Offline
        cpcode @sdetweil
        last edited by Jan 8, 2025, 9:55 PM

        @sdetweil that’s an excellent suggestion! Forking MMM-PIR seemed daunting, but forking BackgroundSlideshow and using the z-index trick should indeed be simple, and it separates the problem of turning off the screen at night. Thanks!

        W 1 Reply Last reply Jan 9, 2025, 7:38 PM Reply Quote 0
        • W Offline
          wishmaster270 Module Developer @cpcode
          last edited by Jan 9, 2025, 7:38 PM

          @cpcode Hi, I use a similar thing in my mirror.

          I use MMM-ProfileSwitcher with MMM-ProfileControl to realise pages.

          My MMM-Screen-Powersave-Notification supports switching to a specific profile instead of turning the screen off.

          I my case I display MMM-BackgroundSlideshow of one of my pages (one profile) and switch to this page during Screensave.

          I installed MMM-Touch and send a USER_PRESENCE notification if the screen gets touched.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          1 / 1
          • First post
            2/4
            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