1
0
mirror of https://github.com/Toxblh/MTMR.git synced 2026-01-09 16:48:38 +00:00

YandexWeather: update matching array with missing forecast ("Drizzle") (#414)

This commit is contained in:
Vladimir Tolstikov 2021-08-17 18:01:07 +04:00 committed by GitHub
parent d270a7bbcd
commit 211ca4be32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,8 +13,35 @@ class YandexWeatherBarItem: CustomButtonTouchBarItem, CLLocationManagerDelegate
private let activity: NSBackgroundActivityScheduler
private let unitsStr = "°C"
private let iconsSource = [
"Ясно": "☀️", "Малооблачно": "🌤", "Облачно с прояснениями": "⛅️", "Пасмурно": "☁️", "Небольшой дождь": "🌦", "Дождь": "🌧", "Ливень": "", "Гроза": "🌩", "Дождь с грозой": "", "Дождь со снегом": "☔️", "Небольшой снег": "❄️", "Снег": "🌨", "Туман": "🌫",
"Clear": "☀️", "Mostly clear": "🌤", "Partly cloudy": "⛅️", "Overcast": "☁️", "Light rain": "🌦", "Rain": "🌧", "Heavy rain": "", "Storm": "🌩", "Thunderstorm with rain": "", "Sleet": "☔️", "Light snow": "❄️", "Snow": "🌨", "Fog": "🌫"
"Ясно": "☀️",
"Малооблачно": "🌤",
"Облачно с прояснениями": "⛅️",
"Пасмурно": "☁️",
"Небольшой дождь": "🌦",
"Морось": "💦",
"Дождь": "🌧",
"Ливень": "",
"Гроза": "🌩",
"Дождь с грозой": "",
"Дождь со снегом": "☔️",
"Небольшой снег": "❄️",
"Снег": "🌨",
"Туман": "🌫",
"Clear": "☀️",
"Mostly clear": "🌤",
"Partly cloudy": "⛅️",
"Overcast": "☁️",
"Light rain": "🌦",
"Drizzle": "💦",
"Rain": "🌧",
"Heavy rain": "",
"Storm": "🌩",
"Thunderstorm with rain": "",
"Sleet": "☔️",
"Light snow": "❄️",
"Snow": "🌨",
"Fog": "🌫"
]
private var location: CLLocation!
private var prevLocation: CLLocation!