JAMESPARK3 commited on
Commit
82fabd5
Β·
verified Β·
1 Parent(s): 33fe7c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -12
app.py CHANGED
@@ -65,7 +65,7 @@ st.markdown("""
65
  padding: 15px 0;
66
  }
67
  .date-text {
68
- font-size: 6em !important;
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
- precip_mark = ""
322
  if precip_type == "λΉ„":
323
- precip_mark = "(λΉ„)"
324
  elif precip_type == "눈":
325
- precip_mark = "(눈)"
326
  elif precip_type == "λΉ„/눈":
327
- precip_mark = "(λΉ„/눈)"
328
 
329
- tomorrow_morning_weather = f"{tomorrow_temp}Β°C{precip_mark}"
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: 10em; font-weight: bold; color: black;">
336
- {temp} &nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp; {tomorrow_morning_weather}
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} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {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 = "β˜€οΈ"