-
-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API says it's cloudy when it's sunny #72
Comments
Hi @DonaldDuck313, my first guess was as well, that there might be something wrong with the data. As I looked closer to the coordinates, I spotted a common mistake. Lund is at 32 kilometers difference could explain the wrong weather forecast. Could you check, if the forecast is getting better with the correct decimal coordinate? I will also think about improving the API documentation, as this is a quickly overlooked error. Best, Jeff |
The app I'm making uses Android's Also at the same time as it sends a request to the API, my app also sends a request to Google's API to get the town name which says "Lund", so I'm quite sure there was nothing wrong with the location. |
I also have trouble with the WMO code. I also receive a 3 for cloudy, but it's sunny outside, maybe some high thin clouds, but not really cloudy. so maybe this codes just means it gets cloudier as described in: https://artefacts.ceda.ac.uk/badc_datadocs/surface/code.html code 4677 / 4680: 00 - Cloud development not observed or not observable but i don't know how to determine the current cloud level. maybe we need code 2700 for this: WMO code 2700: Cloud cover / amount / - cloud is indiscernible for reasons other than fog or other meteorological update it seems that you can get this values by using this options, for the hourly weather, but they are note included in the current weather option:
also the overall cloudcover is very "aggressive", i get nearly 100% but the mid and lower clouds are nearly at 0%, so maybe just using the cloudcover_low seems to correspond better to the impression of a person. But I am not a metrologist. :) |
The While it is sunny and the weather code was indicating cloudy, did you see also high cloud cover values in low, mid and. high cloud cover values? In the next months there will be additional weather forecast domains from more national weather services implemented. Depending on your area of interest, they can improve forecasts. |
@patrick-zippenfenig Yesterday i used Magdeburg (GER) as location. the current weathercode from the api was 3 and the forecast weather was reporting 100% high clouds and 0% for the others at this point in time. there were some high clouds, but all other weather sites reported the current weather as sunny e.g. https://wttr.in/ i currently use this API call, to only fetched the current_weather, but I'm not sure if this is only returning the least current forecast, or the last reported actual weather: here are some screenshots from yesterday: https://www.timeanddate.de/wetter/deutschland/magdeburg/rueckblick |
Right now, it is only returning the least recent forecast hour. In Germany updates happen every 3 hours (Data from Germany weather service DWD, model ICON-D2). I am a bit surprised that it is showing that many high clouds while it is sunny. Were there still scattered cirrus clouds? Arguably, even at full high cloud cover it could still be fair weather. In case of ICON-D2 the weather code is directly supplied by DWD as-well. I could modify the weather code in those conditions, but I am not sure if this is worsening forecast for other locations. There are some improvements coming in the next months:
Could you compare the weather forecast for the next couple of days and report back? So far I do not see a systematic error other than the forecast just being wrong from the German weather service |
Ah, now I understand. I thought current_weather was not a forecast, but the last current weather conditions. Is there currently a possibility to query the actual current weather e.g. every 3 hours and are then "outdated" values still the forecast at that time, or are they replaced by the actual weather conditions? It just surprised me that values in the past just significantly deviate from the weather conditions at that time, but if they are just the old forecast values then that's totally fine. :) |
Closing for cleanup. Feel free to reopen if you have more questions |
The API says that it's cloudy right now (July 21st 2022 at 13.00) in Lund, Sweden (latitude 55.42N, longitude 13.11E), but in reality it's sunny. If I make a request to https://api.open-meteo.com/v1/forecast?latitude=55.42&longitude=13.11&timezone=Europe/Stockholm¤t_weather=true&hourly=cloudcover,weathercode, it says that the weathercode is 3 which means it's cloudy and that the cloudcover is 100%. But in reality, it's sunny and there are hardly any clouds at all. If I look out the window, it looks like the weathercode should be 0 and the cloudcover should be less than 5%.
This is the JSON it returns:
This is not the first time this happens, it's happened before that it said it's cloudy when it's sunny, both at this location and at other locations.
The text was updated successfully, but these errors were encountered: