Read the statement by Michael Teeuw here.
MMM-MplayerRadio
-
@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
-
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.
-
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 modulecan do:
- volume control (no api found)
- change stations (next/previous/play/toogle,etc) from your api
-
@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. -
@wishmaster270 wow, vielen Dank :folded_hands:
-
@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 moduleEdit:
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 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.
-
Hi!
my second post :)
I’ve lost my first one somewhere , sorry if you read twice :) :)I’ve raspberry with AIY voice module , magic mirror software and a little touchscreen
the touchscreen works good ( in the lego cabinet) with touch software like MMM-ModuleBar
but I can’t use the buttons below the MMM-MplayerRadio , they seems dosn’t work or send notificationthe MplayerRadio module is working , and I really like hear the music from the module but i want to use the touch buttons too 😃
i’ve used the “/etc/asound.conf” of your hints and the radio plays ok (with the “Pulse” configuration) but only if the trick below:
I put the option DisplayStatioOnStartup: true and I click on the suggested radio
(with this option = false, the radio dosn’t start or I cannot go in the menu with the radio display list)
I’ve also installed MMM-Volume module too, but the volume button I suppose have the same problem of previous , play and next buttons
Do you have any advice or hints or config example ?
thanks for reading
Roberto -
@robfer Hi, normally there is some other module covering the buttons in such cases.
You can solve this by setting z-index in your custom.css.
The higher the index the more in the foreground the module will be.The following config is part of my custom.css file:
.MMM-ImagesPhotos, .MMM-ImageSlideshow, .MMM-COVID19, .MMM-Spotify, .MMM-Temperature, .MMM-LEDStripControl { z-index: -1; } .MMM-MplayerRadio { z-index: 999; }
-
@wishmaster270
thanks,
you was right, the module newsfeed cover the buttons on my little screenhiding and showing it solve my problem, now i can use the radio and the volume buttons too :)
maybe without use the custom.css
but in this case a little extra question, if you know: can I put standard module newsfeed in the custom.css file? (I tryed but seems not work)