Weather condition
See original GitHub issueThis is great! I was always wondering how to make DWD data actually usable. It’s a shame they either can’t (weird format) or won’t (legal issues). Although the Warnwetter App seems to have a proper API, so it’s probably the latter.
I’m currently dreaming up a home-assistant integration for brightsky and I’m missing a string describing the weather condition. This is an excerpt from the darksky component:
MAP_CONDITION = {
"clear-day": "sunny",
"clear-night": "clear-night",
"rain": "rainy",
"snow": "snowy",
"sleet": "snowy-rainy",
"wind": "windy",
"fog": "fog",
"cloudy": "cloudy",
"partly-cloudy-day": "partlycloudy",
"partly-cloudy-night": "partlycloudy",
"hail": "hail",
"thunderstorm": "lightning",
"tornado": None,
}
Is that something that’s available in the data, or is there only numeric data?
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Weather Underground: Local Weather Forecast, News and ...
Weather Underground provides local & long-range weather forecasts, weather reports, maps & tropical weather conditions for locations worldwide.
Read more >National Forecast Maps - National Weather Service
Short range forecast products depicting pressure patterns, circulation centers and fronts, and types and extent of precipitation.
Read more >Washington, DC Weather Forecast and Conditions
Weather Today in Washington, DC ; High / Low. 24°/16° ; Wind. 8 mph ; Humidity. 42% ; Dew Point. -8° ; Pressure....
Read more >Richmond, VA Weather Forecast and Conditions | Weather.com
Weather Today in Richmond, VA ; High / Low. 25°/15° ; Wind. 15 mph ; Humidity. 50% ; Dew Point. -6° ; Pressure....
Read more >Philadelphia, PA Weather Forecast and Conditions
Today's and tonight's Philadelphia, PA weather forecast, weather conditions and Doppler radar from The Weather Channel and Weather.com.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Aalrighty, weather records in the response will now contain an
icon
field holding one of the following values:clear-day
clear-night
partly-cloudy-day
partly-cloudy-night
cloudy
fog
wind
rain
sleet
snow
hail
thunderstorm
Dropping a couple of thoughts into my pensieve after half a day of plowing through raw data and DWD specs:
icon
field, which can currently take the valuessnow
,sleet
,rain
,wind
,fog
,cloudy
,partly-cloudy-day
,partly-cloudy-night
,clear-day
andclear-night
.thunderstorm
,hail
, andtornado
, which they mention they might add in the future but never did.clear-day
andclear-night
into justclear
(and likewise forpartly-cloudy
) to avoid having to deal with sunrise and sunset times.snow
sleet
rain
wind
fog
cloudy
partly-cloudy
clear
icon
field should be consistent across all observation types. This rules out directly reading any existing “present weather” field from the raw data, because such fields only exists for current and forecasted weather, but not for historical weather.precipitation_type
to all our weather records we should be able to map our numerical weather parameters into one of the eight states with a simple decision tree:ww
) in the MOSMIX data,formOfPrecipitation
in the SYNOP data,present_weather
in thecurrent
data,WWTR
in therecent
/historical
precipitation data.WWTR
field is set tonull
every third hour in the recent/historical data (which is explained as “following SYNOP standard” but seems odd because it is available in thecurrent
data), we will need to come up with a “fill from previous/next hour” logic and clearly document that this field is not taken 1-to-1 from the raw DWD data.I’m hoping to make significant progress on this tomorrow but don’t wanna promise too much.
@mweinelt @EricMc1289 How annoying is the merging of
clear-day
andclear-night
intoclear
for your use cases?