A project that collects the current weather condition of Baku and stores it in a log file. The weather data is collected from a trusted weather API and stored in both JSON and CSV formats, as well as a log file. The script is set to run every hour using GitHub Actions.
- Clone repository
git clone https://github.com/test2user-aqil/wdc_baku
- Navigate to the project directory
cd wdc_baku
- Install the required libraries
pip install -r requirements.txt
-
Set the API key as an environment variable in GitHub Actions
-
Push the code to your GitHub repository
The weather data collected includes the following information:
- Temperature (in Celsius)
- Description (e.g. "clear sky", "light rain")
- JSON
- CSV
- Log
The weather API used in this project provides limited free requests per day. If you plan on using the script frequently, it is recommended to sign up for a paid plan to ensure a steady supply of weather data.
The script is set to run every hour using GitHub Actions. You can adjust the schedule by modifying the workflow file in the .github/workflows
directory.
If you would like to contribute to the development of wdc_baku, feel free to submit a pull request or open an issue on the repository