• 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-MplayerRadio

Scheduled Pinned Locked Moved Entertainment
46 Posts 7 Posters 11.7k Views 8 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.
  • W Offline
    wishmaster270 Module Developer @electros
    last edited by May 6, 2020, 6:16 PM

    @electros Perfect.
    I think I will check in the script into the repository so you can easy update to upcoming versions

    E 1 Reply Last reply May 6, 2020, 6:32 PM Reply Quote 0
    • E Offline
      electros Project Sponsor @wishmaster270
      last edited by May 6, 2020, 6:32 PM

      @wishmaster270 Thank you

      1 Reply Last reply Reply Quote 0
      • B Offline
        bryan_1 @wishmaster270
        last edited by Sep 2, 2020, 7:50 PM

        @wishmaster270 Hi, I’m newbie and know almost nothing about coding. I have installed your module successfully, but what should I do to start it (without touchscreen)? It is shown on my mirror but not played. I put only one Station.
        I want to start it automatically if I start my mirror.
        Thanks.

        W 1 Reply Last reply Sep 4, 2020, 6:54 PM Reply Quote 0
        • W Offline
          wishmaster270 Module Developer @bryan_1
          last edited by Sep 4, 2020, 6:54 PM

          @bryan_1 Hi, currently there is no autoplay feature implemented. But I will check it the next days. Maybe it is not a big deal

          1 Reply Last reply Reply Quote 0
          • W Offline
            wishmaster270 Module Developer
            last edited by Sep 5, 2020, 8:44 AM

            Hi,

            just published an new version (0.0.3) which provides an autoplay feature. Simply add the station index you want to play to the config option “autoplay”. If you only configured one station it is 0. The station will start to play after about 1 second after the mirror started.

            B 1 Reply Last reply Sep 8, 2020, 8:03 PM Reply Quote 0
            • ? Offline
              A Former User
              last edited by Sep 5, 2020, 11:23 AM

              hi @wishmaster270 ,

              if you want me to create a vocal control with MMM-GoogleAssistant, just tell me.
              I can create a special sub-code for your module

              can do:

              • volume control (no api found)
              • change stations (next/previous/play/toogle,etc) from your api
              W 1 Reply Last reply Sep 5, 2020, 1:32 PM Reply Quote 0
              • W Offline
                wishmaster270 Module Developer @Guest
                last edited by Sep 5, 2020, 1:32 PM

                @Bugsounet Hi, great idea. At the moment my mirror is only controlled by sensors and touch.
                The volume control buttons of my module only send an notification to MMM-Volume that’s way there isn’t any api in this module.
                Everything else can be controlled by notifications. There is a small section about the notifications in the readme.

                1 Reply Last reply Reply Quote 0
                • B Offline
                  bryan_1 @wishmaster270
                  last edited by Sep 8, 2020, 8:03 PM

                  @wishmaster270 wow, vielen Dank :folded_hands:

                  1 Reply Last reply Reply Quote 0
                  • ? Offline
                    A Former User
                    last edited by A Former User Sep 8, 2020, 9:46 PM Sep 8, 2020, 9:03 PM

                    @wishmaster270 said in MMM-MplayerRadio:

                    The volume control buttons of my module only send an notification to MMM-Volume that’s way there isn’t any api in this module

                    ok so not needed because GA/A2D have native this function (volume control in vocal)
                    I can create quiclky an sample by I don’t know if you use my module

                    Edit:

                    the problem is I can’t send real name of the radio (it’s different with the google Server response)
                    so i will code :

                    SAY To GoogleAssistant NOTIFICATION Sended to MMM-MplayerRadio Function
                    Radio play RADIO_PLAY Playing first station
                    Radio stop RADIO_STOP Stop radio
                    Radio Next RADIO_NEXT Next Station
                    Radio Previous RADIO_PREVIOUS Previous Station

                    Of course all user can change you prefered ‘sentence’ for activate each wanted control

                    Edit 2:

                    [ASSISTANT] Command RADIO_PLAY is executed (notificationExec).
                    MMM-NotificationReceived.js:20 [Notification Sended From][MMM-GoogleAssistant] RADIO_PLAY {}
                    
                    [ASSISTANT] Command RADIO_STOP is executed (notificationExec).
                    MMM-NotificationReceived.js:20 [Notification Sended From][MMM-GoogleAssistant] RADIO_STOP {}
                    
                    [ASSISTANT] Command RADIO_PREVIOUS is executed (notificationExec).
                    MMM-NotificationReceived.js:20 [Notification Sended From][MMM-GoogleAssistant] RADIO_PREVIOUS {}
                    
                    [ASSISTANT] Command RADIO_NEXT is executed (notificationExec).
                    MMM-NotificationReceived.js:20 [Notification Sended From][MMM-GoogleAssistant] RADIO_NEXT {}
                    

                    Tell me if ok, in all case notification are sended.
                    sample of syntax used for send : this.sendNotification("RADIO_STOP")

                    For volume:
                    Vocal Control already coded with GA/A2D : volume 100% for exemple
                    make RPI volume to 100%
                    So don’t worry about this :)

                    Notes:
                    GA: MMM-GoogleAssistant
                    A2D: MMM-Assistant2Display
                    too long to write lol !

                    Sub-Code (recipe) is coded and commit in my dev branch

                    if some users want to test it

                    @bugsounet

                    W 1 Reply Last reply Sep 9, 2020, 6:48 PM Reply Quote 0
                    • W Offline
                      wishmaster270 Module Developer @Guest
                      last edited by Sep 9, 2020, 6:48 PM

                      @Bugsounet Hi, thank you for your work. I checked the code, your notifications should work as planned. Play will start with the last station played or with the first one initially.

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 4 / 5
                      • 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