Pod Casting

We have a feature in the aiContact code base that allows a radio station to setup automatic uploading of Podcasts.

 

For this to work, a site using aiContact has to have an alpha type of:

broadcasts

this will enable them to be able to create broadcasts that can interlink with a Joomla Website for the purpose of podcasting.

Prerequisites

The broadcasts alpha type also needs an info type of programs.

The programs info type has presets of:

  1. Administrator Email (Emails producer when there are issues)
  2. Archive Period (in days)
  3. directory (on the local server where to find the podcasts)
  4. Joomla Audio (the slice of code to make the audio work) [See note below]
  5. Joomla Days (days of the week that podcasts are for)
  6. Joomla Page Position([Table3][1:Day][2:Date][3:Pod])
    • [Table3] how wide is that table
    • [1:Day] column 1, day of week
    • [2:Date] column 2, date of podcast
    • [3:Pod] column 3, actual podcast
  7. [4:Message] column 4 is optional, if it exists it will be looking for a *.msg to also upload.
  8. Joomla Page ID (the number in joomla for the article to edit)
  9. Producer Email (Emails producer when there are issues)
  10. Publish Period (in weeks)

 

Joomla Page

We need a page already created in Joomla.

  1. The number for this page is used above. [Joomla Page ID]
  2. The first portion of th epage can be anything you like up to the first table.
  3. We delimit around <table (the first table)
  4. So anything before the first table (<table) in the joomla article will be kept.
  5. Anything after or in the first table will be lost. And the new information put in.

Joomla Audio

{audio leftbg:ecbab6;rightbg:a7e891}Samoan News|/mp3/Samoa_News/sn[DATE].mp3{/audio}

We are using a Joomla Extension called: Content - 1Pixelout Audio Player, down-loadable from here. And more details here.

  1. When the script runs on the local server,
  2. it will take this slice of code,
  3. it will substitute the [DATE] with the date of the new podcast.
  4. It is expecting the podcast in the format of ??xx-xx-xx.mp3
  5. Where /mp3/Samoa_News is the location of the web-server the files have been uploaded to,
  6. ?? is the two letter name of the podcast, in this case sn
  7. xx-xx-xx is the date in the format yy-mm-dd,you must have two numbers for each portion.

The script

On the local server, running aiContact, not the webserver, we have set up the following varables in a configuration file.

[general]
host = web.wizbiz.net.nz #fqdn of the webserver
hostadmin = This e-mail address is being protected from spambots. You need JavaScript enabled to view it #server admin email address
txserver = link.samoacapitalradio.co.nz #fdqn of the sending server
txrootdir = /zone/public/news #dir where the podcast directories are
txadmin = This e-mail address is being protected from spambots. You need JavaScript enabled to view it #email address of the sending admin
rxserver = www.samoacapitalradio.co.nz #fqdn of the receiving server
rxuser = somename #username to get in to the webserver with ssh/rsync
rxpasswd = somepassword #password to get in to the webserver with ssh/rsync
rxrootdir = /home/someuser/public_html/mp3 #dir on webserver where mp3s will live
rxport = -p 22 #webserver receiving port for ssh/rsync
rxkey = -i /home/someuser/.ssh/thishost-rsync-key #local locate of the public key for www access
rxadmin = This e-mail address is being protected from spambots. You need JavaScript enabled to view it #email address of the receiving admin
wwwserver = www.xxxx.co.nz #fqdn of the website

[mysql]

# These are the setting for aiContact to access it's local database
db = aicontact
user = aicontact
passwd = apasswd
host = localhost

 

# These are the setting for aiContact to access the joomla database on the remote webserver
Rdb = jo151
Ruser = jo151
Rpasswd = apasswd
Rhost = www.xxxx.co.nz



##rsync -avz -e "ssh -p 2022" This e-mail address is being protected from spambots. You need JavaScript enabled to view it :/public_html/mp3 /zone/public/news/

#This is the command line to upload files from the local server to the remote webserver.

Notes that need to be added to this faq

  1. How to set up rsync over ssh between the local server and the remote webserver.
  2. Defining how the script works that updates the webserver with the .mp3 file and edits the joomla article.