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:
- Administrator Email (Emails producer when there are issues)
- Archive Period (in days)
- directory (on the local server where to find the podcasts)
- Joomla Audio (the slice of code to make the audio work) [See note below]
- Joomla Days (days of the week that podcasts are for)
- 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
- [4:Message] column 4 is optional, if it exists it will be looking for a *.msg to also upload.
- Joomla Page ID (the number in joomla for the article to edit)
- Producer Email (Emails producer when there are issues)
- Publish Period (in weeks)
Joomla Page
We need a page already created in Joomla.
- The number for this page is used above. [Joomla Page ID]
- The first portion of th epage can be anything you like up to the first table.
- We delimit around <table (the first table)
- So anything before the first table (<table) in the joomla article will be kept.
- 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.
- When the script runs on the local server,
- it will take this slice of code,
- it will substitute the [DATE] with the date of the new podcast.
- It is expecting the podcast in the format of ??xx-xx-xx.mp3
- Where /mp3/Samoa_News is the location of the web-server the files have been uploaded to,
- ?? is the two letter name of the podcast, in this case sn
- 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
- How to set up rsync over ssh between the local server and the remote webserver.
- Defining how the script works that updates the webserver with the .mp3 file and edits the joomla article.