App-MPDJ

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

      > mpdj --before 2 --after 6
      > mpdj --no-daemon --conlog info

DESCRIPTION
    "App::MPDJ" is an automatic DJ for your "MPD" server. It will manage a
    queue of random songs for you just like a real DJ.

OPTIONS
    --mpd
        Sets the MPD connection details. Should be a string like
        password@host:port. The password and port are both optional.

    -s, --syslog
        Turns on sending of log information to syslog at specified level.
        Level is a required parameter can be one of debug, info, notice,
        warn[ing], err[or], crit[ical], alert or emerg[ency].

    -l, --conlog
        Turns on sending of log information to console at specified level.
        Level is a required parameter can be one of debug, info, notice,
        warn[ing], err[or], crit[ical], alert or emerg[ency].

lib/App/MPDJ.pm  view on Meta::CPAN

sub version {
  say "mpdj (App::MPDJ) version $VERSION";
  exit;
}

sub help {
  print <<'HELP';
Usage: mpdj [options]

Options:
  --mpd             MPD connection string (password@host:port)
  -s,--syslog       Turns on syslog output (debug, info, notice, warn[ing], error, etc)
  -l,--conlog       Turns on console output (same choices as --syslog)
  --no-daemon       Turn off daemonizing
  -b,--before       Number of songs to keep in playlist before current song
  -a,--after        Number of songs to keep in playlist after current song
  -c,--calls-freq   Frequency to inject call signs in seconds
  --calls-path      Path to call sign files
  --music-path      Path to music files
  -f,--conf         Config file to use
  -V,--version      Show version information and exit

lib/App/MPDJ.pm  view on Meta::CPAN


C<App::MPDJ> is an automatic DJ for your C<MPD> server.  It will manage a queue
of random songs for you just like a real DJ.

=head1 OPTIONS

=over 4

=item --mpd

Sets the MPD connection details.  Should be a string like password@host:port.
The password and port are both optional.

=item -s, --syslog

Turns on sending of log information to syslog at specified level.  Level is a
required parameter can be one of debug, info, notice, warn[ing], err[or],
crit[ical], alert or emerg[ency].

=item -l, --conlog

Turns on sending of log information to console at specified level.  Level is a



( run in 0.847 second using v1.01-cache-2.11-cpan-49f99fa48dc )