Description
The Rainfall metric in the Live Weather Report consistently displays 0 mm for every location analyzed, even when the selected city is experiencing rainfall in real-world weather conditions.
I tested the application with multiple cities (including Palghar, Mumbai, and Pune) and observed that while other weather parameters such as Temperature, Humidity, and Wind Speed are updated correctly, the Rainfall value always remains 0 mm.
Since Climate Shield performs live weather analysis for climate risk assessment, displaying incorrect rainfall data can lead to inaccurate weather reports and potentially affect the reliability of the generated climate risk analysis.
To Reproduce
- Open the Climate Shield application.
- Enter any valid city name (for example: Palghar, Mumbai, or Pune).
- Click on Analyze Climate Risk.
- Wait for the weather analysis to complete.
- Navigate to the Live Weather Report section.
- Observe the Rainfall card.
Expected behavior
The Rainfall field should display the actual precipitation value returned by the weather service for the selected location.
For locations where rainfall is currently occurring, the displayed value should be greater than 0 mm.
The rainfall information should remain consistent with the rest of the live weather data (Temperature, Humidity, Wind Speed, etc.).
Actual behavior
The application always displays:
regardless of the selected city.
This behavior persists across multiple locations that are known to be receiving rainfall at the time of testing.
Screenshots (if applicable)
Attached below is a screenshot demonstrating the issue.
(Attach your screenshot here.)
Checklist
Additional context
Tested Locations
- Palghar, Maharashtra
- Mumbai, Maharashtra
- Pune, Maharashtra
Observations
- ✅ Temperature updates correctly.
- ✅ Humidity updates correctly.
- ✅ Wind Speed updates correctly.
- ❌ Rainfall always displays 0 mm.
Possible cause
This issue could be caused by one of the following:
- The weather API's rainfall/precipitation field is not being fetched.
- The rainfall value is not being parsed correctly before rendering.
- The frontend is defaulting to 0 mm whenever the precipitation field is missing.
- The API response contains rainfall data, but the UI does not display it correctly.
Because rainfall is an important parameter for climate and disaster risk assessment, this issue may affect the accuracy of the generated climate analysis.
Description
The Rainfall metric in the Live Weather Report consistently displays 0 mm for every location analyzed, even when the selected city is experiencing rainfall in real-world weather conditions.
I tested the application with multiple cities (including Palghar, Mumbai, and Pune) and observed that while other weather parameters such as Temperature, Humidity, and Wind Speed are updated correctly, the Rainfall value always remains 0 mm.
Since Climate Shield performs live weather analysis for climate risk assessment, displaying incorrect rainfall data can lead to inaccurate weather reports and potentially affect the reliability of the generated climate risk analysis.
To Reproduce
Expected behavior
The Rainfall field should display the actual precipitation value returned by the weather service for the selected location.
For locations where rainfall is currently occurring, the displayed value should be greater than 0 mm.
The rainfall information should remain consistent with the rest of the live weather data (Temperature, Humidity, Wind Speed, etc.).
Actual behavior
The application always displays:
regardless of the selected city.
This behavior persists across multiple locations that are known to be receiving rainfall at the time of testing.
Screenshots (if applicable)
Attached below is a screenshot demonstrating the issue.
Checklist
Additional context
Tested Locations
Observations
Possible cause
This issue could be caused by one of the following:
Because rainfall is an important parameter for climate and disaster risk assessment, this issue may affect the accuracy of the generated climate analysis.