No description, website, or topics provided.
JavaScript
Latest commit eb2af0e Jan 24, 2013 @dtsn dtsn Merge pull request #1 from badmetacoder/master
readme.md cleanup
Permalink
Failed to load latest commit information.
sounds Sound of Twitter Mar 29, 2012
framework.js Sound of Twitter Mar 29, 2012
index.html
readme.md Clarified a few things in readme.md. Jan 24, 2013
sound.css Sound of Twitter Mar 29, 2012
sound.js Sound of Twitter Mar 29, 2012

readme.md

Sound of Twitter

Use DataSift to visualize the sentiment on Twitter with lights and sounds.

You can see a demo over on YouTube or read more information on DataSift Labs

Prerequisites

You will need:

  • an API key from DataSift.

  • credit on your DataSift account (depending on the stream, this application may rapidly consume your credits).

  • access to the Salience Entities data source.

Configuration

Locate the following line in sound.js:

// connect to DataSift
DataSift.connect('<username>', '<apikey>', 'websocket.datasift.com');

Replace <username> with your DataSift username and <apikey> with your DataSift API key (look for it on your DataSift account page).

Save sound.js and open index.html in a web browser.

The default configuration of sound.js references a stream that filters for 'life'. You can create your own stream and filter for other keywords. If you do, you must change the stream hash in the call to DataSift.register():

DataSift.register('b65ceba2ba57cadc880a18bd48c2f467', {
	onMessage: function(d) { this.onMessage(d); }.bind(this),
	onError: function() {}
	});