Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. djtale
    MagicMirror² v2.15.0 is available! For more information about this release, check out this topic.
    D
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 5
    • Best 1
    • Groups 0

    djtale

    @djtale

    1
    Reputation
    228
    Profile views
    5
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    djtale Follow

    Best posts made by djtale

    • Help for a Module for Halloween

      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.

      posted in General Discussion
      D
      djtale

    Latest posts made by djtale

    • Config error with MMM-TelegramBot - Parenthesized pattern

      Hello,

      I’m having error when checking my config file :

      [07.04.2021 18:28.20.938] [ERROR] Line 115 column 93: Parsing error: Parenthesized pattern
      

      It seems to be caused by the customCommand.
      Could someone help me finding out what is wrong in my syntax ?

      customCommands: [
      {
      command: "nextpage",
      description: "Passe à la page suivante",
      callback: (command, handler) => {
      self.sendNotification("PAGE_INCREMENT"),
      handler.reply("TEXT", "Voici la page suivante!")
      }
      },
      {
      command: "previouspage",
      description: "Passe à la page précédente",
      callback: (command, handler, self) => {
      self.sendNotification("PAGE_DECREMENT")
      handler.reply("TEXT", "Voici la page précédente!")
      }
      },
      {
      command: "pronote",
      description: "Passe à la page PRONOTE",
      callback: (command, handler, self) => {
      self.sendNotification("PAGE_CHANGED",6)
      handler.reply("TEXT", "Voici ProNote!")
      }
      },
      {
      command: "pause",
      description: "Stop la rotation automatique",
      callback: (command, handler, self) => {
      self.sendNotification("PAUSE_ROTATION")
      handler.reply("TEXT", "OK, rotation arretée")
      }
      },
      {
      command: "resume",
      description: "Redémarre la rotation automatique",
      callback: (command, handler, self) => {
      self.sendNotification("RESUME_ROTATION")
      handler.reply("TEXT", "OK, rotation démarrée")
      }
      }
      ]
      

      Thanks

      posted in Troubleshooting
      D
      djtale
    • Need help to develop a Module for Halloween

      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.

      posted in Development
      D
      djtale
    • Help for a Module for Halloween

      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.

      posted in General Discussion
      D
      djtale
    • RE: MMM-CalendarExt

      Hello,

      I have downloaded that Docker image to make some tests on MagicMirror :
      https://hub.docker.com/r/bastilimbach/docker-magicmirror/

      I don’t know why the MMM-CalendarExt is not displayed. I have tested multiple settings, even the simpliest provided in the doc page but still nothing appears.

      When I use the Browser debugger, I see a size of 0x0 for the div.container

      The calendar urls are working fine with the default calendar module.

      Is there something missing on the Docker Image ? I doubt because I have same issue with the module on my RaspberryPi MagicMirror

      Would someone accept to test my config module on his MagicMirror ?

      If anyone has some ideas, thanks.

      posted in Productivity
      D
      djtale
    • RE: MMM-Swipe - Hand gestures

      Hello !

      I have ordered my HC-SR04 and I’m trying to understand how to setup this module.
      I have understand to setup of the GPIO but I don’t understand the notification stuff.

      Let’ say on first page I have those modules :
      “compliments”,“weatherforecast”,“newsfeed”,“MMM-SingleStock”

      And on second page, I want to have “MMM-CalendarExt”

      Where should I code the notification ?
      If someone can share a simple code to explain how we can switch from page 1 to page 2, I would highly appreciate.

      Thanks.

      posted in Troubleshooting
      D
      djtale