Tweets the current show title when has just started and the next show.
Only tweets when the show changes.
Does checking to avoid multiple tweets and over thength tweets (trimes them if needed)
Easily alterable.
NOTES:
The code writes two small tracking files into /usr/share/airtime/public/airtime-show-twittercaster/ so make sure the folder is writeable by the owner of the cron job.
REQUIRES PHP CLI to be installed (It probably is).
INSTRUCTIONS:
Put the whole folder in /usr/share/airtime/public/
Edit the top lines of tweet.php to match your credentials.
Create a new cron job like this that fires every 5 minutes
I think I followed exactly your instructions but I received email from CRON with errors :/ ---------------------------------------------------------------------
Count Message Full: 36PHP Parse error: syntax error, unexpected '[' in /usr/share/airtime/public/airtime-show-twittercaster/src/TwitterOAuth.php on line 129