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.

    MMM-Halloween

    Scheduled Pinned Locked Moved Entertainment
    1 Posts 1 Posters 670 Views 1 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.
    • V Offline
      voigtus
      last edited by

      Hello everyone,

      first of all, if this is the wrong board, please move this thread to the right one.

      Now to the module itself:

      Why?

      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.

      What?

      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.

      How?

      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…

      Where?

      For installation guidelines and the code follow this link.

      What’s missing?

      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

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