A Hubot script to interact with an Airtime webradio API.
Airtime is a free and open source radio automation software (http://www.sourcefabric.org/en/airtime/)
Add dependency to Hubot's package.json
:
{
...
"dependencies": {
...
"hubot-airtime": "latest"
}
}
Include package in Hubot's external-scripts.json
:
["hubot-airtime"]
HUBOT_AIRTIME_URL # URL to Airtime installation (ie.: http://airtime.myhost.com)
To launch hubot locally with the correct environment variable value:
HUBOT_AIRTIME_URL=http://airtime.myhost.com ./bin/hubot
To add the correct environment variable to an existing and working Heroku deployment, you'll issue something like:
heroku config:add HUBOT_AIRTIME_URL=http://airtime.myhost.com
hubot airtime now # Display what's currently broadcasted on this Airtime installation
hubot airtime next track # Displays what will be the next track to be broadcasted on Airtime
hubot airtime next show # Displays what will be the next show broadcasted on Airtime
hubot airtime previous track # Displays what has just been broadcasted on Airtime