The API folder contains modules responsible for interacting with external APIs, processing data, and managing location-specific configurations. Below is a detailed overview of the files and their respective functions:
This module handles the retrieval of 12-hour temperature forecasts for specified locations using the AccuWeather API.
_12_hour_temperature_forecast
This module manages the storage and retrieval of location keys, which are essential for interacting with the AccuWeather API.
-
get_location_keys -
store_location_keys -
load_location_keys
- Place your API keys and configuration in the appropriate environment or configuration files.
- Use
data_fetcher.pyto fetch temperature forecasts for specific locations. - Use
key_processor.pyto manage and retrieve location keys efficiently.
- Ensure that your AccuWeather API key is active and has the necessary permissions.
- Stored location keys should be updated periodically to reflect changes or additions.