# 国外的天气预报网站找到中国的天气代码,并代写! - Rainmeter技术教程 - 雨滴社区 - Powered by Discuz!
 找回密码
 点击注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 21536|回复: 25

[菜鸟教程] 国外的天气预报网站找到中国的天气代码,并代写!

[复制链接]

签到天数: 291 天

[LV.8]以坛为家I

发表于 2014-3-12 13:09:19 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?点击注册

x
本帖最后由 新夜奥 于 2014-3-12 13:16 编辑

或许你还未用到http://www.weather.com,而是www.weather.com.cn的情况!
我最近喜爱并载了一个直接上图:
无标题.jpg
你们注意到了我的天气是Bangalore,KA,india,如果我想要改成我的城市,怎么办?
我来教你吧!
登陆http://www.weather.com,在搜索打你的城市,例如guangzhou,china,
就出现http://www.weather.com/weather/today/CHJX3069
复制后面的8位CHJX3069,
返回面皮肤界面,点编辑皮肤找到Location=INXX0012,写该INXX0012成CHJX3069,ctrl+s,刷新就可以了
原始状态的代码.jpg ,来看看成果吧!

Q2MOVGYVCX1JM(ZQ2RJ9~5R.jpg

回复

使用道具 举报

签到天数: 19 天

[LV.4]偶尔看看III

发表于 2014-3-12 13:58:51 | 显示全部楼层
这是我找的国外皮肤。下面的代码如何修改成我所在城市的天气呢?我所在的城市代码是CHHA3753:1

[Current]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=3000
Url=http://xml.weather.com/weather/local/#Location#?cc=*&unit=#Type#&dayf=0
RegExp="(?siU).*<locale>(.*)</locale>.*<ut>(.*)</ut>.*<ud>(.*)</ud>.*<us>(.*)</us>.*<up>(.*)</up>.*<ur>(.*)</ur>.*<loc id="(.*)">.*<dnam>(.*)</dnam>.*<tm>(.*)</tm>.*<lat>(.*)</lat>.*<lon>(.*)</lon>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<zone>(.*)</zone>.*<cc>.*<lsup>(.*)</lsup>.*<obst>(.*)</obst>.*<tmp>(.*)</tmp>.*<flik>(.*)</flik>.*<t>(.*)</t>.*<icon>(.*)</icon>.*<bar>.*<r>(.*)</r>.*<d>(.*)</d>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<hmid>(.*)</hmid>.*<vis>(.*)</vis>.*<uv>.*<i>(.*)</i>.*<t>(.*)</t>.*<dewp>(.*)</dewp>.*<moon>.*<icon>(.*)</icon>.*<t>(.*)</t>.*"

[Tomorrow]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=3000
Url=http://xml.weather.com/weather/local/#Location#?cc=*&unit=#Type#&dayf=2
RegExp="(?siU)<day d="1" t="(.*)" dt="(.*)".*<hi>(.*)</hi>.*<low>(.*)</low>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<part p="d">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*<part p="n">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*"
[DayAfter]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=3000
Url=http://xml.weather.com/weather/local/#Location#?cc=*&unit=#Type#&dayf=3
RegExp="(?siU)<day d="2" t="(.*)" dt="(.*)".*<hi>(.*)</hi>.*<low>(.*)</low>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<part p="d">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*<part p="n">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*"
回复

使用道具 举报

签到天数: 291 天

[LV.8]以坛为家I

 楼主| 发表于 2014-3-12 21:32:44 | 显示全部楼层
longin 发表于 2014-3-12 13:58
这是我找的国外皮肤。下面的代码如何修改成我所在城市的天气呢?我所在的城市代码是CHHA3753:1

[Current ...

1.点天气的编辑皮肤,在你的UpdateRate=3000下面加行:直接复制
UpdateRate=3000
Location=CHHA3753
;-- UNIT -- Choose either m, for metric (Celsius/km), or f, for imperial (Fahrenheit/mi) | Choose the unit below.

Unit=m




LOC_URL=http://www.weather.com/weather/today/#Location#
2,将Url=http://xml.weather.com/weather/local/#Location#?cc=*&unit=#Type#&dayf=0,的=0改成=1,
看看。保存,刷新皮肤试一试!
回复

使用道具 举报

签到天数: 291 天

[LV.8]以坛为家I

 楼主| 发表于 2014-3-12 21:38:42 | 显示全部楼层
longin 发表于 2014-3-12 13:58
这是我找的国外皮肤。下面的代码如何修改成我所在城市的天气呢?我所在的城市代码是CHHA3753:1

[Current ...

追问;如果不行,1.发皮肤给我,整个,[email protected],2.在美化求助找找!
回复

使用道具 举报

签到天数: 1 天

[LV.1]初来乍到

发表于 2014-3-18 19:40:10 | 显示全部楼层
终于找到了,非常有用
回复

使用道具 举报

签到天数: 5 天

[LV.2]偶尔看看I

发表于 2014-3-23 19:11:55 | 显示全部楼层
88888888888888888888
回复

使用道具 举报

签到天数: 44 天

[LV.5]常住居民I

发表于 2014-3-25 20:48:24 | 显示全部楼层
不错的东西  学习了
回复

使用道具 举报

签到天数: 405 天

[LV.9]以坛为家II

发表于 2014-4-5 09:06:29 | 显示全部楼层
楼主能分享一下你的天气皮肤吗?谢谢
回复

使用道具 举报

签到天数: 3 天

[LV.2]偶尔看看I

发表于 2014-6-23 18:31:14 | 显示全部楼层
看上你了。。
回复

使用道具 举报

签到天数: 102 天

[LV.6]常住居民II

发表于 2014-6-26 22:27:14 | 显示全部楼层
坑我,来错地方了,楼上饿、、、
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点击注册

本版积分规则

快速回复 返回顶部 返回列表