• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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-Podcast (or playing a video on command at all) without button?

Scheduled Pinned Locked Moved Requests
mmm-podcastmmm-buttonvideo
2 Posts 2 Posters 1.8k Views 2 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.
  • S Offline
    SurfingCA
    last edited by May 19, 2017, 10:08 PM

    Hi! I have almost no knowledge of coding, but I’ve been learning a little here and there with this project. I have a small clip that I would like to play on command using MMM-Remote Control. Almost everywhere I’ve turned, I’ve seen people recommending MMM-Podcast but I don’t actually have a physical button to play it with and I don’t want to have my pi trying to run voice command all the time for the rest of forever, especially since I wanted this to be subtle, so I could turn it on without friends noticing. Without the button, I’m not even sure if MMM-Podcast works right now and I don’t know if MMM-Remote Control has the ability to activate MMM-Podcast at all. I did manage to get a module called MMM-htmlvideo to play the test video that it came with, but not mine (I suspect this is because my video is a file on the pi as opposed to a web address) and this module plays the videos once or on loop, and I want it to play on command. Any help would be greatly appreciated! Thank you all so much!

    A 1 Reply Last reply May 20, 2017, 1:15 PM Reply Quote 0
    • A Offline
      Anhalter42 @SurfingCA
      last edited by May 20, 2017, 1:15 PM

      @SurfingCA IIRC MMM-Podcast works together with MMM-Button which enables you to use a hardware button to start playing the video/podcast. So you can either (1) use this OR (2) emulate its behaviour using MMM-RemoteControl.
      (1) is properly documented I guess.
      For (2) you have to send the exact notification MMM-Button would have sent. By looking through source code, you’ll see that it is BUTTON_PRESSED (with a payload of true, which gets ignored in MMM-Podcast anyway). So, you should be able to use http://ip:8080/remote?action=NOTIFICATION& notification=BUTTON_PRESSED to activate MMM-Podcast to play the video. Note: obviously you have to replace ip with the correct IP and you have to remove the whitespace between & and notification which I had to insert to prevent & and not to get converted to ¬ on this board.

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