Thatgeek – Previously Sonicpling

Saturday May 14, 2005

WeatherIcon 2.0 - Simplified Chinese

Filed under: General, Site News — Jeremiah @ 3:01 pm

Thanks to Wu Xiaoguang we now have a Simplified Chinese translation available for WeatherIcon.

Get it here: http://www.viper007bond.com/wordpress-plugins/weathericon/

P.S. Apologies to Wu Xiaoguang for my talking so long to post this. it was sent to me on
April 3rd.

12 Responses to “WeatherIcon 2.0 - Simplified Chinese”

  1. Pal Says:

    Dear sir, i’m very glad to find this fantastic WP plugin of weather report. But unfortunately, after i upload all the required files to the plugins folder, there comes out a fatal error:

    Cannot redeclare weathericon() (previously declared in /usr/htdoc/virtual/hey.com.ru/html/wp-content/plugins/WeatherIcon.php:325) in /usr/htdoc/virtual/hey.com.ru/html/wp-content/plugins/weather.php on line 214

    i use WP 1.5.1, could that be the reason? thank you very much!

    Pal

  2. bingu Says:

    thank you and wuxiaogang~

  3. bingu Says:

    thank you and wuxiaoguang~

  4. Jeremiah Says:

    Pal:
    it looks like you have WeatherIcon 2.0 and 1.0 running at the same time.

    try removing the file named weather.php

    you should only need the file named “WeatherIcon.php”

  5. Pal Says:

    Thank U Very Much, And i think i Fix it! a Very Very Nice Plugin!

  6. Andrew Says:

    Wow, I just moved over to WP from Blogger and successfully got your weather report happening on my page. Cool! But being so new, I’m sure I’ve missed something because it only seems to work for US-based stations.

    Our local weather code is ASXX0309 (Latrobe Valley airport, Victoria, Australia). Sorry if I’ve missed it, but could you help at all by telling me how to access this info. Your whole plugin and icons are SO cool.

    Thanks in advance. Andrew

  7. Molasar Says:

    As Andrew sayd, only works on US-based stations because they give more data:

    Look at the data provided by KLUF (10 variables):
    KLUF 290535Z 17013KT 20SM BKN100 OVC250 30/12 A2984 RMK LAST

    now look at the data provided by SGAS (my city)…(only 8 variables):
    SGAS 310200 00000 9999 FEW033 BKR083 18/16 Q1018

    Can you help us to make it work with those fewer data?

    (and please excuse my bad english)

  8. Art Says:

    Jeremiah, thanks for the nice plug-in. How do I remove the “list” bullets from this? They show up in some themes and not in others. Thanks.

  9. Garett Says:

    These are a little late, but hopefully this will help out the questions asked:

    Molasar: The plugin uses NOAA station data and isn’t restricted to only the USA. Any stations registered with NOAA should work, albeit it the station names may be slightly different. ie: CYQR instead of YQR (at least in my case). A list of Australian stations is available here. Alas, I don’t see Latrobe Valley in the listing (and honestly don’t know where that is … except in the province of Victoria in Australia). You might be able to get away with using YMML (Melbourne). If not, you could always rewrite the plugin to use a more local source.

    Art: When calling the plugin, you can define the beginning/end tags for each line (this comes right after the station ID). By default, this is set to and respectively. Just change those to match the rest of your sidebar and you should be fine.

    Jeremiah: You might want to install Spam Karma (or the like).

  10. Garett Says:

    Oops. That should have been Andrew, not just Molasar.

    Molasar: The plugin works for the METAR Code of SGAS (I just tried it). I wouldn’t worry too much about the length of the METAR data, since it varies with weather conditions.

    For example, your current METAR data looks like this:
    SGAS 261900Z 15008KT CAVOK 21/08 Q1022

    Though, I should mention that your last METAR data posted didn’t work … could it have been corrupted?

  11. Mike Says:

    I have it on my blog, but I can’t figure out how to use it on another webpage just as a php script.

    Help?

    -Mike

  12. Jeremiah Says:

    Mike:
    there’s an old version here, thats much less dependant on wordpress.
    There may be bug still there that have been fixed in newer versions, but nothing major I don’t think.