This Python application, the 30-Day Weather Dashboard, efficiently retrieves weather data for multiple locations via the OpenWeather API and securely stores it in an AWS S3 bucket. This project showcases best practices in API interaction, cloud resource management, and secure credential handling.
Key Features:
Technology Stack:
boto3
(AWS interaction), requests
(HTTP requests), dotenv
(environment variable management)Project Structure:
weather-dashboard/
src/
__init__.py
weather_dashboard.py
tests/
data/
.env
.gitignore
requirements.txt
src/weather_dashboard.py
: Core script for data fetching and AWS S3 interaction..env
: Securely stores API keys and AWS bucket details.requirements.txt
: Lists project dependencies.Setup Guide:
Prerequisites:
Steps:
git clone https://github.com/onlyfave/30days-weather-dashboard.git && cd 30days-weather-dashboard
pip install -r requirements.txt
.env
with your API key and AWS bucket information (example below):OPENWEATHER_API_KEY=YOUR_OPENWEATHER_API_KEY
AWS_BUCKET_NAME=your-weather-bucket
AWS_DEFAULT_REGION=your-aws-region
aws configure
.python3 src/weather_dashboard.py
Visuals:
Lessons Learned:
Future Improvements:
Acknowledgements:
Thanks to the DevOps and Python communities, OpenWeather, and AWS.
Contact:
LinkedIn: Onyeneke Favour GitHub: onlyfave
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3