2008年1月4日星期五

Firefox的天气预报add-on

  Gnome自带的天气预报只能显示实时的天气情况,于是去Firefox的add-ons找了下,发现三个扩展:Forecastfox l10n、Forecastfox Enhanced和Forecastfox。看名字就知道Forecastfox Enhanced是Forecastfox的增强版,增加了雷达图,这两个用的都是accuweather.com的气象数据,而Forecastfox l10n用的是weather.com的气象数据。通过对比发现accuweather.com的数据太不准确,至少在我这小地方很明显的看出来,晚上居然显示有15°C,其实白天都才12°C的样子,差的离谱,weather.com的数据还算比较接近。
  另外有个Bug,如果先安装过Forecastfox l10n,再卸载换Forecastfox Enhanced,会无法显示天气数据,显示的是诸如ff.cc.panel.label。在作者的留言里找到了解决的方法:My best recommendation right now would be to go into you prefs.js file in your profile folder and delete any entries beginning "extensions.forecastfox" and then reinstalling Forecastfox Enhanced。
  prefs.js是一个Firefox的配置文件,在名为xxxxxxxx.default的隐藏文件夹里,前8个字符是随机生成的。对WinXp/2000,一般在C:\Documents and Settings\[User Name]\Application Data\Mozilla\Firefox\Profiles里;对Vista,一般在C:\users\[User Name]\AppData\Roaming\Mozilla\Firefox\Profiles里;Fedora则是在/home/[User Name]/.mozilla/firefox/里。编辑prefs.js,把里面extensions和forecastfox删了再装Forecastfox Enhanced,就能正常显示数据了。

没有评论: