Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -65,7 +65,7 @@ st.markdown("""
|
|
| 65 |
padding: 15px 0;
|
| 66 |
}
|
| 67 |
.date-text {
|
| 68 |
-
font-size:
|
| 69 |
font-weight: bold !important;
|
| 70 |
color: rgb(0, 0, 0) !important;
|
| 71 |
font-family: Arial, sans-serif !important;
|
|
@@ -317,23 +317,32 @@ def show_weather_info(data):
|
|
| 317 |
tomorrow_temp = forecast['TEMP']
|
| 318 |
precip_type = forecast['PRECPT_TYPE']
|
| 319 |
|
| 320 |
-
# κ°μ νμ
μ λ°λ₯Έ
|
| 321 |
-
|
| 322 |
if precip_type == "λΉ":
|
| 323 |
-
|
| 324 |
elif precip_type == "λ":
|
| 325 |
-
|
| 326 |
elif precip_type == "λΉ/λ":
|
| 327 |
-
|
| 328 |
|
| 329 |
-
tomorrow_morning_weather = f"{tomorrow_temp}Β°C{
|
| 330 |
break
|
| 331 |
|
| 332 |
# νλ©΄μ νμ
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 333 |
st.markdown(f'''
|
| 334 |
<div class="time-container">
|
| 335 |
-
<div style="text-align: center; margin-bottom: 0.5rem; font-size:
|
| 336 |
-
{temp}  
|
| 337 |
</div>
|
| 338 |
<span class="date-text">{formatted_date}</span>
|
| 339 |
</div>
|
|
@@ -422,13 +431,13 @@ def show_temperature_graph(data):
|
|
| 422 |
precip_type = forecast['PRECPT_TYPE']
|
| 423 |
|
| 424 |
if precip_type == "λΉ":
|
| 425 |
-
icon = "
|
| 426 |
description = "λΉ"
|
| 427 |
elif precip_type == "λ":
|
| 428 |
-
icon = "
|
| 429 |
description = "λ"
|
| 430 |
elif precip_type == "λΉ/λ":
|
| 431 |
-
icon = "
|
| 432 |
description = "λΉ/λ"
|
| 433 |
elif sky_status == "λ§μ":
|
| 434 |
icon = "βοΈ"
|
|
|
|
| 65 |
padding: 15px 0;
|
| 66 |
}
|
| 67 |
.date-text {
|
| 68 |
+
font-size: 8em !important;
|
| 69 |
font-weight: bold !important;
|
| 70 |
color: rgb(0, 0, 0) !important;
|
| 71 |
font-family: Arial, sans-serif !important;
|
|
|
|
| 317 |
tomorrow_temp = forecast['TEMP']
|
| 318 |
precip_type = forecast['PRECPT_TYPE']
|
| 319 |
|
| 320 |
+
# κ°μ νμ
μ λ°λ₯Έ μμ΄μ½
|
| 321 |
+
weather_icon = ""
|
| 322 |
if precip_type == "λΉ":
|
| 323 |
+
weather_icon = "β"
|
| 324 |
elif precip_type == "λ":
|
| 325 |
+
weather_icon = "β"
|
| 326 |
elif precip_type == "λΉ/λ":
|
| 327 |
+
weather_icon = "ββ"
|
| 328 |
|
| 329 |
+
tomorrow_morning_weather = f"{tomorrow_temp}Β°C {weather_icon}"
|
| 330 |
break
|
| 331 |
|
| 332 |
# νλ©΄μ νμ
|
| 333 |
+
weather_icon = ""
|
| 334 |
+
if data['PRECPT_TYPE'] == "λΉ":
|
| 335 |
+
weather_icon = "β"
|
| 336 |
+
elif data['PRECPT_TYPE'] == "λ":
|
| 337 |
+
weather_icon = "β"
|
| 338 |
+
elif data['PRECPT_TYPE'] == "λΉ/λ":
|
| 339 |
+
weather_icon = "ββ"
|
| 340 |
+
precip_mark = weather_icon
|
| 341 |
+
|
| 342 |
st.markdown(f'''
|
| 343 |
<div class="time-container">
|
| 344 |
+
<div style="text-align: center; margin-bottom: 0.5rem; font-size: 6em; font-weight: bold; color: black;">
|
| 345 |
+
{temp}{precip_mark} {tomorrow_morning_weather}
|
| 346 |
</div>
|
| 347 |
<span class="date-text">{formatted_date}</span>
|
| 348 |
</div>
|
|
|
|
| 431 |
precip_type = forecast['PRECPT_TYPE']
|
| 432 |
|
| 433 |
if precip_type == "λΉ":
|
| 434 |
+
icon = "β"
|
| 435 |
description = "λΉ"
|
| 436 |
elif precip_type == "λ":
|
| 437 |
+
icon = "β"
|
| 438 |
description = "λ"
|
| 439 |
elif precip_type == "λΉ/λ":
|
| 440 |
+
icon = "ββ"
|
| 441 |
description = "λΉ/λ"
|
| 442 |
elif sky_status == "λ§μ":
|
| 443 |
icon = "βοΈ"
|