Skip to content

Stream tweet events and convert them to pixel data for a Spark Internet Button!

License

Notifications You must be signed in to change notification settings

alex-spark/pixel-tweets

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pixel-tweets

Stream tweet events and convert them to pixel data for a Spark Internet Button!

Usage

  1. Clone this repository and run npm install inside the root of the project directory.
  2. Configure your Twitter API keys (see below).
  3. Run npm start.

Configuration

Keys & Secrets

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):

Configuration file format

{
	"consumer_key": "",
	"consumer_secret": "",
	"access_token_key": "",
	"access_token_secret": "",
  "spark_username": "",
  "spark_password": ""
}

Installation

Firmware

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 

JavaScript

Just use npm to start the server!

npm start

About

Stream tweet events and convert them to pixel data for a Spark Internet Button!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 85.6%
  • JavaScript 14.4%