MAFA logo MAFA MPD client app for android

Automation


About

MAFA can accept messages from automation apps to control MPD server.

Note

This feature is still experimental and subject to changes.

Settings

Automation intents are disabled by default. Enable from SettingsAutomationEnable automation

Messages

MPD Command

Send MPD command to an MPD server. Command idle and binary commands like albumart are not supported.

If there's no MPD server with host and port, a new one is added.

Test

adb shell am start -a software.indi.mafa.action.MPD_COMMAND -e host 192.168.1.101 -e port 6600 -e command \"setvol 44\"

Intent

Intent parameters
Action
software.indi.mafa.action.MPD_COMMAND
Extras
NameTypeValueExample
hostStringThe target MPD server host name192.168.1.100
portStringThe target MPD server port number6600
pwStringOptional MPD server password
commandStringThe command to send.
If the command contains a line break it is automatically wrapped within command_list_begin and command_list_end
status
Result
Extras
NameTypeValueExample
responseStringThe response from MPD server or empty if failed to send the command
repeat: 0
random: 0
single: 0
consume: 0
partition: default
playlist: 4
playlistlength: 1
mixrampdb: 0
state: stop
xfade: 2
song: 0
songid: 1
OK
fail-reasonStringReason for failure or empty if command was successfulConnection refused

Select MPD Server

Switch MAFA to selected MPD server.

If there's no MPD server with host and port, a new one is added.

Test

adb shell am start -a software.indi.mafa.action.SELECT_SERVER -e host 192.168.1.101 -e port 6601

Intent

Intent parameters
Action
software.indi.mafa.action.SELECT_SERVER
Extras
NameTypeValueExample
hostStringThe target MPD server host name192.168.1.100
portStringThe target MPD server port number6600
Result
Extras
NameTypeValueExample
fail-reasonStringReason for failure or empty if command was successfulFailed to add MPD server