Spaces:
Runtime error
Runtime error
Download warningms.py from Yelim/Typhoon_Track_Forecast_Service: direct link, hf CLI and curl.
- Browser
- Download file 27.7 kB
-
https://huggingface.co/spaces/Yelim/Typhoon_Track_Forecast_Service/resolve/main/warningms.py
- Command line
-
hf download hf://spaces/Yelim/Typhoon_Track_Forecast_Service/warningms.py
-
curl -L -o warningms.py https://huggingface.co/spaces/Yelim/Typhoon_Track_Forecast_Service/resolve/main/warningms.py
27.7 kB
| from PIL import Image | |
| def warning_message(typhoon, area, dates, time): | |
| if dates == "October 5th, 2018": | |
| if area == "Seoul": | |
| if time == "00:00": | |
| image_path = "sample_18100500.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 36.5mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค." | |
| elif time == "06:00": | |
| image_path = "sample_18100506.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 36.5mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค." | |
| elif time == "12:00": | |
| image_path = "sample_18100512.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 36.5mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค." | |
| elif time == "18:00": | |
| image_path = "sample_18100518.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 36.5mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค." | |
| elif area == "Gangwon Province (Gangneung)": | |
| if time == "00:00": | |
| image_path = "sample_18100500.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 43.9mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค." | |
| elif time == "06:00": | |
| image_path = "sample_18100506.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 43.9mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค." | |
| elif time == "12:00": | |
| image_path = "sample_18100512.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 43.9mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค." | |
| elif time == "18:00": | |
| image_path = "sample_18100518.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 43.9mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค." | |
| elif area == "Gyeongsang Province (Yeongdeok)": | |
| if time == "00:00": | |
| image_path = "sample_18100500.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 83.5mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค." | |
| elif time == "06:00": | |
| image_path = "sample_18100506.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 83.5mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค." | |
| elif time == "12:00": | |
| image_path = "sample_18100512.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 83.5mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค." | |
| elif time == "18:00": | |
| image_path = "sample_18100518.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 83.5m ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค." | |
| elif area == "Busan": | |
| if time == "00:00": | |
| image_path = "sample_18100500.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 51.3mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค.\nํด์ ์ง์ญ์ ๋์ธ์ฑ ํ๋๊ฐ ๋๋ก ๋ฐ ๋ฐฉํ์ ๋ฅผ ๋์ด์ค ๊ฒ์ผ๋ก ์์๋๋ฏ๋ก ์ฃผ์๊ฐ ํ์ํฉ๋๋ค.\nํญํด ๋ฐ ์กฐ์ ์, ํ๋ ์ํ๋ฅผ ํ์ธํ๊ณ ์์ ๋๋น์ฑ ์ ๋ง๋ จํ์๊ธธ ๋ฐ๋๋๋ค." | |
| elif time == "06:00": | |
| image_path = "sample_18100506.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 51.3mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค.\nํด์ ์ง์ญ์ ๋์ธ์ฑ ํ๋๊ฐ ๋๋ก ๋ฐ ๋ฐฉํ์ ๋ฅผ ๋์ด์ค ๊ฒ์ผ๋ก ์์๋๋ฏ๋ก ์ฃผ์๊ฐ ํ์ํฉ๋๋ค.\nํญํด ๋ฐ ์กฐ์ ์, ํ๋ ์ํ๋ฅผ ํ์ธํ๊ณ ์์ ๋๋น์ฑ ์ ๋ง๋ จํ์๊ธธ ๋ฐ๋๋๋ค." | |
| elif time == "12:00": | |
| image_path = "sample_18100512.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 51.3mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค.\nํด์ ์ง์ญ์ ๋์ธ์ฑ ํ๋๊ฐ ๋๋ก ๋ฐ ๋ฐฉํ์ ๋ฅผ ๋์ด์ค ๊ฒ์ผ๋ก ์์๋๋ฏ๋ก ์ฃผ์๊ฐ ํ์ํฉ๋๋ค.\nํญํด ๋ฐ ์กฐ์ ์, ํ๋ ์ํ๋ฅผ ํ์ธํ๊ณ ์์ ๋๋น์ฑ ์ ๋ง๋ จํ์๊ธธ ๋ฐ๋๋๋ค." | |
| elif time == "18:00": | |
| image_path = "sample_18100518.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 51.3mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค.\nํด์ ์ง์ญ์ ๋์ธ์ฑ ํ๋๊ฐ ๋๋ก ๋ฐ ๋ฐฉํ์ ๋ฅผ ๋์ด์ค ๊ฒ์ผ๋ก ์์๋๋ฏ๋ก ์ฃผ์๊ฐ ํ์ํฉ๋๋ค.\nํญํด ๋ฐ ์กฐ์ ์, ํ๋ ์ํ๋ฅผ ํ์ธํ๊ณ ์์ ๋๋น์ฑ ์ ๋ง๋ จํ์๊ธธ ๋ฐ๋๋๋ค." | |
| elif area == "Southern Region (Namhae)": | |
| if time == "00:00": | |
| image_path = "sample_18100500.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 80.0mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค.\nํด์ ์ง์ญ์ ๋์ธ์ฑ ํ๋๊ฐ ๋๋ก ๋ฐ ๋ฐฉํ์ ๋ฅผ ๋์ด์ค ๊ฒ์ผ๋ก ์์๋๋ฏ๋ก ์ฃผ์๊ฐ ํ์ํฉ๋๋ค.\nํญํด ๋ฐ ์กฐ์ ์, ํ๋ ์ํ๋ฅผ ํ์ธํ๊ณ ์์ ๋๋น์ฑ ์ ๋ง๋ จํ์๊ธธ ๋ฐ๋๋๋ค." | |
| elif time == "06:00": | |
| image_path = "sample_18100506.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 80.0mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค.\nํด์ ์ง์ญ์ ๋์ธ์ฑ ํ๋๊ฐ ๋๋ก ๋ฐ ๋ฐฉํ์ ๋ฅผ ๋์ด์ค ๊ฒ์ผ๋ก ์์๋๋ฏ๋ก ์ฃผ์๊ฐ ํ์ํฉ๋๋ค.\nํญํด ๋ฐ ์กฐ์ ์, ํ๋ ์ํ๋ฅผ ํ์ธํ๊ณ ์์ ๋๋น์ฑ ์ ๋ง๋ จํ์๊ธธ ๋ฐ๋๋๋ค." | |
| elif time == "12:00": | |
| image_path = "sample_18100512.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 80.0mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค.\nํด์ ์ง์ญ์ ๋์ธ์ฑ ํ๋๊ฐ ๋๋ก ๋ฐ ๋ฐฉํ์ ๋ฅผ ๋์ด์ค ๊ฒ์ผ๋ก ์์๋๋ฏ๋ก ์ฃผ์๊ฐ ํ์ํฉ๋๋ค.\nํญํด ๋ฐ ์กฐ์ ์, ํ๋ ์ํ๋ฅผ ํ์ธํ๊ณ ์์ ๋๋น์ฑ ์ ๋ง๋ จํ์๊ธธ ๋ฐ๋๋๋ค." | |
| elif time == "18:00": | |
| image_path = "sample_18100518.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 80.0mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค.\nํด์ ์ง์ญ์ ๋์ธ์ฑ ํ๋๊ฐ ๋๋ก ๋ฐ ๋ฐฉํ์ ๋ฅผ ๋์ด์ค ๊ฒ์ผ๋ก ์์๋๋ฏ๋ก ์ฃผ์๊ฐ ํ์ํฉ๋๋ค.\nํญํด ๋ฐ ์กฐ์ ์, ํ๋ ์ํ๋ฅผ ํ์ธํ๊ณ ์์ ๋๋น์ฑ ์ ๋ง๋ จํ์๊ธธ ๋ฐ๋๋๋ค." | |
| elif area == "Jeolla Province (Gwangju)": | |
| if time == "00:00": | |
| image_path = "sample_18100500.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 36.5mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค.\nํด์ ์ง์ญ์ ๋์ธ์ฑ ํ๋๊ฐ ๋๋ก ๋ฐ ๋ฐฉํ์ ๋ฅผ ๋์ด์ค ๊ฒ์ผ๋ก ์์๋๋ฏ๋ก ์ฃผ์๊ฐ ํ์ํฉ๋๋ค.\nํญํด ๋ฐ ์กฐ์ ์, ํ๋ ์ํ๋ฅผ ํ์ธํ๊ณ ์์ ๋๋น์ฑ ์ ๋ง๋ จํ์๊ธธ ๋ฐ๋๋๋ค." | |
| elif time == "06:00": | |
| image_path = "sample_18100506.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 36.5mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค.\nํด์ ์ง์ญ์ ๋์ธ์ฑ ํ๋๊ฐ ๋๋ก ๋ฐ ๋ฐฉํ์ ๋ฅผ ๋์ด์ค ๊ฒ์ผ๋ก ์์๋๋ฏ๋ก ์ฃผ์๊ฐ ํ์ํฉ๋๋ค.\nํญํด ๋ฐ ์กฐ์ ์, ํ๋ ์ํ๋ฅผ ํ์ธํ๊ณ ์์ ๋๋น์ฑ ์ ๋ง๋ จํ์๊ธธ ๋ฐ๋๋๋ค." | |
| elif time == "12:00": | |
| image_path = "sample_18100512.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 36.5mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค.\nํด์ ์ง์ญ์ ๋์ธ์ฑ ํ๋๊ฐ ๋๋ก ๋ฐ ๋ฐฉํ์ ๋ฅผ ๋์ด์ค ๊ฒ์ผ๋ก ์์๋๋ฏ๋ก ์ฃผ์๊ฐ ํ์ํฉ๋๋ค.\nํญํด ๋ฐ ์กฐ์ ์, ํ๋ ์ํ๋ฅผ ํ์ธํ๊ณ ์์ ๋๋น์ฑ ์ ๋ง๋ จํ์๊ธธ ๋ฐ๋๋๋ค." | |
| elif time == "18:00": | |
| image_path = "sample_18100518.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 36.5mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค.\nํด์ ์ง์ญ์ ๋์ธ์ฑ ํ๋๊ฐ ๋๋ก ๋ฐ ๋ฐฉํ์ ๋ฅผ ๋์ด์ค ๊ฒ์ผ๋ก ์์๋๋ฏ๋ก ์ฃผ์๊ฐ ํ์ํฉ๋๋ค.\nํญํด ๋ฐ ์กฐ์ ์, ํ๋ ์ํ๋ฅผ ํ์ธํ๊ณ ์์ ๋๋น์ฑ ์ ๋ง๋ จํ์๊ธธ ๋ฐ๋๋๋ค." | |
| elif area == "Jeju Island": | |
| if time == "00:00": | |
| image_path = "sample_18100500.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 63.3mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค.\n์ผ ๊ฐ์๋ 310.0mm ์ ๋์ ๋ง์ ๋น๊ฐ ๋ด๋ฆด ๊ฒ์ผ๋ก ์์๋๋ฏ๋ก, ์ง์ญ์ ์ธ ํ์ ๋ฐ ์ ์ง๋ ์นจ์์ ์ฃผ์ํ์๊ธธ ๋ฐ๋๋๋ค.\n์ฐ์ฌํ ์ํ์ด ์์ผ๋ ์ธ๊ทผ ์ฃผ๋ฏผ์ ๊ฐ๊น์ด ๋ํผ์๋ก ๋ํผํ์๊ธธ ๊ถ์ฅํฉ๋๋ค.\n์ฐจ๋ ๋ฐ ๋์๋ฌผ์์ค ํ์์ ์ ์ํ์ธ์.\n์ ํฌ์ ์์ธก์ ๋ฐ๋ฅด๋ฉด, 10์ ์ญ๋ ์ต๋ค ๊ฐ์๋ ๊ฐฑ์ ํ ๊ฒ์ผ๋ก ๋ณด์ ๋๋ค." | |
| elif time == "06:00": | |
| image_path = "sample_18100506.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 63.3mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค.\n์ผ ๊ฐ์๋ 310.0mm ์ ๋์ ๋ง์ ๋น๊ฐ ๋ด๋ฆด ๊ฒ์ผ๋ก ์์๋๋ฏ๋ก, ์ง์ญ์ ์ธ ํ์ ๋ฐ ์ ์ง๋ ์นจ์์ ์ฃผ์ํ์๊ธธ ๋ฐ๋๋๋ค.\n์ฐ์ฌํ ์ํ์ด ์์ผ๋ ์ธ๊ทผ ์ฃผ๋ฏผ์ ๊ฐ๊น์ด ๋ํผ์๋ก ๋ํผํ์๊ธธ ๊ถ์ฅํฉ๋๋ค.\n์ฐจ๋ ๋ฐ ๋์๋ฌผ์์ค ํ์์ ์ ์ํ์ธ์.\n์ ํฌ์ ์์ธก์ ๋ฐ๋ฅด๋ฉด, 10์ ์ญ๋ ์ต๋ค ๊ฐ์๋ ๊ฐฑ์ ํ ๊ฒ์ผ๋ก ๋ณด์ ๋๋ค." | |
| elif time == "12:00": | |
| image_path = "sample_18100512.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 63.3mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค.\n์ผ ๊ฐ์๋ 310.0mm ์ ๋์ ๋ง์ ๋น๊ฐ ๋ด๋ฆด ๊ฒ์ผ๋ก ์์๋๋ฏ๋ก, ์ง์ญ์ ์ธ ํ์ ๋ฐ ์ ์ง๋ ์นจ์์ ์ฃผ์ํ์๊ธธ ๋ฐ๋๋๋ค.\n์ฐ์ฌํ ์ํ์ด ์์ผ๋ ์ธ๊ทผ ์ฃผ๋ฏผ์ ๊ฐ๊น์ด ๋ํผ์๋ก ๋ํผํ์๊ธธ ๊ถ์ฅํฉ๋๋ค.\n์ฐจ๋ ๋ฐ ๋์๋ฌผ์์ค ํ์์ ์ ์ํ์ธ์.\n์ ํฌ์ ์์ธก์ ๋ฐ๋ฅด๋ฉด, 10์ ์ญ๋ ์ต๋ค ๊ฐ์๋ ๊ฐฑ์ ํ ๊ฒ์ผ๋ก ๋ณด์ ๋๋ค." | |
| elif time == "18:00": | |
| image_path = "sample_18100518.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 63.3mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค.\n์ผ ๊ฐ์๋ 310.0mm ์ ๋์ ๋ง์ ๋น๊ฐ ๋ด๋ฆด ๊ฒ์ผ๋ก ์์๋๋ฏ๋ก, ์ง์ญ์ ์ธ ํ์ ๋ฐ ์ ์ง๋ ์นจ์์ ์ฃผ์ํ์๊ธธ ๋ฐ๋๋๋ค.\n์ฐ์ฌํ ์ํ์ด ์์ผ๋ ์ธ๊ทผ ์ฃผ๋ฏผ์ ๊ฐ๊น์ด ๋ํผ์๋ก ๋ํผํ์๊ธธ ๊ถ์ฅํฉ๋๋ค.\n์ฐจ๋ ๋ฐ ๋์๋ฌผ์์ค ํ์์ ์ ์ํ์ธ์.\n์ ํฌ์ ์์ธก์ ๋ฐ๋ฅด๋ฉด, 10์ ์ญ๋ ์ต๋ค ๊ฐ์๋ ๊ฐฑ์ ํ ๊ฒ์ผ๋ก ๋ณด์ ๋๋ค." | |
| if dates == "October 6th, 2018": | |
| if area == "Seoul": | |
| if time == "00:00": | |
| image_path = "sample_18100600.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 55.5mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค." | |
| elif time == "06:00": | |
| image_path = "sample_18100606.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 55.5mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค." | |
| elif time == "12:00": | |
| image_path = "sample_18100612.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 55.5mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค." | |
| elif time == "18:00": | |
| image_path = "sample_18100618.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 55.5mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค." | |
| elif area == "Gangwon Province (Gangneung)": | |
| if time == "00:00": | |
| image_path = "sample_18100600.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 135.3mm ์ ๋์ ๋ง์ ๋น์ 20~30m/s์ ๊ฐํ์ด ์์๋ฉ๋๋ค.\n๋ฐ๋ผ์ ๋๋ก ๋ฐ ์ฃผํ์ด ์นจ์๋ ์ํ์ด ๋ณด์ด๋ฏ๋ก ์ํ ์ง์ญ์ฃผ๋ฏผ์ ๋ํผํ์๊ธธ ๊ถ์ฅํฉ๋๋ค.\n์ฐ์ฌํ๋ก ์ธํ ํ ์ฌ๋ฌผ ์ฃผ์๊ฐ ํ์ํ๋ฉฐ ๊ฐํ ๋ฐ ๊ฐ๋ก์๋ฅผ ์กฐ์ฌํ์๊ธธ ๋ฐ๋๋๋ค." | |
| elif time == "06:00": | |
| image_path = "sample_18100606.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 135.3mm ์ ๋์ ๋ง์ ๋น์ 20~30m/s์ ๊ฐํ์ด ์์๋ฉ๋๋ค.\n๋ฐ๋ผ์ ๋๋ก ๋ฐ ์ฃผํ์ด ์นจ์๋ ์ํ์ด ๋ณด์ด๋ฏ๋ก ์ํ ์ง์ญ์ฃผ๋ฏผ์ ๋ํผํ์๊ธธ ๊ถ์ฅํฉ๋๋ค.\n์ฐ์ฌํ๋ก ์ธํ ํ ์ฌ๋ฌผ ์ฃผ์๊ฐ ํ์ํ๋ฉฐ ๊ฐํ ๋ฐ ๊ฐ๋ก์๋ฅผ ์กฐ์ฌํ์๊ธธ ๋ฐ๋๋๋ค." | |
| elif time == "12:00": | |
| image_path = "sample_18100612.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 135.3mm ์ ๋์ ๋ง์ ๋น์ 20~30m/s์ ๊ฐํ์ด ์์๋ฉ๋๋ค.\n๋ฐ๋ผ์ ๋๋ก ๋ฐ ์ฃผํ์ด ์นจ์๋ ์ํ์ด ๋ณด์ด๋ฏ๋ก ์ํ ์ง์ญ์ฃผ๋ฏผ์ ๋ํผํ์๊ธธ ๊ถ์ฅํฉ๋๋ค.\n์ฐ์ฌํ๋ก ์ธํ ํ ์ฌ๋ฌผ ์ฃผ์๊ฐ ํ์ํ๋ฉฐ ๊ฐํ ๋ฐ ๊ฐ๋ก์๋ฅผ ์กฐ์ฌํ์๊ธธ ๋ฐ๋๋๋ค." | |
| elif time == "18:00": | |
| image_path = "sample_18100618.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 135.3mm ์ ๋์ ๋ง์ ๋น์ 20~30m/s์ ๊ฐํ์ด ์์๋ฉ๋๋ค.\n๋ฐ๋ผ์ ๋๋ก ๋ฐ ์ฃผํ์ด ์นจ์๋ ์ํ์ด ๋ณด์ด๋ฏ๋ก ์ํ ์ง์ญ์ฃผ๋ฏผ์ ๋ํผํ์๊ธธ ๊ถ์ฅํฉ๋๋ค.\n์ฐ์ฌํ๋ก ์ธํ ํ ์ฌ๋ฌผ ์ฃผ์๊ฐ ํ์ํ๋ฉฐ ๊ฐํ ๋ฐ ๊ฐ๋ก์๋ฅผ ์กฐ์ฌํ์๊ธธ ๋ฐ๋๋๋ค." | |
| elif area == "Gyeongsang Province (Yeongdeok)": | |
| if time == "00:00": | |
| image_path = "sample_18100600.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n๋ฎ 12์ ์ดํ ๊ฒฝ์๋ถ๋๋ ํํ์ ์ํฅ๊ถ์ผ๋ก ์ง์ ํ ๊ฐ๋ฅ์ฑ์ด ์์ผ๋ฏ๋ก ์ฃผ์๊ฐ ํ์ํฉ๋๋ค.\n๊ฒฝ์๋ถ๋๋ 300mm ์ ๋์ ํญ์ฐ๊ฐ ์์๋๋ฏ๋ก ์ ์ง๋ ์นจ์ ๋ฐ ์ง์ญ์ ํ์์ ์ฃผ์ํ์๊ธธ ๋ฐ๋๋๋ค.\n์ ๋ฐ ๋ฐ ์ด์ ์ ๋ฏธ๋ฆฌ ๋ํผํ๊ธฐ๋ฅผ ๊ถ์ฅํฉ๋๋ค." | |
| elif time == "06:00": | |
| image_path = "sample_18100606.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n๋ฎ 12์ ์ดํ ๊ฒฝ์๋ถ๋๋ ํํ์ ์ํฅ๊ถ์ผ๋ก ์ง์ ํ ๊ฐ๋ฅ์ฑ์ด ์์ผ๋ฏ๋ก ์ฃผ์๊ฐ ํ์ํฉ๋๋ค.\n๊ฒฝ์๋ถ๋๋ 300mm ์ ๋์ ํญ์ฐ๊ฐ ์์๋๋ฏ๋ก ์ ์ง๋ ์นจ์ ๋ฐ ์ง์ญ์ ํ์์ ์ฃผ์ํ์๊ธธ ๋ฐ๋๋๋ค.\n์ ๋ฐ ๋ฐ ์ด์ ์ ๋ฏธ๋ฆฌ ๋ํผํ๊ธฐ๋ฅผ ๊ถ์ฅํฉ๋๋ค." | |
| elif time == "12:00": | |
| image_path = "sample_18100612.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n๋ฎ 12์ ์ดํ ๊ฒฝ์๋ถ๋๋ ํํ์ ์ํฅ๊ถ์ผ๋ก ์ง์ ํ ๊ฐ๋ฅ์ฑ์ด ์์ผ๋ฏ๋ก ์ฃผ์๊ฐ ํ์ํฉ๋๋ค.\n๊ฒฝ์๋ถ๋๋ 300mm ์ ๋์ ํญ์ฐ๊ฐ ์์๋๋ฏ๋ก ์ ์ง๋ ์นจ์ ๋ฐ ์ง์ญ์ ํ์์ ์ฃผ์ํ์๊ธธ ๋ฐ๋๋๋ค.\n์ ๋ฐ ๋ฐ ์ด์ ์ ๋ฏธ๋ฆฌ ๋ํผํ๊ธฐ๋ฅผ ๊ถ์ฅํฉ๋๋ค." | |
| elif time == "18:00": | |
| image_path = "sample_18100618.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n๋ฎ 12์ ์ดํ ๊ฒฝ์๋ถ๋๋ ํํ์ ์ํฅ๊ถ์ผ๋ก ์ง์ ํ ๊ฐ๋ฅ์ฑ์ด ์์ผ๋ฏ๋ก ์ฃผ์๊ฐ ํ์ํฉ๋๋ค.\n๊ฒฝ์๋ถ๋๋ 300mm ์ ๋์ ํญ์ฐ๊ฐ ์์๋๋ฏ๋ก ์ ์ง๋ ์นจ์ ๋ฐ ์ง์ญ์ ํ์์ ์ฃผ์ํ์๊ธธ ๋ฐ๋๋๋ค.\n์ ๋ฐ ๋ฐ ์ด์ ์ ๋ฏธ๋ฆฌ ๋ํผํ๊ธฐ๋ฅผ ๊ถ์ฅํฉ๋๋ค." | |
| elif area == "Busan": | |
| if time == "00:00": | |
| image_path = "sample_18100600.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 67.4mm ์ ๋์ ๋น์ 33.6m/s ์ ๊ฐํ์ด ์์๋ฉ๋๋ค.\nํด์๋๋ก ๋ฐ ์ธ๊ทผ ๊ฑด๋ฌผ์ ํญํ ํด์ผ์ ์ฃผ์ํ์๊ธธ ๋ฐ๋๋๋ค.\n์ฌ๋์ด ๋ ์๊ฐ ์ ๋์ ๊ฐํ ๋ฐ๋์ด ๋ถ ๊ฒ์ผ๋ก ์์๋ฉ๋๋ค." | |
| elif time == "06:00": | |
| image_path = "sample_18100606.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 67.4mm ์ ๋์ ๋น์ 33.6m/s ์ ๊ฐํ์ด ์์๋ฉ๋๋ค.\nํด์๋๋ก ๋ฐ ์ธ๊ทผ ๊ฑด๋ฌผ์ ํญํ ํด์ผ์ ์ฃผ์ํ์๊ธธ ๋ฐ๋๋๋ค.\n์ฌ๋์ด ๋ ์๊ฐ ์ ๋์ ๊ฐํ ๋ฐ๋์ด ๋ถ ๊ฒ์ผ๋ก ์์๋ฉ๋๋ค." | |
| elif time == "12:00": | |
| image_path = "sample_18100612.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 67.4mm ์ ๋์ ๋น์ 33.6m/s ์ ๊ฐํ์ด ์์๋ฉ๋๋ค.\nํด์๋๋ก ๋ฐ ์ธ๊ทผ ๊ฑด๋ฌผ์ ํญํ ํด์ผ์ ์ฃผ์ํ์๊ธธ ๋ฐ๋๋๋ค.\n์ฌ๋์ด ๋ ์๊ฐ ์ ๋์ ๊ฐํ ๋ฐ๋์ด ๋ถ ๊ฒ์ผ๋ก ์์๋ฉ๋๋ค." | |
| elif time == "18:00": | |
| image_path = "sample_18100618.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 67.4mm ์ ๋์ ๋น์ 33.6m/s ์ ๊ฐํ์ด ์์๋ฉ๋๋ค.\nํด์๋๋ก ๋ฐ ์ธ๊ทผ ๊ฑด๋ฌผ์ ํญํ ํด์ผ์ ์ฃผ์ํ์๊ธธ ๋ฐ๋๋๋ค.\n์ฌ๋์ด ๋ ์๊ฐ ์ ๋์ ๊ฐํ ๋ฐ๋์ด ๋ถ ๊ฒ์ผ๋ก ์์๋ฉ๋๋ค." | |
| elif area == "Southern Region (Namhae)": | |
| if time == "00:00": | |
| image_path = "sample_18100600.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 80.0mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค.\n์ผ ๊ฐ์๋ 225.0mm ์ ๋์ ํญ์ฐ๊ฐ ์์๋ฉ๋๋ค.\n์ง์ญ์ ํ์ ๋ฐ ๊ฑด๋ฌผ ์นจ์์ ์ฃผ์ํ์๊ธธ ๋ฐ๋๋๋ค.\n10m์ด์์ ๋์ ํ๋๊ฐ ์์๋๋ฏ๋ก ์ด์ ๋ฐ ์ ๋ฐ์ ๋ฏธ๋ฆฌ ๋ํผํ๋ ๊ฒ์ ๊ถ์ฅํฉ๋๋ค. " | |
| elif time == "06:00": | |
| image_path = "sample_18100606.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 80.0mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค.\n์ผ ๊ฐ์๋ 225.0mm ์ ๋์ ํญ์ฐ๊ฐ ์์๋ฉ๋๋ค.\n์ง์ญ์ ํ์ ๋ฐ ๊ฑด๋ฌผ ์นจ์์ ์ฃผ์ํ์๊ธธ ๋ฐ๋๋๋ค.\n10m์ด์์ ๋์ ํ๋๊ฐ ์์๋๋ฏ๋ก ์ด์ ๋ฐ ์ ๋ฐ์ ๋ฏธ๋ฆฌ ๋ํผํ๋ ๊ฒ์ ๊ถ์ฅํฉ๋๋ค. " | |
| elif time == "12:00": | |
| image_path = "sample_18100612.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 80.0mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค.\n์ผ ๊ฐ์๋ 225.0mm ์ ๋์ ํญ์ฐ๊ฐ ์์๋ฉ๋๋ค.\n์ง์ญ์ ํ์ ๋ฐ ๊ฑด๋ฌผ ์นจ์์ ์ฃผ์ํ์๊ธธ ๋ฐ๋๋๋ค.\n10m์ด์์ ๋์ ํ๋๊ฐ ์์๋๋ฏ๋ก ์ด์ ๋ฐ ์ ๋ฐ์ ๋ฏธ๋ฆฌ ๋ํผํ๋ ๊ฒ์ ๊ถ์ฅํฉ๋๋ค. " | |
| elif time == "18:00": | |
| image_path = "sample_18100618.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ผ ๊ฐ์๋ 80.0mm ์ ๋์ ๋น๊ฐ ์์๋ฉ๋๋ค.\n์ผ ๊ฐ์๋ 225.0mm ์ ๋์ ํญ์ฐ๊ฐ ์์๋ฉ๋๋ค.\n์ง์ญ์ ํ์ ๋ฐ ๊ฑด๋ฌผ ์นจ์์ ์ฃผ์ํ์๊ธธ ๋ฐ๋๋๋ค.\n10m์ด์์ ๋์ ํ๋๊ฐ ์์๋๋ฏ๋ก ์ด์ ๋ฐ ์ ๋ฐ์ ๋ฏธ๋ฆฌ ๋ํผํ๋ ๊ฒ์ ๊ถ์ฅํฉ๋๋ค. " | |
| elif area == "Jeolla Province (Gwangju)": | |
| if time == "00:00": | |
| image_path = "sample_18100600.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n๊ธ์ผ ํํ ์๋ฅ์ผ๋ก, ๋์ ํ๊ณ ๊ฐ ์์๋๋ฏ๋ก ์ด์ ๋ํผ์ ํญ๋ก์ ์ฌ๊ฐ์ ์ ๋ฉด ํต์ ํ๋ ๊ฒ์ ๊ถ์ฅํฉ๋๋ค.\n๋์๋ฌผ ๋ฐ ๋์ ์์ค๋ฌผ ํผํด์ ์ฃผ์ํ์๊ธธ ๋ฐ๋๋๋ค." | |
| elif time == "06:00": | |
| image_path = "sample_18100606.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n๊ธ์ผ ํํ ์๋ฅ์ผ๋ก, ๋์ ํ๊ณ ๊ฐ ์์๋๋ฏ๋ก ์ด์ ๋ํผ์ ํญ๋ก์ ์ฌ๊ฐ์ ์ ๋ฉด ํต์ ํ๋ ๊ฒ์ ๊ถ์ฅํฉ๋๋ค.\n๋์๋ฌผ ๋ฐ ๋์ ์์ค๋ฌผ ํผํด์ ์ฃผ์ํ์๊ธธ ๋ฐ๋๋๋ค." | |
| elif time == "12:00": | |
| image_path = "sample_18100612.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n๊ธ์ผ ํํ ์๋ฅ์ผ๋ก, ๋์ ํ๊ณ ๊ฐ ์์๋๋ฏ๋ก ์ด์ ๋ํผ์ ํญ๋ก์ ์ฌ๊ฐ์ ์ ๋ฉด ํต์ ํ๋ ๊ฒ์ ๊ถ์ฅํฉ๋๋ค.\n๋์๋ฌผ ๋ฐ ๋์ ์์ค๋ฌผ ํผํด์ ์ฃผ์ํ์๊ธธ ๋ฐ๋๋๋ค." | |
| elif time == "18:00": | |
| image_path = "sample_18100618.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n๊ธ์ผ ํํ ์๋ฅ์ผ๋ก, ๋์ ํ๊ณ ๊ฐ ์์๋๋ฏ๋ก ์ด์ ๋ํผ์ ํญ๋ก์ ์ฌ๊ฐ์ ์ ๋ฉด ํต์ ํ๋ ๊ฒ์ ๊ถ์ฅํฉ๋๋ค.\n๋์๋ฌผ ๋ฐ ๋์ ์์ค๋ฌผ ํผํด์ ์ฃผ์ํ์๊ธธ ๋ฐ๋๋๋ค." | |
| elif area == "Jeju Island": | |
| if time == "00:00": | |
| image_path = "sample_18100600.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ ๋ ์ ๋ง์ ๊ฐ์๋์ผ๋ก ์ธํ ์ ์์ง ๋ฐ ํ์ฒ ๋ฒ๋์ ์ฃผ์ํ์๊ธธ ๋ฐ๋๋๋ค.\n๊ธ์ผ ํํ ์๋ฅ์ผ๋ก 33m/s ์ ๋์ ๊ฐํ์ด ์์๋ฉ๋๋ค." | |
| elif time == "06:00": | |
| image_path = "sample_18100606.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ ๋ ์ ๋ง์ ๊ฐ์๋์ผ๋ก ์ธํ ์ ์์ง ๋ฐ ํ์ฒ ๋ฒ๋์ ์ฃผ์ํ์๊ธธ ๋ฐ๋๋๋ค.\n๊ธ์ผ ํํ ์๋ฅ์ผ๋ก 33m/s ์ ๋์ ๊ฐํ์ด ์์๋ฉ๋๋ค." | |
| elif time == "12:00": | |
| image_path = "sample_18100612.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ ๋ ์ ๋ง์ ๊ฐ์๋์ผ๋ก ์ธํ ์ ์์ง ๋ฐ ํ์ฒ ๋ฒ๋์ ์ฃผ์ํ์๊ธธ ๋ฐ๋๋๋ค.\n๊ธ์ผ ํํ ์๋ฅ์ผ๋ก 33m/s ์ ๋์ ๊ฐํ์ด ์์๋ฉ๋๋ค." | |
| elif time == "18:00": | |
| image_path = "sample_18100618.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ ๋ ์ ๋ง์ ๊ฐ์๋์ผ๋ก ์ธํ ์ ์์ง ๋ฐ ํ์ฒ ๋ฒ๋์ ์ฃผ์ํ์๊ธธ ๋ฐ๋๋๋ค.\n๊ธ์ผ ํํ ์๋ฅ์ผ๋ก 33m/s ์ ๋์ ๊ฐํ์ด ์์๋ฉ๋๋ค." | |
| if dates == "October 7th, 2018": | |
| if area == "Seoul": | |
| if time == "00:00": | |
| image_path = "sample_18100700.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n๊ฐ์๊ฐ ์์๊ฒ์ผ๋ก ์์๋ฉ๋๋ค." | |
| elif time == "06:00": | |
| image_path = "sample_18100706.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n๊ฐ์๊ฐ ์์๊ฒ์ผ๋ก ์์๋ฉ๋๋ค." | |
| elif time == "12:00": | |
| image_path = "sample_18100712.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n๊ฐ์๊ฐ ์์๊ฒ์ผ๋ก ์์๋ฉ๋๋ค." | |
| elif time == "18:00": | |
| image_path = "sample_18100718.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n๊ฐ์๊ฐ ์์๊ฒ์ผ๋ก ์์๋ฉ๋๋ค." | |
| elif area == "Gangwon Province (Gangneung)": | |
| if time == "00:00": | |
| image_path = "sample_18100700.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n๊ฐ์๊ฐ ์์๊ฒ์ผ๋ก ์์๋ฉ๋๋ค." | |
| elif time == "06:00": | |
| image_path = "sample_18100706.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n๊ฐ์๊ฐ ์์๊ฒ์ผ๋ก ์์๋ฉ๋๋ค." | |
| elif time == "12:00": | |
| image_path = "sample_18100712.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n๊ฐ์๊ฐ ์์๊ฒ์ผ๋ก ์์๋ฉ๋๋ค." | |
| elif time == "18:00": | |
| image_path = "sample_18100718.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n๊ฐ์๊ฐ ์์๊ฒ์ผ๋ก ์์๋ฉ๋๋ค." | |
| elif area == "Gyeongsang Province (Yeongdeok)": | |
| if time == "00:00": | |
| image_path = "sample_18100700.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ ์ผ ์ฐ์ฌํ๋ก ์ธํ ํ ์ฌ๋ฌผ ์ฃผ์ํ์๊ธธ ๋ฐ๋๋๋ค." | |
| elif time == "06:00": | |
| image_path = "sample_18100706.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ ์ผ ์ฐ์ฌํ๋ก ์ธํ ํ ์ฌ๋ฌผ ์ฃผ์ํ์๊ธธ ๋ฐ๋๋๋ค." | |
| elif time == "12:00": | |
| image_path = "sample_18100712.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ ์ผ ์ฐ์ฌํ๋ก ์ธํ ํ ์ฌ๋ฌผ ์ฃผ์ํ์๊ธธ ๋ฐ๋๋๋ค." | |
| elif time == "18:00": | |
| image_path = "sample_18100718.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n์ ์ผ ์ฐ์ฌํ๋ก ์ธํ ํ ์ฌ๋ฌผ ์ฃผ์ํ์๊ธธ ๋ฐ๋๋๋ค." | |
| elif area == "Busan": | |
| if time == "00:00": | |
| image_path = "sample_18100700.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n๊ฐ์๊ฐ ์์๊ฒ์ผ๋ก ์์๋ฉ๋๋ค." | |
| elif time == "06:00": | |
| image_path = "sample_18100706.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n๊ฐ์๊ฐ ์์๊ฒ์ผ๋ก ์์๋ฉ๋๋ค." | |
| elif time == "12:00": | |
| image_path = "sample_18100712.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n๊ฐ์๊ฐ ์์๊ฒ์ผ๋ก ์์๋ฉ๋๋ค." | |
| elif time == "18:00": | |
| image_path = "sample_18100718.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n๊ฐ์๊ฐ ์์๊ฒ์ผ๋ก ์์๋ฉ๋๋ค." | |
| elif area == "Southern Region (Namhae)": | |
| if time == "00:00": | |
| image_path = "sample_18100700.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n๊ฐ์๊ฐ ์์๊ฒ์ผ๋ก ์์๋ฉ๋๋ค." | |
| elif time == "06:00": | |
| image_path = "sample_18100706.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n๊ฐ์๊ฐ ์์๊ฒ์ผ๋ก ์์๋ฉ๋๋ค." | |
| elif time == "12:00": | |
| image_path = "sample_18100712.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n๊ฐ์๊ฐ ์์๊ฒ์ผ๋ก ์์๋ฉ๋๋ค." | |
| elif time == "18:00": | |
| image_path = "sample_18100718.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n๊ฐ์๊ฐ ์์๊ฒ์ผ๋ก ์์๋ฉ๋๋ค." | |
| elif area == "Jeolla Province (Gwangju)": | |
| if time == "00:00": | |
| image_path = "sample_18100700.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n๊ฐ์๊ฐ ์์๊ฒ์ผ๋ก ์์๋ฉ๋๋ค." | |
| elif time == "06:00": | |
| image_path = "sample_18100706.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n๊ฐ์๊ฐ ์์๊ฒ์ผ๋ก ์์๋ฉ๋๋ค." | |
| elif time == "12:00": | |
| image_path = "sample_18100712.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n๊ฐ์๊ฐ ์์๊ฒ์ผ๋ก ์์๋ฉ๋๋ค." | |
| elif time == "18:00": | |
| image_path = "sample_18100718.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n๊ฐ์๊ฐ ์์๊ฒ์ผ๋ก ์์๋ฉ๋๋ค." | |
| elif area == "Jeju Island": | |
| if time == "00:00": | |
| image_path = "sample_18100700.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n๊ฐ์๊ฐ ์์๊ฒ์ผ๋ก ์์๋ฉ๋๋ค." | |
| elif time == "06:00": | |
| image_path = "sample_18100706.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n๊ฐ์๊ฐ ์์๊ฒ์ผ๋ก ์์๋ฉ๋๋ค." | |
| elif time == "12:00": | |
| image_path = "sample_18100712.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n๊ฐ์๊ฐ ์์๊ฒ์ผ๋ก ์์๋ฉ๋๋ค." | |
| elif time == "18:00": | |
| image_path = "sample_18100718.png" | |
| alert = f"Today is {dates}, and you are in {area}.\n๊ฐ์๊ฐ ์์๊ฒ์ผ๋ก ์์๋ฉ๋๋ค." | |
| return alert, image_path |