buzzes for every new notification in Twitter. RTs, mentions, favorites, etc.,

Prasanna Venkadesh 3d9dbcf7b0 requirements, readme and image added 3 years ago
arduino aa61d79dae arduino sketch, initial commit 3 years ago
python 8f774f68ec python script listening tweets, initial commit 3 years ago
README.md 3d9dbcf7b0 requirements, readme and image added 3 years ago
buzzer.png 3d9dbcf7b0 requirements, readme and image added 3 years ago
requirements.txt 3d9dbcf7b0 requirements, readme and image added 3 years ago

README.md

Real time Twitter Notification


Consuming Twitter's Streaming API, this little python program will print the RT / Favorites / User mentions for the authenticating user in real time. Connecting Arduino along with a peizo-buzzer as shown below in the schematic diagram, will notify the user in real time with beeps.

Arduino Sketch Schema

Setup

  • Install the required python libraries from requirement.txt file

    sudo pip install -r requirements.txt
    
  • Connect your Arduino board over USB and find the name of the port it is connected to (Usually this is /dev/ttyUSB0 if there is only one device connected over USB).

  • Open and Arduino IDE; Verify & Upload the sketch arduino/buzzer_notification.ino to the board.

  • Go to http://apps.twitter.com, login and create an app by filling the form.

  • Copy the access token, access secret token, consumer key and consumer secret and use those values in the file python/twitter_livestreaming.py

Running the program

    python python/twitter_livestreaming.py /dev/ttyUSB0

You will hear beeps on the board and tweets on the screen if there are any RT / Favorites / User mentions on one of your tweets in real time.