A morse code twitter client for the Raspberry Pi.
- Clone the repository
cd
into the relevant directory- Run
npm install
The following instructions are for making configuration changes to the config.json
file.
- Create twitter consumer API keys and access tokens by creating a new twitter app at developer.twitter.com.
- Add these credentials to the
twitter: { credentials }
object's relevant properties. - Set the
led_pin
property to the GPIO pin number to which the LED is attached to your Raspberry Pi. - Set the
wordsPerMinute
property to the rate at which you wish messages to be encoded. - Per Twitter's Streaming Filter API, the
twitter: follow
andtwitter: track
properties are string arrays that allow one to filter the tweet stream. Array elements are processed into comma separated values.
- Connect an LED to the pin relating to the what was set at the configuration stage. N.B. I recommend connecting the LED through at least a 330Ω resistor so as not to blow either the LED or GPIO pin.
- Run
node index.js