Stream tweet events and convert them to pixel data for a Spark Internet Button!
- Clone this repository and run
npm install
inside the root of the project directory. - Configure your Twitter API keys (see below).
- Run
npm start
.
You must create your own application to use the API. Please do so by going to the Twitter Application Management page.
- CONSUMER_KEY
- CONSUMER_SECRET
- ACCESS_TOKEN_KEY
- ACCESS_TOKEN_SECRET
You need all four of these to run the twitter stream included in npm start
. Configuration options are detected via nconf
, and you may specify them in your config.json file (placed at the root of the project directory):
{
"consumer_key": "",
"consumer_secret": "",
"access_token_key": "",
"access_token_secret": "",
"spark_username": "",
"spark_password": ""
}
The easiest way to flash the firmware is to use the Spark CLI to directly flash the firmware binary to your Core:
spark flash --usb ./firmware/bin/firmware.bin
Just use npm to start the server!
npm start