Name

mpd_sima — sima will try to maintain some titles ahead in your play list following different policies.

Synopsis

sima [ --pid=pid_file ] [ --log=log_file ] [ --conf=conf_file ] [ --hostname=hostname ] [ --mpd_port=mpd_port ] [--new-version]

sima [ { -h | --help } | --version ]

DESCRIPTION

This manual page documents briefly the sima commands.

At start up default configuration is first overridden by user configuration in mpd_sima.cfg (see the section called “FILES”) and finally command lines options are honored. For instance you can override default MPD_HOST set in defaults (localhost) or in your configuration file with -S my_mpd_server option. For default configuration see the section called “CONFIGURATION”.

EXAMPLES

Launch in user land

Launching sima from/whithin your user acount is easy, you can simply call sima or one of the following command:

sima --log=$HOME/var/log/sima.log

sima --host=my.mpdserver.org

Daemon mode

The script is not yet forking the process in background as a regular daemon. Hence you'll have to explicitly ask for it, refer to your shell documentation to do so.

OPTIONS

The program follows the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below.

-h, --help

Print help and exit.

--version

Print version and exit.

-p pid_file, --pid=pid_file

Use the specific file pid_file to store pid to.
Default is not to store pid info.

-l log_file, --log=log_file

Use the specific file log_file to log messages to.
Default is to log to stdout/stderr.

-c conf_file, --conf=conf_file

Use the specific file conf_file to set up configuration instead of looking for the default user configuration file.
Default is to look for $XDG_DATA_HOME/mpd_sima/mpd_sima.cfg. Concerning this file see also the section called “FILES”.
Pay attention: Because you load a specific configuration file from command line interface does not mean it will override others options pass to mpd_sima. In other words launching with -P 6666 will override port setting whatever the configuration file your using, default or command line specified.

-S mpd_host, --hostname=mpd_host

Use the specific host mpd_host as MPD server.
mpd_host can be an IP or a fully qualified domain name as long as your system can resolve it. This overrides MPD_HOST environment variable.
Default is localhost.

See also the section called “ENVIRONMENT”.

-P mpd_port, --port=mpd_port

Use the specific port number mpd_port on MPD server. This overrides MPD_PORT environment variable.
Default is 6600.

See also the section called “ENVIRONMENT”

--new-version

Check and log for new version at start up (issue a warning).

FILES

${XDG_CONFIG_HOME}/mpd_sima/mpd_sima.cfg

The per-user configuration file. Usually XDG_CONFIG_HOME is set to ${HOME}/.config.

${XDG_DATA_HOME}/mpd_sima/history.pkl

History file. Usually XDG_DATA_HOME is set to ${HOME}/.local/share.

ENVIRONMENT

MPD_HOST, MPD_PORT

MPD_sima is following mpc documentation for MPD_HOST syntax, see mpc(1) for further information.

CONFIGURATION

mpd_sima.cfg

mpd_sima.cfg is read if present. Otherwise defaults are used. An example should be provided in the tarball within doc/examples/mpd_sima.cfg

DEFAULTS

Default is to look for MPD server at localhost:6600.

The default behavior is to add one track, this track is to be chosen among titles from artists similar to the artist of the currently played track. MPD_sima will add one track when the play list is one track long.

To change these defaults, use the configuration file mpd_sima.cfg

BUGS

The upstream BTS can be found at http://codingteam.net/project/sima/bugs.

FEEDBACK

The maintainer would be more than happy to here from you, don't hesitate to send feedback on the forge, via the upstream BTS, the forum or the chat room, all available on the forge at http://codingteam.net/project/sima.

XMPP users are welcome to join the dedicated room at sima@conference.codingteam.net.

SEE ALSO

mpc(1), mpd(1)

/usr/share/doc/sima/