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?