-
Notifications
You must be signed in to change notification settings - Fork 8
/
autoradio.cfg
165 lines (120 loc) · 5.04 KB
/
autoradio.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
[autoradiod]
#player to use (AutoPlayer, xmms, audacious)
player="AutoPlayer"
#directory where write new playlists generated by autoradiod
playlistdir="spots"
# path to working file
logfile="/tmp/autoradiod.log"
errfile = '/tmp/autoradiod.err'
lockfile = "/tmp/autoradiod.lock"
timestampfile = "/tmp/autoradiod.timestamp"
# host xmms is running on
xmms_host="localhost"
#backward and forward time intervat to check for schedule conflict
minelab=180
# tollerance time interval to recovery schedule not done ( backward time when start autoradiod )
# to adjust the programming you have to make changes minsched minutes before
minsched=5
locale="C.UTF-8"
#user = pat1
#group = pat1
#
# [[ env ]]
# DISPLAY=':0.0'
# LANG=$locale
[autoradioweb]
logfile = '/tmp/autoradioweb.log'
errfile = '/tmp/autoradioweb.err'
lockfile = '/tmp/autoradioweb.lock'
#user = myuser
#group = mygroup
#port = '8888'
# the web player can only manage ogg vorbis files at 44100Hz: enable or disable check on uploads
permit_no_playable_files = False
# tags help in the web view: enable or disable check on uploads
# if file do not have tags will be rejected
# this enable or disable check for 44100Hz sample rate compatibility for enclosure
require_tags_in_enclosure = True
[django]
DEBUG = True
TEMPLATE_DEBUG = True
FILE_UPLOAD_PERMISSIONS = 420
# Make this unique, and don't share it with anybody.
SECRET_KEY = random-string-of-ascii
#SESSION_COOKIE_DOMAIN = autoradio
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# If running in a Windows environment this must be set to the same as your
# system time zone.
TIME_ZONE = 'Europe/Rome'
# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en-us'
#LANGUAGE_CODE = 'it-it'
SITE_ID = 1
# If you set this to False, Django will make some optimizations so as not
# to load the internationalization machinery.
USE_I18N = True
# directories where Django looks for translation files.
LOCALE_PATHS='locale',
ADMINS=Your Name [email protected],
MANAGERS=Your Name [email protected],
# Absolute filesystem path to the directory that will hold user-uploaded files.
# set to "%s" special value to insert current directory
MEDIA_ROOT ="%s/media/"
#URL that handles the media served from MEDIA_ROOT, used for managing
#stored files. It must end in a slash if set to a non-empty value. You
#will need to configure these files to be served in both development
#and production environments.
MEDIA_URL="/media/"
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
TEMPLATE_DIRS = "%s/templates",
#The absolute path to the directory where collectstatic will collect static files for deployment
STATIC_ROOT = "%s/static"
#URL to use when referring to static files located in STATIC_ROOT.
STATIC_URL = '/static/'
# set to true if django have to serve static file
# set to false if you use other web server like apache
SERVE_STATIC=True
# The URL where requests are redirected for login, especially when
# using the login_required() decorator.
LOGIN_URL='/login/'
[database]
DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
DATABASE_NAME = 'autoradio.sqlite3' # Or path to database file if using sqlite3.
#DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
#DATABASE_NAME = 'autoradio' # Or path to database file if using sqlite3.
#DATABASE_USER = 'autoradio' # Not used with sqlite3.
#DATABASE_PASSWORD = 'autoradio' # Not used with sqlite3.
#DATABASE_HOST = 'autoradio' # Set to empty string for localhost. Not used with sqlite3.
#DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
[autoplayer]
#user = myuser
#group = mygroup
logfile = '/tmp/autoplayer.log'
errfile = '/tmp/autoplayer.err'
lockfile = '/tmp/autoplayer.lock'
# Add an address that the dbus-daemon should listen on. The address is in the
# standard D-Bus format that contains a transport name plus possible
# parameters/options.
# Example: <listen>unix:path=/tmp/foo</listen>
# Example: <listen>tcp:host=localhost,port=1234</listen>
# http://stackoverflow.com/questions/10158684/connecting-to-dbus-over-tcp
#busaddress='tcp:host=localhost,port=1234'
#audiosink = autoaudiosink # set to autoaudiosink / jackaudiosink
[autoradiodbus]
#user = myuser
#group = mygroup
logfile = '/tmp/autoradiodbus.log'
errfile = '/tmp/autoradiodbus.err'
lockfile = '/tmp/autoradiodbus.lock'
conffile = 'dbus-autoradio.conf'
[jackdaemon]
user = autoradio
group = audio
logfile = '/tmp/jackdaemon.log'
errfile = '/tmp/jackdaemon.err'
lockfile = '/tmp/jackdaemon.lock'