@tanvir586 I will try to dig deeper the next days but I can not promise that I will have the time.
Maybe I can write a simple wrapper for vlc which ends the process when the streams stops or is unreachable and tries to start the process every few seconds.
Did not find any better solution til now.
Read the statement by Michael Teeuw here.
Posts
-
RE: Online Radio
-
RE: Online Radio
@tanvir586 Sorry, needed a moment to figure things out…
You can try to add “–http-reconnect” and maybe “–http-continuous” to the options.
Your config should look something like this then:
{ module: "MMM-MplayerRadio", header: "Radio", position: "top_center", config: { //autoplay: 0, customCommand: "/usr/bin/vlc", customCommandArgs: ["-I","dummy", "--http-reconnect", "--http-continuous", "###URL###"], stations: [ { title: "Al Mubarak", url: "https://relay.emasjidlive.uk/almubarakradio", logo: "https://upload.wikimedia.org/wikipedia/commons/a/ac/Antenne-bayern-logo.png", }, ], }, }, -
RE: Online Radio
@tanvir586 Great if I could help.
I am not sure how vlc will handle a connection loss. Normally it will try to reconnect but I do not know how long and often it tries.
Maybe there is a command line option but I think the best option is to try it -
RE: Online Radio
@tanvir586 Hi, just checked the website and found the “real” url of the radio.
The url “http://95.154.250.9:9980” works fine with my vlc. As long as they do not change their ip it will be functional.If it stops working you can go to https://almubarakradio.com/ hit the “Tune in live” button and copy the url of the browser window.
Edit:
Found a better way. You can use the url “https://relay.emasjidlive.uk/almubarakradio” which is the url used by the player on page “https://emasjidlive.co.uk/listen/almubarakradio” -
RE: Online Radio
@tanvir586 Ok. Maybe the vlc on the shell ignores it.
Found an interesting thread which suggests running vlc with a additional option:
{ module: "MMM-MplayerRadio", header: "Radio", position: "top_center", config: { //autoplay: 0, customCommand: "/usr/bin/vlc", customCommandArgs: ["-I","dummy", "--alsa-audio-device", "hw:0,0", "###URL###"], stations: [ { title: "Al Mubarak", url: "https://emasjidlive.co.uk/listen/almubarakradio", logo: "https://upload.wikimedia.org/wikipedia/commons/a/ac/Antenne-bayern-logo.png", }, ], }, },If you use a Raspberry Pi 4 with two hdmi you may need to change “hw:0,0” to “hw:1,0” depending of the port your monitor is connected to.
Maybe this helps. I can not test it at the moment.
Edit:
Some people suggest to add
dtoverlay=vc4-fkms-v3dto “/boot/config.txt” additionally.
-
RE: Online Radio
@wishmaster270 If you do a right click on the speaker symbol you can decide where to output the sound:

-
RE: Online Radio
@tanvir586 If you do have graphical access directly or via vnc you can check the audio settings first.
Maybe the sound is send to analog out instead of hdmi. -
RE: Online Radio
@bugsounet Oh, good to know. I use Bullseye for a while but currently only have a mirror running without audio.
@tanvir586
In default mode (which you use) mplayer is used. As i wrote in the documentation mplayer has caused a lot of problems with many streams. You could try to switch to vlc instead which is working much better but does not provide the current stream information.{ module: "MMM-MplayerRadio", header: "Radio", position: "top_center", config: { //autoplay: 0, customCommand: "/usr/bin/vlc", customCommandArgs: ["-I","dummy","###URL###"], stations: [ { title: "Al Mubarak", url: "https://emasjidlive.co.uk/listen/almubarakradio", logo: "https://upload.wikimedia.org/wikipedia/commons/a/ac/Antenne-bayern-logo.png", }, ], }, },Make sure to install vlc first:
sudo apt update && sudo apt install -y vlc -
RE: Online Radio
@tanvir586 Had a lot of problems with the sound of Raspberry as well. It do not think that it is a problem with the modules it might be a problem with the asound or pulseaudio configuration of the operating system.
If you use Buster release sound is configured by asound, if you use Bullseye it is PulseAudio.
Do you use the build in sound of the board or a external sound card?
-
RE: Online Radio
@tanvir586 Hi,
i developed MMM-MplayerRadio a couple of years ago. It still should be functional. -
RE: MagicMirror install on proxmox LXC Container?
@sdetweil You are right in running apps with & in the background but if you disconnect the ssh session all background commands will be disconnected as well.
Either screen or a command like nohup needs to be used to keep the command running. -
RE: MagicMirror install on proxmox LXC Container?
@kusselin
Hi,if your problem is only to keep the command running while/after you disconnected to the container you can use the “screen” command.
It you should be installed with Ubuntu already. If not you can install it withsudo apt update && sudo apt install -y screenYou then start a new screen with
screen -S NAMEwhile NAME is simply an alias and could be something like “mm”.
After this you can start the mirror with
npm run serverAnd you can leave the screen with the keyboard combination
CRTL+adThe screen then keeps running. If you want the resume to the screen you can use
screen -r NAME -
RE: MagicMirror Version
@kusselin
Hi,you can jump to your MagicMirror directory and run:
git log | head -n 10 | grep Release -
RE: How to synchronize pictures from mobile to the MM?
@MajorC
If you need the watchdog script let me known. Did not push it to any repository till now cause it is only a small bash script. -
RE: How to synchronize pictures from mobile to the MM?
@sdetweil
Correct.
You use the normal Telegram Messanger App but instead of sending pictures to somebody you send it to a bot (which is a supported feature of Telegram)The Teleframe acts as a Telegram Client, receives the pictures and saves them to a directory on the mirror.
As Teleframe creates a images.json file my watchdog only watches this file for changes and sends the notification to the module if needed. -
RE: How to synchronize pictures from mobile to the MM?
@sdetweil
Correct. It does not modify the pictures in any way.
You select the pictures you want to send like sending them via WhatsApp or any other messaging app.I forgot to mention that i wrote a small shell script which checks the the directory for new files periodically and sends a “BACKGROUNDSLIDESHOW_UPDATE_IMAGE_LIST” notification via the rest api of MMM-RemoteControl if new pictures are present.
-
RE: How to synchronize pictures from mobile to the MM?
@MajorC
Hi,i run a instance of TeleFrame in botonly mode to send pictures via Telegram to my mirror and save them to a directory.
Then i use MMM-BackgroundSlideshow to display.
TeleFrame supports setting a file limit so older files get deleted. But you can not remove pictures via Telegram (only with access to the mirror) if you send them accidently.Everybody with access to the bot can send pictures via Telegram app.
-
RE: [MMM-ValuesByNotification] Display the payloads of notifications with titles and icons
@Cr4z33
If you still want to move the content to the left you can try something like the following in your custom.css:.vbn .groupWrapper { border-style: none; padding: 0px; margin-left: 20px; } .vbn .groupsWrapper, .vbn .groupWrapper, .vbn .itemsWrapper, .vbn .valueWrapper { justify-content: left; align-items: unset; } -
RE: [MMM-ValuesByNotification] Display the payloads of notifications with titles and icons
@Cr4z33
No problem.
Simply add.vbn .groupWrapper { border-style: none; padding: 0px; }to your custom.css
Ps.: Try to never ever edit any files in the module directory (except mentioned in the documentation) as you will get problems with updates in the future otherwise!
-
RE: [MMM-ValuesByNotification] Display the payloads of notifications with titles and icons
@Cr4z33
sorry i do not understand exactly what you mean