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

A VERY simple Web radio player controled by voice

Scheduled Pinned Locked Moved Entertainment
5 Posts 2 Posters 4.6k Views 1 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.
  • G Offline
    gismo2006
    last edited by Dec 2, 2016, 9:43 AM

    Ok, guys,

    here is my first module for the MM². It will be very simple because I’m not have any coding experice.

    Here I like to say THANKS to @tyho and @strawberry-3-141 which helped me a lot!

    And I have to say thanks to @alexyak for the great voicecontrol module!

    Here my module:

    https://github.com/gismo2006/MMM-Myvoiceradio

    OHHH before I forgett, there a no Pictures because my module didn’t show anything. (Ok thats not the true it will only show you the name of the station if you want :-) )

    1 Reply Last reply Reply Quote 0
    • B Offline
      broberg Project Sponsor
      last edited by broberg Dec 2, 2016, 6:37 PM Dec 2, 2016, 5:43 PM

      Brilliant, however.
      I don’t get the exec command to work, nothing wrong with the .sh scripts but it seems like the shell doesn’t start from MM.
      I’m trying to auto start the playback on load with

      start: function() { this.sendSocketNotification('einslive', {});},
      

      Right or wrong?

      Edit
      Yes, the start:function works

      after som guidance from gismo2006 i changed the .sh script file to be executable (chmod +x ) and now it works :D

      1 Reply Last reply Reply Quote 0
      • B Offline
        broberg Project Sponsor
        last edited by broberg Dec 2, 2016, 9:03 PM Dec 2, 2016, 9:01 PM

        You do know that with a slight change in the .sh-file you can make mpg123 play local m3u-playlists, right?

        How do you handle multiple starts of radio channels?
        Following the force-close method I suggest adding :

        killall mpg123
        sleep 0.1
        #and the mpg123 play command
        

        This would kill all mpg123 processes before starting the next mpg123 process with the other station.

        I wonder if hotkeys can be assigned to mpg123…

        1 Reply Last reply Reply Quote 0
        • G Offline
          gismo2006
          last edited by Dec 3, 2016, 11:28 AM

          Hi,

          In best case you haven´t got any problem whit multiple starts of radio channels. Because, they will only start the radio stream you like and was detected by hotword. And because there only run one stream or sound at the moment the kill order there no problem. I think you will not like to hear more than one stream at the same time. I mean it can be happen but then, i think, you will stop all streams because it will be terrible for your ears.

          Maybe I did understand your question false… :-)

          greets gismo

          B 1 Reply Last reply Dec 3, 2016, 12:14 PM Reply Quote 0
          • B Offline
            broberg Project Sponsor @gismo2006
            last edited by Dec 3, 2016, 12:14 PM

            @gismo2006

            What I mean is if you want to change the station from one to the other you have to use the hotword for stop(radiostop) before you change stations.

            You really need the kill before starting the new stream/playback otherwise you get multiple streams at the same time.

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