Giter Site home page Giter Site logo

adamatic's Introduction

adamatic

Radio advert builder

Uses a DB and filesytem to string flac audio files together for playing.

This is currently very specific to CoastFM

  1. Create your audio ads.
  2. Update the DB with the ad details (Use the webscripts if you like)
  3. Create a cron job to run create_ad.pl.

Install

  1. Create a database (if you don't use ads then you need to alter the connection details)
  2. Currently uses ads_o and ads_r) ads_o is the owner and has delete/update/select/insert where required to tables ads_r has read only access to required tables This is a starting attempt at restricting access.
  3. Create the schema using schema.sql (mysql < schema.sql)

Basic premise. Our radio station wants to sell ads to customer and restict the number of plays a day. The number of plays a day are in our core hours (settings table) Ads can be any length, ad slot length can be any length. adamatic appends flac file together to make the required total ad length. It attempts to spread the ads out over the core hours. IE: If you have core hours of 0700 to 2200 (15 hours) and you sell 5 plays a day to customer, it tries to spread the ads out through the day in this case every 3 hours. There is also a genre, IE "Pubs" this attemps to stop two pub ads playing in the same ad slot, obviously two many of the same type and you will have a problem. (we have not got there yet) If there are no ads to play in an ad slot then it can play an internal ad. IE "You can advertise here contact ths station on ...."

Warning: At this time there is no password protection. We use it behind our filewall so it is NOT exposed the outside world and I would not expose it in its current form to the outside world. Since users would have access to the actual playout systems it was deemed unnecessary.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.