|
|
gnome-applets中的gweather可以显示天气预报,但是城市很少。其实,是可以自己编辑的。
/usr/share/gweather/Locations.xml定义了可以显示哪些城市的天气预报。
找到中国
<country>
<name> eople's Republic of China</name>
<name xml:lang="zh_CN">中华人民共和国</name>
<name xml:lang="zh_TW">中華人民共和國</name>
在后边添加需要的城市,就可以了,例如哈尔滨
<location>
<name>Shenyang</name>
<name xml:lang="zh_CN">沈阳</name>
<name xml:lang="zh_TW">沈阳</name>
<code>ZYTX</code>
</location>
其中code那一项是机场的代码。参见http://www.telcom.es/~gacias/arpt/china.htm和
http://worldaerodata.com/countries/China.html,附上我的Locations.xml,我把中国大陆以外的国家和地区都删除了。 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|