MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Need help to develop a Module for Halloween

    Development
    1
    1
    358
    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.
    • D
      djtale last edited by

      Hello,

      I’m trying to make this project ( https://www.instructables.com/id/Raspberry-Pi-Based-Living-Portrait-Player-Intro/ ) into a Module.

      The difficulty I have is that I’m using Simple-Swiper module to switch the pages of my mirror.

      Here is what I’m trying to do :

      the user can navigate on the different pages.
      when he reaches the last page , omx player is displayed with the video but doesn’t play the video. It just display the first image. This is what is done in the Living-Portrait-Player.
      if a move is detected, the video plays.
      if the user switch the page, omx is killed and disappears.
      I’m asking for your help because I have already started something but I can’t manage to make it work.

      I’m getting inspiration from multiple modules for this project.

      MMM-PIR which is the one I’m using as a main module and I’m modifying the code of that module.
      MMM-Podcast
      MMM-pages to find out what is the current page
      MMM-RTSPStream for methods related to omxplayer
      I wonder if I can use the callback method in MMM-PIR to run the script when the user arrives on the page. I haven’t tried that yet. And also, how to kill omx when the user changes the page.

      I’m also having difficulties to get the current page in the MM-PIR modules.
      I’m using
      this.sendNotification(“QUERY_PAGE_NUMBER”);
      in the MMM-PIR.js but seems like MMM-pages doesn’t receive the notification.

      I would be so thankful if someone could help me working on this.

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post
      Enjoying MagicMirror? Please consider a donation!
      MagicMirror created by Michael Teeuw.
      Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
      This forum is using NodeBB as its core | Contributors
      Contact | Privacy Policy