mirror of
https://github.com/PranshulGG/WeatherMaster.git
synced 2026-10-22 02:52:37 -05:00
update nws conditions
This commit is contained in:
1 parent
a70551086e
commit
8980ece8df
2 files changed
+11
-7
No files matched your search
+5
-1
@@ -5,7 +5,11 @@ import com.pranshulgg.weather_master_app.R
|
||||
import com.pranshulgg.weather_master_app.core.model.domain.weather.WeatherDaily
|
||||
|
||||
|
||||
// TODO: ADD SLEET, HAIL, WINDY, BLIZZARD, TORNADO, HURRICANE
|
||||
// TODO: WINDY, BLIZZARD, TORNADO, HURRICANE
|
||||
/**
|
||||
* SLEET AND HAIL is supported but not mapped to many sources yet
|
||||
* TODO: FIX IT
|
||||
*/
|
||||
enum class WeatherCondition {
|
||||
CLEAR_SKY,
|
||||
OVERCAST,
|
||||
|
||||
+6
-6
@@ -26,12 +26,12 @@ object NwsWeatherConditionMap {
|
||||
"wind_ovc" -> WeatherCondition.OVERCAST
|
||||
"snow" -> WeatherCondition.SNOW
|
||||
"rain_snow" -> WeatherCondition.LIGHT_SNOW
|
||||
"rain_sleet" -> WeatherCondition.LIGHT_SNOW
|
||||
"snow_sleet" -> WeatherCondition.LIGHT_SNOW
|
||||
"fzra" -> WeatherCondition.RAIN
|
||||
"rain_fzra" -> WeatherCondition.RAIN
|
||||
"snow_fzra" -> WeatherCondition.SNOW
|
||||
"sleet" -> WeatherCondition.SNOW
|
||||
"rain_sleet" -> WeatherCondition.SLEET
|
||||
"snow_sleet" -> WeatherCondition.SLEET
|
||||
"fzra" -> WeatherCondition.HAIL
|
||||
"rain_fzra" -> WeatherCondition.HAIL
|
||||
"snow_fzra" -> WeatherCondition.HAIL
|
||||
"sleet" -> WeatherCondition.SLEET
|
||||
"rain" -> WeatherCondition.RAIN
|
||||
"rain_showers" -> WeatherCondition.RAIN
|
||||
"rain_showers_hi" -> WeatherCondition.RAIN
|
||||
|
||||
Reference in new issue
Block a user