Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新增天气卡片 #151

Merged
merged 2 commits into from
Oct 12, 2024
Merged

新增天气卡片 #151

merged 2 commits into from
Oct 12, 2024

Conversation

HereIsYui
Copy link
Contributor

天气卡片发送格式:

[weather]{"type":"weather","date":"10/12,10/13,10/14,10/15,10/16","weatherCode":"CLEAR_DAY,PARTLY_CLOUDY_DAY,LIGHT_SNOW,PARTLY_CLOUDY_DAY,PARTLY_CLOUDY_DAY","max":"6.24,9.8,3.14,3.41,4.18","min":"-3.76,-2.06,-5.12,-6.26,-4.1","t":"漠河","st":"多云,明天上午9点钟后转阴,其后多云"}[/weather]

单次可以显示五天的天气信息
参数解释:

  • date 日期
  • weatherCode 天气代码
  • max 每日最高温度
  • min 每日最低温度
  • t 城市
  • st 天气详情

weatherCode说明:

  • CLEAR_DAY: "晴"
  • CLEAR_NIGHT: "晴"
  • PARTLY_CLOUDY_DAY: "多云 "
  • PARTLY_CLOUDY_NIGHT: "多云"
  • CLOUDY: "阴"
  • LIGHT_HAZE: "轻度雾霾"
  • MODERATE_HAZE: "中度雾霾"
  • HEAVY_HAZE: "重度雾霾"
  • LIGHT_RAIN: "小雨"
  • MODERATE_RAIN: "中雨"
  • HEAVY_RAIN: "大雨"
  • STORM_RAIN: "暴雨"
  • FOG: "雾"
  • LIGHT_SNOW: "小雪"
  • MODERATE_SNOW: "中雪"
  • HEAVY_SNOW: "大雪"
  • STORM_SNOW: "暴雪"
  • DUST: "浮尘"
  • SAND: "沙尘"
  • WIND: "大风"

@adlered adlered merged commit b7a1d3b into csfwff:master Oct 12, 2024
1 check passed
adlered added a commit that referenced this pull request Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants