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.

    Help for a Module for Halloween

    Scheduled Pinned Locked Moved General Discussion
    1 Posts 1 Posters 565 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.
    • D Offline
      djtale
      last edited by djtale

      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 1

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • 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