From cbae22a11f20e117afe2922ba4a89a3e7662a693 Mon Sep 17 00:00:00 2001 From: Joseph Date: Mon, 1 Mar 2021 01:27:56 +0100 Subject: [PATCH] Add plaintext weather symbols --- lib/constants.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/lib/constants.py b/lib/constants.py index 649cd08..2b4cab1 100644 --- a/lib/constants.py +++ b/lib/constants.py @@ -147,6 +147,29 @@ WEATHER_SYMBOL_WI_NIGHT = { "VeryCloudy": "", } +# https://github.com/chubin/wttr.in/issues/270#issue-409067058 +WEATHER_SYMBOL_TEXT = { + "Unknown": "?", + "Cloudy": "mm", + "Fog": "=", + "HeavyRain": "///", + "HeavyShowers": "//", + "HeavySnow": "**", + "HeavySnowShowers": "*/*", + "LightRain": "/", + "LightShowers": ".", + "LightSleet": "x", + "LightSleetShowers": "x/", + "LightSnow": "*", + "LightSnowShowers": "*/", + "PartlyCloudy": "m", + "Sunny": "o", + "ThunderyHeavyRain": "/!/", + "ThunderyShowers": "", + "ThunderySnowShowers": "*!*", + "VeryCloudy": "mmm", +} + WEATHER_SYMBOL_WIDTH_VTE_WI = { }