Skip to content
Snippets Groups Projects

Engine Clock

Aura Engine Clock is a web application for displaying the studio clock of the Aura Radio Software Suite.

Customization

The project allows to be configured in two ways:

  • During build-time using .env configuration
  • During run-time by modifying the attributes of the Web Component.

Configure using a dotenv file

Copy config/default-sample.env to .env in the project root and modify the given properties. In order to apply these configuration changes a build is required.

NAME="Studio Clock"
LOGO="https://gitlab.servus.at/aura/meta/-/raw/master/images/aura-logo.png"
LOGO_SIZE="100px"
API_URL="http://localhost:8008/api/v1/"
UNKNOWN_TITLE="Unknown Title"
NO_CURRENT_TIMESLOT="Right now, there's no show playing"
NO_NEXT_TIMESLOT="Nothing scheduled next"
PLAY_OFFSET=3
CSS=""

Configure the Web Component

Modify the index.html created by the build process (see next step). Using this approach you are able to override any configurations already performed during the build.

<aura-clock
    name="Orange o94"
    logo="https://o94.at/themes/custom/radio_orange/logo1.png"
    logosize="180px"
    api="http://localhost:8008/api/v1/"
    css="/css/o94.css"
    unknowntitle="Unbekannter Titel"
    nocurrenttimeslot="Derzeit keine Sendung"
    nonexttimeslot="Keine weiteren Sendungen"
    playoffset=3>
</aura-clock>

Build and deploy for production

Build the bundle for deployment

./run.sh build

Copy the bundle files in public/build/ to some web server accessible by your studio computers.

Development

Requirements

Getting started

Install the NPM requirements

npm install

Then start the development server using Rollup

./run.sh

Navigate to localhost:5000. You should see your app running. Edit a component file in src, save it, and reload the page to see your changes.

By default, the server will only respond to requests from localhost. To allow connections from other computers, edit the sirv commands in package.json to include the option --host 0.0.0.0.

About

Aura Engine Clock is a web application for displaying the studio clock of the Aura Radio Software Suite.

This project is based on Svelte.

AURA stands for Automated Radio and is a swiss army knife for community radio stations. Beside the Engine it provides Steering (Admin Interface for the radio station), Dashboard (Collaborative scheduling and programme coordination), Tank (Audio uploading, pre-processing and delivery). Read more in the Aura Meta repository or on the specific project pages.

Steering Dashboard Tank Engine
Engine API
Engine Clock