Skip to content

This Twitter bot responds to @mentions with weather forecast data from OpenWeatherMap and selectively retweets interesting tweets from promising weather related accounts. Tweet your zipcode to @tweathertwo to try.

Notifications You must be signed in to change notification settings

brandoniscool/tweather2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tweather 2.0

This Twitter bot is alive! It intelligently responds to @mentions with weather related information and selectively retweets interesting things from popular weather related accounts. Try things like: "What's the weather in London?" or "When will the sun set in San Francisco today?"

<img style="display:block;margin:0 auto;"src="http://i.imgur.com/ACxHvhk.jpg" width="400px"/>


##Preparation and installation

####Install Node.js

Node.js

####API Keys

Create a Twitter Application and generate application keys.

Create an Wolfram Alpha account and generate an API Key.

You will have to update config.js with the keys obtained from Twitter Dev and OpenWeatherMap.

####Downloading, Installing and Running Locally

Clone GitHub repo:

git clone https://github.com/brandoniscool/tweather2

Change directory, install the node module dependencies, start bot:

cd tweather2
npm install
npm start

##Deploying to Amazon's EC2

  1. Create an EC2 instance.
  2. Generate and download private key file.
  3. SSH into your instance.
  4. SFTP copy files into your instance.
  5. NPM install forever to allow your scripts to run continuously.

##Resources

About

This Twitter bot responds to @mentions with weather forecast data from OpenWeatherMap and selectively retweets interesting tweets from promising weather related accounts. Tweet your zipcode to @tweathertwo to try.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published