#####################################################################
## UBS Configuration File
## This file is read by all daemons of the UBS to determine system
## settings and such.  It is case and whitespace insensitive.  Each
## line must be in the following form:
##
##  supercontext.subcontext = something
##
## If a phrase is to be used in place of 'something' it must be
## surrounded by quotation marks.  Directories, numbers, times, and
## single words need not padded by quatotion marks.
##
## In this file, each commented out value is the same as the UBS's
## internal default value.  That is, if something in this file is
## left to be commented out, then that value will be used.  These
## default values are left in this file for reference purposes.
#####################################################################


#####################################################################
## Global Context
## These settings are parsed by all UBS daemons

# Where the UBS filetree is located
global.prefix = "/var/spool/ubs"

# The default location to queue to
global.queue = "var/queue"

# Location of the error log
global.errorlog = "log/error.log"

# Location of the playlist log
global.songlog = "log/playlist.log"

# Amount of information to put in the UBS logs.  The scale is:
# 0 -> Emergency information only
# 1 -> Status messages only
# 2 -> Error messages only
# 3 -> Debugging messages
# Note that each level also includes all levels less than its numerical
# value.
# global.loglevel = "2"
#####################################################################


#####################################################################
## Play Context
## Settings used by the UBS play daemon

# What program is used to actually play music.  The string '%s' is
# substituted for the songname
# play.media = "ogg123 -q %s"

# Determines whether or not to end the spawned media process upon exit
# play.killmedia = "no"
#####################################################################


#####################################################################
## Sched Context
## Settings used by the UBS scheduler daemon

# Where to pull music from if no show is given
# sched.miscdir = "misc"

# How many lines in the logfiles to check against before queueing
# up new songs
# sched.searchback = "30"

# Number of known shows.  This needs to reflect the number of shows you
# add in this file!
# sched.numshows = "0"

# Shows must have the following attributes set, or else they are
# considered to be invalid and will throw an error.
#
# name		The 'human readable' name for the show. Can be any
#		string, doesn't need to be unique.
# start 	Time when the show starts.  This value is in 24 hour
#		military time, but can be specified as either a flat
#		number (ie, "10"), or a proper formatted time ("10:00").
# end		Time for when the show ends.  Same rules apply as
#		for the starting time.
# dir		Directory or file for the show.  In the case of randomly
#		selected shows, this value must be a directory.  For
#		playlists, it must be a M3U playlist that the UBS daemon
#		has permissions to read.
# type		Type of show to play.  This may be either the string
#		"random" (in which case, the dir value must be a
#		directory containing music files which can be picked),
#		or it can be "m3u", which specifies an m3u playlist.
# repeat	How often the show should repeat in the course of a
#		week.  This may be "once", "weekly", or "daily".
#		NOTE: Currently, the only supported value for this
#		parameter is "daily".  Sorry, folks.

# A show can also have the following optional parameters.  If these
# are not specified in a show configuration, they are simply
# ignored.
#
# banner	Forces the UBS to schedule a filename (which is given
#		as the argument to this command) as the first song
#		for the given show.  The idea is that each show that
#		is played can be "announced" on the air as it starts.

# Sample show entry, for a show starting at 8am and ending at 10am

# show1.name = "A sample show"
# show1.start = 1:00
# show1.end = 10
# show1.repeat = daily
# show1.dir = /usr/local/music/show1
# show1.type = random
#####################################################################


#####################################################################
## Event Context
## Settings used by the UBS event daemon

# Number of events.  This must be defined, and must reflect the number
# of events added in this file.
# event.numevents = "0"

# A sample event that runs every hour at the bottom of the hour, and
# will exec the script "PREFIX/bin/sample.sh", and log any activity
# to the file "PREFIX/log/sample.log".

# event1.name = "sample.sh"
# event1.time = 30
# event1.logfile = "sample.log"
#####################################################################
