MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. djtale
    3. Topics
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    D
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 5
    • Groups 0

    Topics

    • D

      Config error with MMM-TelegramBot - Parenthesized pattern

      Watching Ignoring Scheduled Pinned Locked Moved Troubleshooting
      1
      0 Votes
      1 Posts
      231 Views
      D
      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
    • D

      Need help to develop a Module for Halloween

      Watching Ignoring Scheduled Pinned Locked Moved Development
      1
      0 Votes
      1 Posts
      487 Views
      D
      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.
    • D

      Help for a Module for Halloween

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      1
      1 Votes
      1 Posts
      473 Views
      D
      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 / 1