03-07-2021, 04:51 PM
(03-07-2021, 02:13 PM)electroremy Wrote: Hi,
Thank you ; so I have to use MPC commands as listed here : https://linux.die.net/man/1/mpc
And what about "bluetooth connection" ?
As I can connect a smartphone with bluetooth to play podcasts, Moode Audio will be "locked" - it's a logic behavoir
But if I send MPC command while Moode is already connected to bluetooth, what's appends ? Can I crash Moode Audio ?
Is it possible to get Moode Audio "state" ?
Regards,
Since the versions of MPD and MPC used in moOde evolve over time, I suggest you ask the code directly what commands it accepts.
Code:
pi@moode:~ $ mpc help
Usage: mpc [options] <command> [<arguments>]
mpc version: 0.33
Options:
-v, --verbose Give verbose output
-q, --quiet Suppress status message
--no-status synonym for --quiet
-h, --host=<host> Connect to server on <host>
-P, --password=<password> Connect to server using password <password>
-p, --port=<port> Connect to server port <port>
-f, --format=<format> Print status with format <format>
-w, --wait Wait for operation to finish (e.g. database update)
-r, --range=[<start>]:[<end>] Operate on a range (e.g. when loading a playlist)
Commands:
mpc Display status
mpc add <uri> Add a song to the queue
mpc crop Remove all but the currently playing song
mpc current Show the currently playing song
mpc del <position> Remove a song from the queue
mpc play [<position>] Start playing at <position>
mpc next Play the next song in the queue
...goes on for a total of 60+ commands...
MPC is a companion to MPD. Using moOde as a Bluetooth speaker bypasses MPD. If you make changes to the MPD status you won't see the effect until you stop using the Bluetooth connection.
Regards,
Kent