MagicMirror Forum

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

    MMM-Remote-Control & MMM-webradio

    Development
    2
    2
    2588
    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.
    • R
      ramonbovenlander last edited by ramonbovenlander

      I’m creating a module for a webradio player HTML5 based.
      To controll the webradio player i’m using MMM-remote-control (awesome module!)

      On a couple bugs here and there i’m almost done but i’m not a real programmer so i’m a bit stuck now.

      what i got so far:

      • radio stations are playing music out of the raspberry pi3
      • Stop playing
      • Start playing
      • Change radio station
      • volume control

      the only thing is that my select box to select radio stations passes the given value, the stations URL and not its option name to the Magic Mirror output screen.

      now i can hack it with a if else then this do that kinda solution but i want to do it clean and i want to learn something out of it.

      So how do i pass/get the value AND name of the selected option to show it on my Magic Mirror output.

      To make my question more clear here’s a screen recording.
      On the left MMM-Remote-Control and right the Magic Mirror v2 output screen.
      i stopped it to fast i see but the last second you see the station name going to undefined.
      https://youtu.be/w6-S8jngn6M

      Steff 1 Reply Last reply Reply Quote 1
      • Steff
        Steff @ramonbovenlander last edited by

        @ramonbovenlander said in MMM-Remote-Control & MMM-webradio:
        I love your idea, just had the same thought to extend the Remote Control with an option to play radio on demand.
        Did you upload your module already somewhere in github ? If yes, could you please share the place ?

        1 Reply Last reply Reply Quote 4
        • 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