jdemaeyer / brightsky

JSON API for DWD's open weather data.
https://brightsky.dev/
MIT License
290 stars 18 forks source link

Add `precipitation_type` #91

Closed jdemaeyer closed 4 years ago

jdemaeyer commented 4 years ago

Blocks: #85

jdemaeyer commented 4 years ago

Common types are none, rain, sleet, snow.

MOSMIX and Current observations also have codes for fog, hail, and thunderstorm (of which only hail is an actual precipitation type...), but those are missing in the formOfPrecipitation field in SYNOP and Recent observations.

I'm tempted to split this into two fields precipitation_type and significant_weather, where the latter will contain fog, hail, and thunderstorm (and be empty for recent/historical weather) and form the base for the icon field.