-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LDT-51: Implementation of Third-Party API for Weather Information.
- Loading branch information
Showing
4 changed files
with
20 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
# Integrate Third-Party API for Weather Data (Programmatically, Guzzle) | ||
# Integrate Third-Party API for Weather Information | ||
|
||
## Description: | ||
Help our visitors plan as per weather conditions. Fetch weather data from a third-party API and display it on the site’s contact us page using a custom block. | ||
Improve the experience of visitors to our office by offering real-time weather updates on the homepage of our website. This feature enables our visitors to effectively plan their activities according to the prevailing weather conditions. | ||
|
||
## Acceptance Criteria: | ||
- Weather data is updated every hour. | ||
- Display includes temperature, wind, and precipitation. | ||
- Store data in cache and create a block to display it. | ||
- Use third party Weather API to fetch the weather details | ||
- On home page show weather details like temperature, wind and precipitation | ||
- Implement caching to retain weather data for a duration of one hour. | ||
- Implement robust error handling to manage failed API requests or data parsing errors, ensuring the site’s front page remains functional | ||
|
||
## Solution | ||
Course Link: | ||
Troubleshoot: | ||
Raise Issue: https://github.com/axelerant-trainings/project-usecases/issues/new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
Drupal/modules/custom/weather/templates/weather-display.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters