Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with lumi/audio/play/set #15

Open
MiguelCSousa opened this issue Apr 27, 2021 · 1 comment
Open

Issue with lumi/audio/play/set #15

MiguelCSousa opened this issue Apr 27, 2021 · 1 comment

Comments

@MiguelCSousa
Copy link

Hello,

When music is playing it's impossible to stop it with lumi/audio/play/set "STOP"

Thanks for your great work!

Regards,

Miguel

@iPavel89-work
Copy link

iPavel89-work commented Oct 1, 2021

you should change mpd configs. after change. restart service /etc/init.d/mpd restart or reboot system
my example
mcedit /etc/mpd.conf.

music_directory "/opt/mp3"
db_file "/opt/mp3/database"
log_file "/opt/mp3/log"
user "root"
group "root"
bind_to_address "0.0.0.0"
port "6600"
log_level "default"
auto_update "yes"
auto_update_depth "3"
follow_outside_symlinks "yes"
follow_inside_symlinks "yes"
input {
plugin "curl"
}

now you can play sounds my mpd like tts
for set playing by mpd you should change string in gateway.js cp.execSync('mpg123 "' + audio.play.value.url + '"'); to string cp.execSync('mpc clear && mpc add ' + audio.play.value.url + ' && mpc play');
and now you can stop playing mp3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants