One Dutch Song a Day
I made a nerdy present for my girlfriend. I give her a Dutch song every day!
The way it works is through an RSS-feed
. For the newbs: that’s how we
subscribed to news before Google, Facebook or Apple told us what we should
read.
My server runs a Cron-job
every day at 6 AM, which randomly picks a file from a
‘songs’-folder, adds the date as a UNIX-timestamp to the filename, moves the
file to a ‘published’-folder and then makes an RSS-feed out of all the files in
this folder.
So my songs folder looks like this:
de_dijk_binnen_zonder_kloppen
nielson_sexy_als_ik_dans
de_jeugd_van_tegenwoordig_sterrenstof
The published folder looks like this:
1433908861-de_dijk_binnen_zonder_kloppen
1433563261-nielson_sexy_als_ik_dans
1433736061-de_jeugd_van_tegenwoordig_sterrenstof
The files internally look as follows:
Band-name
Song-title
Youtube link
And from this an RSS-feed is generated.
Since everything works from Dropbox, I can add new songs virtually everywhere. And the generated RSS-feed is accessible even if my server is down.