first of all, if this is the wrong board, please move this thread to the right one.
Now to the module itself:
Halloween is coming around, and we thought, what could be better, then producing some jump scares. Since we failed to get it going with existing modules (like MMM-EasyBack) I created a new one.
This module shows (if wanted) a bait image to lure people in and shows after a specified time either a random image (should be scary) or a random video. The videos can be either with or without sound, depending on the settings in your browser.
The module creates for all images and videos hidden objects in the DOM. When the time has come one randomly chosen object will be selected, revealed and if it is a video the play parameter set to true. I know, I know, that is a pretty brute attempt, but if I updated the DOM with a single new video, it would not play. Furthermore I could find no notification or module, that could have informed my module to start playing the video, after the DOM has been refreshed…
For installation guidelines and the code follow this link.
It’s quite BETA, so expect some changes to be made in the future. Feedback is (as always) appreciated.
What the module still lacks is the possibility to react to a motion sensor or a different module, that can send notifications. This will come (hopefully) in the next few days, when the package with the motion sensor gets delivered