WeatherAPI.com

פרמיום
על ידי WeatherAPI.com | מְעוּדכָּן 16 giorni fa | Weather
פּוֹפּוּלָרִיוּת

9.9 / 10

חֶבִיוֹן

195ms

רמת שירות

100%

Health Check

N/A

חזרה לכל הדיונים

Mist condition comes only for current hour and rest of the values remain clear

Rapid account: Srirangsathyan
srirangsathyan
6 mesi fa

When using forecast API for locations in India I found the API sometimes gives Mist condition only in the current hour object ( also in current property) but once the hour passes the Mist moves to the next running hour and the original hour changes to clear. What could be the reason for this?

I have had to specifically handle the case of mist in my case, let me know if there is anything particular I am missing

Rapid account: Srirangsathyan
srirangsathyan Commented 5 mesi fa

Where you able to check?

Rapid account: Srirangsathyan
srirangsathyan Commented 6 mesi fa

This is an example URL where I am seeing this issue

https://weatherapi-com.p.rapidapi.com/forecast.json?days=1&q=Delhi,India&dt=2023-11-09

I have saved responses when the API was hit at 10am IST and 12pm IST.

At 10AM:
https://file.io/nEIHDzIWs0X3

At 12PM:
https://file.io/uAkFglzYbfXQ

If you go through you will find at 10 am ->
10am hour condition: Overcast
12pm hour condition: Clear

At 12pm the api response had ->
10am hour condition: Clear
12pm hour condition: Overcast

Also the property “cloud” in both these hour objects with condition Overcast is 0

Thank you for your help.

Rapid account: Weatherapi
weatherapi Commented 6 mesi fa

For which location is it happening? Please provide your Request URL to try and recreate the issue at our end.

Thanks

Rapid account: Srirangsathyan
srirangsathyan Commented 6 mesi fa

On further inspection I found a property “cloud” in the response having value 0 even when the condition is “Overcast” or "Mist"
Is there a way I can identify how the condition is being classified based on the various parameter values for an hour?

הצטרף לדיון - הוסף תגובה למטה:

התחבר / הירשם כדי לפרסם תגובות חדשות