Suivi des « ateliers Aircox » de la radio (vidéos, manuels, etc) : http://public.radiocampus.be/Aircox/
Go to file
2023-03-10 15:21:22 +01:00
aircox fix search_fields 2023-03-10 15:17:42 +01:00
aircox_streamer - various __all__ 2022-12-12 00:25:57 +01:00
assets player lists display 2022-12-16 15:31:50 +01:00
docs add manual 2022-02-16 13:06:18 +01:00
instance voc 2022-10-08 13:46:30 +02:00
scripts change default aircox's dir in scripts 2022-08-16 14:02:10 +02:00
static/assets update assets 2020-05-27 17:54:40 +02:00
.gitignore playlists and podcasts on episode view 2019-08-07 22:52:34 +02:00
LICENSE fix bugs on signals 2016-11-14 13:35:15 +01:00
logo.png work on archiver 2020-05-29 16:42:31 +02:00
logo.svg work on archiver 2020-05-29 16:42:31 +02:00
manage.py merge aircox and aircox_instance 2016-10-10 15:04:15 +02:00
notes.md fix logs merge with diff algorithm 2019-08-12 04:11:04 +02:00
README.md translation 2022-05-21 16:37:11 +02:00
requirements.txt sound check 2023-01-25 13:02:21 +01:00
setup.py redesign streamer, make it sexy 2019-08-02 17:06:23 +02:00

Platform to manage a radio, schedules, website, and so on. We use the power of great tools like Django or Liquidsoap.

This project is distributed under GPL version 3. More information in the LICENSE file, except for some files whose license is indicated inside source code.

Features

  • streams: multiple random music streams when no program is played. We also can specify a time range and frequency for each;
  • diffusions: generate diffusions time slot for programs that have schedule informations. Check for conflicts and rerun.
  • liquidsoap: create a configuration to use liquidsoap as a stream generator. Also provides interface and control to it;
  • sounds: each programs have a folder for its podcast. Aircox detects updates, can run quality check, import related playlist (timestamped or position in track list). Sounds can be defined as excerpts or as archives.
  • log: keep a trace of every played/loaded sounds on the stream generator.
  • admin: admin user interface.
  • cms: content management system.

Scripts

Are included various configuration scripts that can be used to ease setup. They assume that the project is present in /srv/apps/aircox:

  • cron: daily cron configuration for the generation of the diffusions
  • supervisorctl: audio stream generation, website, sounds monitoring
  • nginx: sample config file (must be adapted)

The scripts are written with a combination of cron, supervisord, nginx and gunicorn in mind.

Installation

Dependencies

For python dependencies take a peek at the requirements.txt file, plus dependencies specific to Django (e.g. for database: mysqlclient for MySql database server).

External applications & modules:

  • liquidsoap: aircox (generation of the audio streams)
  • sox: aircox (check sounds quality and metadatas)
  • gunicorn: WSGI server to be used in production (installed along as dependency)
  • supervisord: supervisor
  • note there might be external dependencies for python's Pillow too
  • sqlite, mysql or any database library that you need to run a database, that is supported by Django (+ eventual python deps)
  • gzip: archive logs

Development dependencies:

  • npm, webpack: thoses are used for assets managements and development.

Setup environment

All scripts and files assumes that:

  • you have cloned aircox in /srv/apps/ (such as /srv/apps/aircox/README.md)
  • you have a supervisor running (we have scripts for supervisord)
  • you use gunicorn as WSGI server (otherwise, you'll need to remove it from the requirement list)

This installation process uses a virtualenv, including all provided scripts.

# setup virtual env and activate
virtualenv venv
source venv/bin/activate
# install requirements
pip install -r requirements.txt

Configuration

You must write a settings.py file in the instance directory (you can just copy and paste instance/sample_settings.py. There still is configuration required in this file, check it in for more info.

Installation and first run

Create the database if needed, and generate the tables:

# apply dependencies' migrations
./manage.py makemigrations
# create the database
./manage.py migrate --fake-initial
# create a super-user (needed in order to access the administration)
./manage.py createsuperuser

You must then configure the programs, schedules and audio streams. Start the server from this directory:

./manage.py runserver

You can access to the django admin interface at http://127.0.0.1:8000/admin.

From the admin interface:

  • create a Station
  • create all the Programs and complete their Schedules
  • defines Outputs for the streamer (look at Liquidsoap documentation for more information on how to configure it)

Once the configuration is okay, you must start the controllers monitor, that creates configuration file for the audio streams using the new information and that runs the appropriate application (note that you dont need to restart it after adding a program that is based on schedules).

If you use supervisord and our script with it, you can use the services defined in it instead of running commands manually.

More informations

There are extra informations in aircox/README.md and aircox_streamer/README.md.