If you take a look at the attached local conf, I've been through and
reformatted this into segments. Now looking at the config file I'm sure
it would be pretty easy to use a template and just gather some basic
info from users.
Check out;
http://www.cheetahtemplate.org/
If a media root folder is specified for instance, the
movies/images/music etc... will be in so called directories below the
media root. Its a simple task to check the existence of these folders
and create them if they don't exist.
cheetah seems like a great way of achieving things like this quickly.
Karl,
# Local FreeVo Configuration
#
# downtime.nncc.info
##conf.general#################################################################
# #
# General Configuration #
# #
###############################################################################
plugin.remove('shutdown')
plugin.activate('idlebar')
plugin.activate('idlebar.clock',level=10)
plugin.activate('idlebar.cdstatus',level=50)
plugin.activate('copy_to_cd')
plugin.activate('cd_burn')
DEBUG = 1
CONFIG_VERSION = 5.15
AUDIO_DEVICE = '/dev/dsp'
CONTROL_ALL_AUDIO = 1
MAX_VOLUME = 90
DEFAULT_VOLUME = 85
DEV_MIXER = '/dev/mixer'
START_FULLSCREEN_X = 1
HIDE_UNUSABLE_DISCS = 1
ROM_SPEED = 8
USE_NETWORK = 1
OVERLAY_DIR = os.path.join("/home/", 'vfs')
PLAYLIST_SUFFIX = [ 'm3u' ]
MMPYTHON_CREATE_MD5_ID = 1
MEDIAINFO_USE_MEMORY = 1
DIRECTORY_SMART_SORT = 1
DIRECTORY_AUTOPLAY_SINGLE_ITEM = 1
DIRECTORY_AUDIO_FORMAT_STRING = '%(a)s - %(t)s'
DIRECTORY_USE_MEDIAID_TAG_NAMES = 1
DIRECTORY_CREATE_PLAYLIST = [ 'audio', 'image' ]
DIRECTORY_ADD_PLAYLIST_FILES = [ 'audio', 'image' ]
DIRECTORY_ADD_RANDOM_PLAYLIST = [ 'audio' ]
##conf.tv######################################################################
# #
# TV Configuration #
# #
###############################################################################
plugin.remove('tv.mplayer')
plugin.activate('tv.tvtime')
plugin.activate('tv.view_line_in')
plugin_external_tuner = plugin.activate('tv.irsend_generic',
args=('/bin/echo SENDING SIGNAL'))
# args=('/usr/bin/irsend -d /dev/lircd1 SEND_ONCE tw-pace'))
TVTIME_CMD = CONF.tvtime
TVLOGOS = '/etc/freevo/logos'
#XMLTV_FILE = '/tmp/TV.xml'
TV_RECORD_DIR = '/home/video/TV-Shows'
TV_SETTINGS = 'pal composite1 europe-east /dev/video0'
TV_DRIVER = 'v4l2'
TV_DEVICE = '/dev/video0'
TV_INPUT = 1
TV_DATEFORMAT = '%e-%b'
TV_TIMEFORMAT = '%H:%M'
TV_DATETIMEFORMAT = '%A %b %d %I:%M %p'
TV_RECORDFILE_MASK = '%%m-%%d %%H:%%M %(progname)s - %(title)s'
TV_RECORD_SCHEDULE = '%s/record_schedule.xml' % FREEVO_CACHEDIR
TV_RECORD_SERVER_IP = 'localhost'
TV_RECORD_SERVER_PORT = 18001
VCR_AUDIO = (':adevice=%s' % AUDIO_DEVICE +
':audiorate=44100' +
':forceaudio:forcechan=1:' +
'buffersize=64')
TV_VIEW_SIZE = (640, 480)
TV_REC_SIZE = (640, 480)
TV_VIEW_OUTFMT = 'yuy2'
TV_REC_OUTFMT = 'yuy2'
TV_CHANNELS = [ ('south.bbc1.bbc.co.uk', 'BBC ONE', '101' ),
('south.bbc2.bbc.co.uk', 'BBC TWO', '102' ),
('bbc3.bbc.co.uk', 'BBC THREE', '106' ),
('bbc4.bbc.co.uk', 'BBC FOUR', '107' ),
('itv1.itv.co.uk', 'ITV1', '103' ),
('itv2.bbc.co.uk', 'ITV2', '113' ),
('itv3', 'ITV3', '116' ),
('channel4.com', 'Channel 4', '104' ),
('channel5.co.uk', 'five', '105' ),
('sky-one.sky.com', 'Sky One', '120' ),
('ftn', 'FTN', '123' ),
('abc1', 'ABC1', '161' ),
('living_tv', 'LivingTV', '129' ),
('uk-gold.flextech.telewest.co.uk', 'UKTV Gold', '124' ),
('uk_history', 'UKTV History', '203' ),
('uk_bright_ideas', 'UKTV Bright Ideas', '263' ),
('uk-style.flextech.telewest.co.uk', 'UKTV Style', '265' ) ]
# Still missing HallMark maybe others (music channels etc...)
VIDEO_GROUPS = [
VideoGroup(vdev = '/dev/video0',
adev = None,
input_type = 'tuner',
input_num = 6,
tuner_chan = 1,
tuner_norm = 'PAL',
tuner_type = 'external',
tuner_chanlist = TV_CHANNELS,
desc = 'Telewest-Pace',
recordable = True
)
]
##conf.movie###################################################################
# #
# Movie Configuration #
# #
###############################################################################
plugin.activate('video.details')
plugin.activate('video.dvdbackup')
VIDEO_PREFERED_PLAYER = 'xine'
VIDEO_ITEMS = [ ('Video', '/home/video') ]
VIDEO_AUTOJOIN = 1
VIDEO_SHOW_DATA_DIR = ('/home/video/data')
VIDEO_ONLY_SCAN_DATADIR = 0
XINE_VO_DEV = 'xv'
XINE_AO_DEV = 'oss'
XINE_COMMAND = '%s --hide-gui -pq -g -B --geometry %sx%s+0+0 --no-splash' % \
(CONF.xine, CONF.width, CONF.height)
XINE_ARGS_DEF = '--no-lirc --post=pp:quality=10,expand'
##conf.music###################################################################
# #
# Music Configuration #
# #
###############################################################################
plugin.activate('audio.coversearch', args=('16TKX7WD7BNF0GEVHJ82') )
plugin.activate('audio.mplayervis')
plugin.activate('audio.cdbackup')
plugin.activate('audio.playlist')
AUDIO_ITEMS = [ ('Music Collection', '/home/music/'),
'fxd/webradio.fxd' ]
AUDIO_COVER_REGEXP = 'front|-f|cover.jpg|'
AUDIO_SHOW_VIDEOFILES = True
##conf.games###################################################################
# #
# Games Configuration #
# #
###############################################################################
GAMES_ITEMS = [ ('PSone CD', '/etc/freevo/psx',
('GENERIC', '/usr/local/bin/psx-cd', '', '', [ 'psx' ] )),
('PSone IMG', '/home/psx',
('GENERIC', '/usr/local/bin/epsxe', '-nogui -loadiso', '', [ 'img','bin','iso' ] )) ]
##conf.images##################################################################
# #
# Images Configuration #
# #
###############################################################################
IMAGE_ITEMS = [ ('/home/pictures') ]
IMAGE_SUFFIX = [ 'jpg','gif','png', 'jpeg','bmp','tiff','psd' ]
IMAGE_SSHOW_SUFFIX = [ 'ssr' ]
IMAGEVIEWER_BLEND_STEPS = 10
IMAGEVIEWER_BLEND_TIME = 0.75
##conf.webserver###############################################################
# #
# Webserver Configuration #
# #
###############################################################################
plugin.activate('www')
WWW_PORT = 8080
WWW_USERS = { "admin" : "p41cd2a4B" }
WWW_GUIDE_INTERVAL = 30
WWW_GUIDE_PRECISION = 5
WWW_GUIDE_COLS = 6
WWW_STYLESHEET = 'styles/main.css'
WWW_JAVASCRIPT = 'scripts/display_prog-head.js'
##conf.weather#################################################################
# #
# Weather Configuration #
# #
###############################################################################
plugin.activate('weather', level=45)
PLUGIN_WEATHER_LOCATIONS = [ ("UKXX0091", 1, "Maidstone"),
("UKXX1695", 1, "Newcastle") ]
##conf.headlines###############################################################
# #
# Headlines Configuration #
# #
###############################################################################
plugin.activate('headlines', level=45)
HEADLINES_LOCATIONS = [ ("QDH", "http://www.qdh.org.uk/blog/rss.php"),
("nat.org", "http://nat.org/rss.xml"),
("elreg", "http://www.theregister.co.uk/excerpts.rss") ]
##conf.remote##################################################################
# #
# LIRC Remote Configuration #
# #
###############################################################################
LIRCRC = '/etc/freevo/lircrc'