-
Notifications
You must be signed in to change notification settings - Fork 8.2k
feat(route/nmc): add temperature observation charts #18871
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
base: master
Are you sure you want to change the base?
Conversation
FIXME: busted if used in strict HTTPS context (like in some RSS Reader plugins) because the source site is HTTP-only. (Yeah, go figure.)
Successfully generated as following: http://localhost:1200/nmc/observation/temperature - Success ✔️<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel>
<title>天气实况</title>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<atom:link href="http://localhost:1200/nmc/observation/temperature" rel="self" type="application/rss+xml"></atom:link>
<description>天气实况 - Powered by RSSHub</description>
<generator>RSSHub</generator>
<webMaster>contact@rsshub.app (RSSHub)</webMaster>
<language>en</language>
<lastBuildDate>Thu, 17 Apr 2025 06:23:53 GMT</lastBuildDate>
<ttl>5</ttl>
<item>
<title>天气实况 - 逐时气温 - 2025-04-16T22:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/04/17/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250417060000000.jpg?v=1744870562980" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Wed, 16 Apr 2025 22:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-04-16T21:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/04/17/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250417050000000.jpg?v=1744869354709" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Wed, 16 Apr 2025 21:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-04-16T20:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/04/17/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250417040000000.jpg?v=1744865769777" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Wed, 16 Apr 2025 20:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-04-16T19:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/04/17/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250417030000000.jpg?v=1744862146975" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Wed, 16 Apr 2025 19:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-04-16T18:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/04/17/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250417020000000.jpg?v=1744858566785" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Wed, 16 Apr 2025 18:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-04-16T17:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/04/17/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250417010000000.jpg?v=1744854954599" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Wed, 16 Apr 2025 17:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-04-16T16:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/04/17/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250417000000000.jpg?v=1744851394368" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Wed, 16 Apr 2025 16:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-04-16T15:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/04/16/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250416230000000.jpg?v=1744847756207" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Wed, 16 Apr 2025 15:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-04-16T14:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/04/16/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250416220000000.jpg?v=1744844153002" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Wed, 16 Apr 2025 14:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-04-16T13:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/04/16/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250416210000000.jpg?v=1744840553433" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Wed, 16 Apr 2025 13:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-04-16T12:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/04/16/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250416200000000.jpg?v=1744836963632" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Wed, 16 Apr 2025 12:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-04-16T11:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/04/16/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250416190000000.jpg?v=1744833353472" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Wed, 16 Apr 2025 11:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-04-16T10:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/04/16/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250416180000000.jpg?v=1744829752745" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Wed, 16 Apr 2025 10:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-04-16T09:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/04/16/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250416170000000.jpg?v=1744826158242" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Wed, 16 Apr 2025 09:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-04-16T08:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/04/16/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250416160000000.jpg?v=1744822545517" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Wed, 16 Apr 2025 08:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-04-16T07:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/04/16/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250416150000000.jpg?v=1744819010049" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Wed, 16 Apr 2025 07:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-04-16T06:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/04/16/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250416140000000.jpg?v=1744815351459" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Wed, 16 Apr 2025 06:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-04-16T05:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/04/16/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250416130000000.jpg?v=1744811767466" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Wed, 16 Apr 2025 05:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-04-16T04:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/04/16/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250416120000000.jpg?v=1744808150104" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Wed, 16 Apr 2025 04:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-04-16T03:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/04/16/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250416110000000.jpg?v=1744804611056" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Wed, 16 Apr 2025 03:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-04-16T02:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/04/16/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250416100000000.jpg?v=1744800962000" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Wed, 16 Apr 2025 02:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-04-16T01:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/04/16/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250416090000000.jpg?v=1744797353816" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Wed, 16 Apr 2025 01:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-04-16T00:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/04/16/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250416080000000.jpg?v=1744793753014" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Wed, 16 Apr 2025 00:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-04-15T23:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/04/16/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250416070000000.jpg?v=1744790154765" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Tue, 15 Apr 2025 23:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-04-15T22:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/04/16/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250416060000000.jpg?v=1744786558696" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Tue, 15 Apr 2025 22:00:00 GMT</pubDate>
</item>
</channel>
</rss> |
@dousha 哥 报错给AI 根据失败日志显示,问题出在 PR 标题的验证上: 错误信息: 未知的发布类型 "WIP" 出现在 PR 标题中。 Code 解决方案 移除 WIP 前缀,只保留符合 lint 规则的部分,例如: |
Successfully generated as following: http://localhost:1200/nmc/observation/temperature - Success ✔️<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel>
<title>天气实况</title>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<atom:link href="http://localhost:1200/nmc/observation/temperature" rel="self" type="application/rss+xml"></atom:link>
<description>天气实况 - Powered by RSSHub</description>
<generator>RSSHub</generator>
<webMaster>contact@rsshub.app (RSSHub)</webMaster>
<language>en</language>
<lastBuildDate>Sat, 03 May 2025 17:08:16 GMT</lastBuildDate>
<ttl>5</ttl>
<item>
<title>天气实况 - 逐时气温 - 2025-05-03T08:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/05/03/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250503160000000.jpg?v=1746288940851" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Sat, 03 May 2025 08:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-05-03T07:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/05/03/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250503150000000.jpg?v=1746287764458" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Sat, 03 May 2025 07:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-05-03T06:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/05/03/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250503140000000.jpg?v=1746284180660" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Sat, 03 May 2025 06:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-05-03T05:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/05/03/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250503130000000.jpg?v=1746280548615" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Sat, 03 May 2025 05:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-05-03T04:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/05/03/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250503120000000.jpg?v=1746276947497" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Sat, 03 May 2025 04:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-05-03T03:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/05/03/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250503110000000.jpg?v=1746273357536" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Sat, 03 May 2025 03:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-05-03T02:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/05/03/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250503100000000.jpg?v=1746269750463" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Sat, 03 May 2025 02:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-05-03T01:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/05/03/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250503090000000.jpg?v=1746266187053" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Sat, 03 May 2025 01:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-05-03T00:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/05/03/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250503080000000.jpg?v=1746262574180" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Sat, 03 May 2025 00:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-05-02T23:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/05/03/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250503070000000.jpg?v=1746258962796" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Fri, 02 May 2025 23:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-05-02T22:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/05/03/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250503060000000.jpg?v=1746254703875" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Fri, 02 May 2025 22:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-05-02T21:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/05/03/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250503050000000.jpg?v=1746251774103" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Fri, 02 May 2025 21:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-05-02T20:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/05/03/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250503040000000.jpg?v=1746248152503" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Fri, 02 May 2025 20:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-05-02T19:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/05/03/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250503030000000.jpg?v=1746244602627" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Fri, 02 May 2025 19:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-05-02T18:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/05/03/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250503020000000.jpg?v=1746240964285" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Fri, 02 May 2025 18:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-05-02T17:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/05/03/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250503010000000.jpg?v=1746237379404" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Fri, 02 May 2025 17:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-05-02T16:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/05/03/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250503000000000.jpg?v=1746233760356" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Fri, 02 May 2025 16:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-05-02T15:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/05/02/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250502230000000.jpg?v=1746230188575" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Fri, 02 May 2025 15:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-05-02T14:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/05/02/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250502220000000.jpg?v=1746226552358" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Fri, 02 May 2025 14:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-05-02T13:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/05/02/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250502210000000.jpg?v=1746223004605" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Fri, 02 May 2025 13:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-05-02T12:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/05/02/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250502200000000.jpg?v=1746219396831" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Fri, 02 May 2025 12:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-05-02T11:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/05/02/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250502190000000.jpg?v=1746215748034" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Fri, 02 May 2025 11:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-05-02T10:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/05/02/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250502180000000.jpg?v=1746212147634" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Fri, 02 May 2025 10:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-05-02T09:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/05/02/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250502170000000.jpg?v=1746208637453" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Fri, 02 May 2025 09:00:00 GMT</pubDate>
</item>
<item>
<title>天气实况 - 逐时气温 - 2025-05-02T08:00:00.000Z</title>
<description><img src="http://image.nmc.cn/product/2025/05/02/STFC/medium/SEVP_NMC_STFC_SFER_ET0_ACHN_L88_PB_20250502160000000.jpg?v=1746204944033" referrerpolicy="no-referrer"></description>
<link>http://www.nmc.cn/publish/observations/hourly-temperature.html</link>
<guid isPermaLink="false">http://www.nmc.cn/publish/observations/hourly-temperature.html</guid>
<pubDate>Fri, 02 May 2025 08:00:00 GMT</pubDate>
</item>
</channel>
</rss> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing tests against new routes
path: '/observation/chart/:region?/:level?/:type?', | ||
categories: ['forecast'], | ||
example: '/nmc/observation/chart/cn/0/basic', | ||
parameters: { region: '区域,见下表', level: '层次,见下表', type: '图表类型,见下表' }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please mention the default value
RSSHub/lib/routes/nmc/chart.ts
Line 77 in 8d579f2
const { region = 'cn', level = '0', type = 'basic' } = ctx.req.param(); |
parameters
const { region = 'cn', level = '0', type = 'basic' } = ctx.req.param(); | ||
const url = getUrl(region, level, type); | ||
|
||
const title = `天气图`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const title = `天气图`; | |
const title = '天气图'; |
Only use template literals when necessary.
path: '/forecast/temperature/:type?', | ||
categories: ['forecast'], | ||
example: '/nmc/forecast/temperature/max', | ||
parameters: { type: '数据类型,见下表' }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please mention the default value
RSSHub/lib/routes/nmc/forecast.ts
Line 44 in 8d579f2
const { type = 'max' } = ctx.req.param(); |
parameters
path: '/observation/precipitation/:frequency?', | ||
categories: ['forecast'], | ||
example: '/nmc/observation/precipitation/hourly', | ||
parameters: { frequency: '数据频率,见下表' }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please mention the default value
RSSHub/lib/routes/nmc/precipitation.ts
Line 50 in 8d579f2
const { frequency = 'hourly' } = ctx.req.param(); |
parameters
path: '/observation/temperature/:frequency?', | ||
categories: ['forecast'], | ||
example: '/nmc/observation/temperature/hourly', | ||
parameters: { frequency: '数据频率,见下表' }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please mention the default value
RSSHub/lib/routes/nmc/temperature.ts
Line 56 in 8d579f2
const { frequency = 'hourly' } = ctx.req.param(); |
parameters
return { | ||
title: `${title} - ${date.toISOString()}`, | ||
description: content, | ||
link: url, | ||
pubDate: date, | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cache the returned object of
RSSHub/lib/routes/nmc/image.ts
Lines 74 to 79 in 8d579f2
return { | |
title: `${title} - ${date.toISOString()}`, | |
description: content, | |
link: url, | |
pubDate: date, | |
}; |
RSSHub/lib/routes/nmc/image.ts
Lines 51 to 56 in 8d579f2
function fetchPageCached(url: string): Promise<string> { | |
return cache.tryGet(url, async () => { | |
const page = await ofetch(url); | |
return page; | |
}) as Promise<string>; | |
} |
return { | ||
title: `${title} - ${date.toISOString()}`, | ||
description: content, | ||
link: url, | ||
pubDate: date, | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Each entry should have its unique guid
instead of the default value which is link
and is shared across all entries
@dousha 救一下,感谢dousha哥 |
Involved Issue / 该 PR 相关 Issue
Close #18549
Example for the Proposed Route(s) / 路由地址示例
New RSS Route Checklist / 新 RSS 路由检查表
Puppeteer
Note / 说明