yangguo 2007-9-11 09:42
用DM500S查看全球天气预报附修改后可以查看中国城市天气
by:swq
我想大家对Dm的天气插件不会陌生,不过有所更新是2007年6月24日的版本,之前是2005的版本,先看看效果(已修改增加北京和上海天气)。
下面说说安装,下载压缩包,里面有3个文件,其中Dream-WeatherX_1.4_070624.tar.gz用ftp上传至/tmp目录,然后遥控器蓝色按钮--Addons--Manual install 安装。其余2个文件用ftp上传到/var/tuxbox/config/weather覆盖原文件即可!
安装完毕!按蓝色按钮--Plugins(Tools)--Dreambox X-weatherforcast !
下面说说如何在配置文件中添加自己所在的城市。
打开[url=http://www.weather.com/][color=#2f5fa1]www.weather.com[/color][/url]网站,找到自己城市的代码如北京是[url=http://www.weather.com/outlook/travel/businesstraveler/local/CHXX0008][color=#2f5fa1]http://www.weather.com/outlook/travel/businesstraveler/local/CHXX0008[/color][/url],CHXX0008就是北京的城市代码,然后用DCC打开/var/tuxbox/config/weather下的weather-location.xml,在
<config>
<locations>
……
</locations>
</config>
添加如下代码
<location>
<name><![CDATA[[color=#ff0000]Beijing[/color]]]></name>
<url><![CDATA[[url=http://xoap.weather.com/weather/local/][color=#2f5fa1]http://xoap.weather.com/weather/local/[/color][/url][color=#ff0000]CHXX0008[/color]?unit=m&dayf=4]]></url>
</location>
其中只要修改红色字体部分就好
cnchenning 2008-2-19 11:30
真是好东西啊!!!!
imagepower 2008-4-29 21:25
试试看。谢谢
liww 2008-8-1 11:45
:bianzhong :bianzhong :bianzhong :bianzhong :bianzhong :bianzhong :bianzhong :bianzhong :bianzhong :bianzhong :bianzhong :bianzhong :bianzhong :bianzhong :bianzhong :bianzhong :bianzhong :bianzhong
dyeasylife 2008-8-5 00:35
比较复杂啊
pinweiliusha 2008-12-21 21:09
:dieyanjing :dieyanjing :dieyanjing
pinweiliusha 2008-12-21 21:10
:dieyanjing :dieyanjing :dieyanjing :dieyanjing
pinweiliusha 2008-12-21 21:12
:dieyanjing :dieyanjing :dieyanjing