⚠️ 本技能覆盖内置 weather 技能,强制使用国内数据源,解决 wttr.in/Open-Meteo 在国内的访问问题。
立即触发:
不要触发:
wttr.in、 Open-Meteo 或任何国外天气 APIcurl 直接获取天气数据项目内容首页https://tianqi.moji.com/城市页https://tianqi.moji.com/weather/省份/城市/区县
URL 规则:
/ 分隔,最多三级: /weather/province/city/district常用城市 URL 示例:
城市URL佛山顺德https://tianqi.moji.com/weather/guangdong/foshan/shunde上海闵行https://tianqi.moji.com/weather/shanghai/shanghai/minhang北京https://tianqi.moji.com/weather/beijing/beijing广州https://tianqi.moji.com/weather/guangdong/guangzhou深圳https://tianqi.moji.com/weather/guangdong/shenzhen杭州https://tianqi.moji.com/weather/zhejiang/hangzhou成都https://tianqi.moji.com/weather/sichuan/chengdu武汉https://tianqi.moji.com/weather/hubei/wuhan南京https://tianqi.moji.com/weather/jiangsu/nanjing重庆https://tianqi.moji.com/weather/chongqing/chongqing
项目内容地址https://www.msn.cn/zh-cn/weather/用途墨迹天气数据异常时的备选源特点需要浏览器渲染,数据来自 AccuWeather
text
用户问天气 → 构造墨迹天气 URL → browser 打开 → 截图/提取数据 → 整理回复
Step 1: 构造 URL 根据用户提到的城市,构造墨迹天气 URL:
https://tianqi.moji.com/weather/{province}/{city}/{district}Step 2: 浏览器获取数据
text
browser → open → {URL}
browser → snapshot → 提取天气信息
如果需要可视化截图:
text
browser → screenshot → 发送给户
Step 3: 整理回复 提取以下关键信息:
Step 4: 回复用户 格式参考:
text
📍 {城市} 天气
🌡️ 当前: {温度}°C {天气状况}
📊 今日: {最低}°C ~ {最高}°C
💨 风力: {风力描述}
🌫️ AQI: {空气质量指数} {等级}
📅 未来几天:
明天: {温度范围} {天气}
后天: {温度范围} {天气}
如果墨迹天气无法访问或数据异常:
https://www.msn.cn/zh-cn/weather/拼音转换规则:
chongqing(不是 zhongqing)neimenggu,新疆 → xinjiang常见城市拼音速查:
中文拼音省级拼音北京beijingbeijing上海shanghaishanghai广州guangzhouguangdong深圳shenzhenguangdong成都chengdusichuan杭州hangzhouzhejiang南京nanjingjiangsu武汉wuhanhubei重庆chongqingchongqing西安xianshaanxi长沙changshahunan青岛qingdaoshandong大连dalianliaoning厦门xiamenfujian苏州suzhoujiangsu
用户: 北京今天天气怎么样?
操作:
https://tianqi.moji.com/weather/beijing/beijing回复:
text
📍 北京 天气
🌡️ 当前: 22°C 晴
📊 今日: 15°C ~ 25°C
💨 风力: 南风 3级
🌫️ AQI: 65 良
空气质量不错,适合户外活动!
用户: 上海明天会下雨吗?
操作:
https://tianqi.moji.com/weather/shanghai/shanghai用户: 佛山顺德区现在多少度?
操作:
https://tianqi.moji.com/weather/guangdong/foshan/shunde本技能专为解决国内网络环境下天气查询问题而设计,适用于所有需要查询中国城市天气的场景。