天气丰富一下

This commit is contained in:
liuwei
2026-01-26 08:59:06 +08:00
parent 12b93606db
commit d15ff5c4c4

View File

@@ -445,7 +445,7 @@ class WeatherPlugin(MessagePluginInterface):
cloud = int(data.get('cloud', 50))
sunset = data.get('sunset', '')
if cloud < 20 and "" in text_day:
tips.append(f"<EFBFBD> 傍晚{sunset}左右可能有美丽的晚霞哦。")
tips.append(f"🌄 傍晚{sunset}左右可能有美丽的晚霞哦。")
return tips
@@ -598,7 +598,7 @@ class WeatherPlugin(MessagePluginInterface):
lines.append(f"💧 湿度{humidity}% | 🌬️ {wind_dir} {wind_scale}级 | 👀 能见度{vis}km")
if today:
lines.append(f"🗓️ 今日 {text_day} | {t_min}~{t_max}")
lines.append(f"☀️ 日出{sunrise} | <EFBFBD> 日落{sunset}")
lines.append(f"☀️ 日出{sunrise} | 🌄 日落{sunset}")
lines.append(f"🔆 紫外线{uv} | 🌧️ 降水{precip}mm | ⏱️ 气压{pressure}hPa")
if alerts:
lines.append("")