Tom-Hirschberger / MMM-MplayerRadio

An MagicMirror² module which playes m3u radio playlists with MPlayer and supports various stations to rotate through
MIT License
7 stars 0 forks source link

Help Please #3

Closed MarcoNoah closed 3 years ago

MarcoNoah commented 4 years ago

I love your module.

I am having a problem is finding the M3U file for radio stations. Coudl you show me how. For example I would like to put on teh module an English radio station Magic 105.4. I have followed your instructions but an M3U file downloads but I do not know how to find the relevant code to add to the config file.

Many thanks

Steven

Tom-Hirschberger commented 4 years ago

Hi, great that you like the module. Do you mean Magic 105.4 played broadcased of London? Searched at my favorite website providing m3us (www.surfmusic.de) and found this on: http://www.surfmusic.de/radio-station/magic-105-4-fm,10170.html

There is a link on the page which should be used for "Standalone Players" which provides the link needed by the module (http://www.surfmusic.de/m3u/magic-105-4-fm,10170.m3u).

If you like to add an logo you can use this url: https://media.info/i/lv/magic-radio/1504126775/197.png

Tom-Hirschberger commented 4 years ago

Maybe the Readme is misleading. You do not need to download the m3u file. Simply do a right click and copy the url of it. This is the url you need for configuration.

MarcoNoah commented 4 years ago

Thank you.

I realised earlier today. I was able to get some other uk Stations to play.

Magic using the M3U code doesn’t’ play. Also when the other stations play the module flashes. Is there anything I can do to stop this?

Steven

From: Thomas Hirschberger [mailto:notifications@github.com] Sent: 06 September 2020 19:55 To: Tom-Hirschberger/MMM-MplayerRadio Cc: MarcoNoah; Author Subject: Re: [Tom-Hirschberger/MMM-MplayerRadio] Help Please (#3)

Maybe the Readme is misleading. Do do not need to download the m3u. Simply do a right click and copy the url of it. This is the url you need for configuration.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Tom-Hirschberger/MMM-MplayerRadio/issues/3#issuecomment-687869499 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AP2IKYUXP4N2QQPNUISIPIDSEPLG7ANCNFSM4Q3CRO5A . https://github.com/notifications/beacon/AP2IKYXZICJ6YZAPMWQSNILSEPLG7A5CNFSM4Q3CRO5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFEAA4OY.gif

Tom-Hirschberger commented 4 years ago

Hi, just had a couple of minutes and tried the m3u of Magic 105.4 in my setup. You are right. There seems to be a problem with the station stream and mplayer. Also tried to improve the playback by adjusting the cache but nothing seems to work.

But i found an other way to update the information of the currently playing stream which should reduce the flickering massively. Currently the new code is still in my dev branch. Maybe you want to give it a try. Simply change to the module directory and run the following code: git checkout development git pull rm -rf node_modules package-lock.json npm install

Ps.: If you want to change back to the branch containing my stable code, you only need to do the following steps: git checkout master git pull rm -rf node_modules package-lock.json npm install

MarcoNoah commented 4 years ago

Dear Thomas

Thank you again for taking the time to respond which is much appreciated.

I found by accident that the station loads after about 3-4 minutes .

I will try your update.

Kind regards

Steven

From: Thomas Hirschberger [mailto:notifications@github.com] Sent: 08 September 2020 07:30 To: Tom-Hirschberger/MMM-MplayerRadio Cc: MarcoNoah; Author Subject: Re: [Tom-Hirschberger/MMM-MplayerRadio] Help Please (#3)

Hi, just had a couple of minutes and tried the m3u of Magic 105.4 in my setup. You are right. There seems to be a problem with the station stream and mplayer. Also tried to improve the playback by adjusting the cache but nothing seems to work.

But i found an other way to update the information of the currently playing stream which should reduce the flickering massively. Currently the new code is still in my dev branch. Maybe you want to give it a try. Simply change to the module directory and run the following code: git checkout development git pull rm -rf node_modules package-lock.json npm install

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Tom-Hirschberger/MMM-MplayerRadio/issues/3#issuecomment-688647581 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AP2IKYXIZIWQQX2AT3ABWF3SEXFQLANCNFSM4Q3CRO5A .Image removed by sender.

Tom-Hirschberger commented 3 years ago

Hi, i checked in a new version a view minutes ago. The "flickering fix" caused the module to display the wrong state after the station got toggled. Now everything works as expected.

Tom-Hirschberger commented 3 years ago

Hi, i think i found an solution for the Magic 105.4 problem. I already developed a script to use xmm2 instead of mplayer to play the stations. It is possible to use mplayer for all "normal" stations and the script to play Magic 105.4 with xmms2. You need to have xmms2 installed on the pi (if not run "sudo apt update && sudo apt install xmms2"). If you add the following to your config:

{ title: "Magic", url: "https://stream-mz.planetradio.co.uk/magic1054.aac?direct=true", logo: "https://media.info/i/lv/magic-radio/1504126775/197.png", customCommand: "/home/pi/MagicMirror/modules/MMM-MplayerRadio/scripts/playRadio.bash", customCommandArgs: ["###URL###"], },

Magic will be played with xmms2.

The only disadvantage of xmms2 is that there will be no information about the currently streamed content.

MarcoNoah commented 3 years ago

Dear Thomas

You are very kind to keep on this issue.

I will certainly give this a try. Magic does work after a few minutes but let see what happens.

Kind regards

Steven

From: Thomas Hirschberger [mailto:notifications@github.com] Sent: 11 September 2020 21:26 To: Tom-Hirschberger/MMM-MplayerRadio Cc: MarcoNoah; Author Subject: Re: [Tom-Hirschberger/MMM-MplayerRadio] Help Please (#3)

Hi, i think i found an solution for the Magic 105.4 problem. I developed a script to use xmm2 instead of mplayer to play the stations. It is possible to use mplayer for all "normal" stations and the script to play Magic 105.4. You need to have xmm2 installed on the pi (if not run "sudo apt update && sudo apt install xmms2"). If you add the following to your config:

{ title: "Magic", url: "https://stream-mz.planetradio.co.uk/magic1054.aac?direct=true", logo: "https://media.info/i/lv/magic-radio/1504126775/197.png", customCommand: "/home/pi/MagicMirror/modules/MMM-MplayerRadio/scripts/playRadio.bash", customCommandArgs: ["###URL###"], },

Magic will be played with xmms2.

The only disadvantage of xmms2 is that there will be no information about the currently streamed content.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Tom-Hirschberger/MMM-MplayerRadio/issues/3#issuecomment-691296541 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AP2IKYQIQZE2ZJ2W22Q3EX3SFKBWVANCNFSM4Q3CRO5A .Image removed by sender.

Tom-Hirschberger commented 3 years ago

Hi, i tested the new "features" the last days and everything seems to work fine. I also used the Magic station for a couple of days and the workaround with xmms2 reduces the loading time as expected. I think i will merge the changes to the master branch these days. If it is ok for you i will close the ticket, now?

MarcoNoah commented 3 years ago

Thank you Thomas you are very kind.

From: Thomas Hirschberger [mailto:notifications@github.com] Sent: 28 September 2020 08:00 To: Tom-Hirschberger/MMM-MplayerRadio Cc: MarcoNoah; Author Subject: Re: [Tom-Hirschberger/MMM-MplayerRadio] Help Please (#3)

Hi, i tested the new "features" the last days and everything seems to work fine. I also used the Magic station for a couple of days and the workaround with xmms2 reduces the loading time as expected. I think i will merge the changes to the master branch these days. If it is ok for you i will close the ticket, now?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Tom-Hirschberger/MMM-MplayerRadio/issues/3#issuecomment-699817217 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AP2IKYWIWONJMWKDO2VJ34LSIAX5ZANCNFSM4Q3CRO5A .Image removed by sender.

Tom-Hirschberger commented 3 years ago

Hi, i merged the code a few minutes ago and will close the ticket now. I wish you a lot of fun with the module.

MarcoNoah commented 3 years ago

Dear Thomas

I hope you do not mind me contacting you again. The module is working really well.

How can I get the volume buttons to work? I am not quite sure what I need to add to the config file.

I hope you are keeping safe!

Kind regards

Steven

From: Thomas Hirschberger [mailto:notifications@github.com] Sent: 04 October 2020 19:08 To: Tom-Hirschberger/MMM-MplayerRadio Cc: MarcoNoah; Author Subject: Re: [Tom-Hirschberger/MMM-MplayerRadio] Help Please (#3)

Hi, i merged the code a few minutes ago and will close the ticket now. I wish you a lot of fun with the module.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Tom-Hirschberger/MMM-MplayerRadio/issues/3#issuecomment-703293258 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AP2IKYT5ZIPWSXALN2SQQM3SJC2WTANCNFSM4Q3CRO5A .Image removed by sender.

Tom-Hirschberger commented 3 years ago

Hi,

no problem you are welcome. I added an hint to the readme recently because an other user had the same problem. The buttons only itiate an notification to an other module. You need to install MMM-Volume to get the buttons work.

MarcoNoah commented 3 years ago

Thank you .

Keep safe!

From: Thomas Hirschberger [mailto:notifications@github.com] Sent: 10 February 2021 09:40 To: Tom-Hirschberger/MMM-MplayerRadio Cc: MarcoNoah; Author Subject: Re: [Tom-Hirschberger/MMM-MplayerRadio] Help Please (#3)

Hi,

no problem you are welcome. I added an hint to the readme recently because an other user had the same problem. The buttons only itiate an notification to an other module. You need to install MMM-Volume https://github.com/Anonym-tsk/MMM-Volume to get the buttons work.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Tom-Hirschberger/MMM-MplayerRadio/issues/3#issuecomment-776578246 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AP2IKYUJDEOLJH7ZCGTG2K3S6JH55ANCNFSM4Q3CRO5A .Image removed by sender.