ph_lyrics update mechanism

A few weeks ago I wrote an application than randomly tweets lyrics by Peter Hammill the twitter account is @ph_lyrics and there is a website at www.ninelocks.com/ph_lyrics

During the testing phase the application sent a random songline every 3 hours which was too often and too regular, so the mechanism has been changed.

This is currently undergoing some testing and should go live in the next few days. With the new version there should now be no more than 1 tweet per day and that will occur at a random time throughout the day.

For those interested in the logic….

The main script is called by a cron job every 10 minutes.

If it has been > 24 hours since the last tweet there is a 1 in 10 chance a tweet will be sent.

This entry was posted in computing, linux, music and tagged , , , . Bookmark the permalink.

Comments are closed.