WeatherBot
Twitter bot that provides weather information. This bot generates an image with the weather forecast of a city entered by the user through a tweet.
Setup
Needed Libraries
To create this project we used multiple libraries. The main ones where.
PIL
> pip install Pillow
Numpy
> pip install numpy
Tweepy
> pip install tweepy
API Key
OpenWeatherAPI Get your OpenWeather API key here
Twitter Developer Apply for your twitter API key here
Files
- Weathergt.py - This is the main file, includes all the weather info, generates the output image and post it on twitter.
- ImageTest.py - Includes the basic layout of the output image.
- botTest.py - Basic code, includes all the bot code without weather info.
- forecastDataTest - Incluedes all the weather data and forecast info.
- LastTweetId.txt - This file contains the last ID that Weathergt.py has seen.
- temp.png - Sample output image.
- twitter.png - Twitter screenshot.
Folders
- Fonts - Contains all the fonts used by the project.