Add initial implementation for weather data retrieval and storage

- Create .env file for environment variables
- Add .gitignore to exclude virtual environment
- Implement weatherstack.py to fetch weather data from API and store it in MongoDB
- Define tasks for data retrieval, processing, and storage using Prefect
This commit is contained in:
2024-11-29 00:58:25 +01:00
parent be4eced94b
commit 478e250368
4 changed files with 103 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
API_URL=http://api.weatherstack.com/current
API_KEY=d46d7419401ae4d339037fd5be77e5d7
MONGO_URI=mongodb://admin:iO6RQO3xPoXvpm7BXUKZAjhijYLssQ@10.8.0.3:27017/
DB_NAME=weather_data
COLLECTION_NAME=current_weather