Pointui » Home 2 Applets Showcase

[Applet] 5 days forecast Applet 2.2 [SONNAR, Accuweather] [VGA,QVGA](6/3/09)

(417 posts)
  1. I decide to attach Applet I'm using. I still use weather.com to get XML Data in this Applet so I must change the cities.xml
    You have to restart the applet to get it to re-load the cities list (no need to restart Home 2, I think)

    --------------------------------------
    Version 1.0
    I have just edit some cities, but you can add your city easily in cities.xml:
    <item>
    <id>ASXX0032</id>
    <text>Darwin</text>
    <unit>s</unit>
    <gmtOffsetMinutes>570</gmtOffsetMinutes>
    </item>

    You can get <id> at 'http://xoap.weather.com/search/search?where=[cityname]'
    <unit> s: system m: metric
    Another thing: I'm using the ID and Key of weather.com in 'setting.txt'. If you have any problem in query XML Data, you can register a free account to get your own ID and Key, here

    -Change interface
    -Include QVGA version, but I thinks there are some bugs...
    Version 2.0
    Hey, after long time without any update. I actually wait for 2.0.18b version. Let see what new in this version, and lest test...:).

    Two important things in this version:
    - You can search a city name and choose exact city to add to cities.xml
    - A new definition is "favourite cities". At present, there are 5 "slot" to add favourite cities. Why 5? Now, You can update all favourite cities at the same time, so it will be slow to update >5 cities (I think).In favorite cities screen, there 2 mode: edit, delete (Press Toogle mode soft key to switch)
    - Add new weather icon to express exact weather condition

    Version 2.1 SONNAR UI with Accuweather data
    In previous versions, I used weather.com to get weather data. I know that: it's not synchronous with the other pointui applet. From the first posted version, I've tried to found the way to get data from accuweather.com. And Now It's real in this update.
    What's new?
    - Now you can use cities.xml from other Applet (Today, World). Just add new xml node <unit>1</unit> for C, <unit>0</unit> for F (If ignore, C unit is used by default). So the previous version cities.xml not work in this version..
    - Attach SONNAR UI and new weather icons. Thank appelton and everyone for great idea about concept ui.
    Problem
    - The "search city" function hasn't work yet. So I removed from configure screen. It will come back in next update.
    -QVGA version is coming soon...:)

    Version 2.2
    - Fix some bugs
    - "Search city" function come back...:)
    - Include QVGA version

    REMEMBER BACK UP YOUR CURRENT CITIES.XML
    You must edit "favourite cities" to choose what you want to update...[/i]

    Attachments

    1. [VGA]Weather_2.2_[SONNAR,Accu].zip (1159.6 KB, 8,109 downloads) 1 year old
    2. [QVGA]Weather_2.2_[SONNAR,Accu].zip (366 KB, 12,856 downloads) 1 year old
    3. Weather_2.0_VGA_[SONNAR,Accu].zip (1154.6 KB, 835 downloads) 1 year old
    4. weathersonnar2.JPG (63 KB, 540 downloads) 1 year old
    5. weathersonnar1.JPG (62.5 KB, 348 downloads) 1 year old
    6. WeatherVGA_2.0_beta_2.zip (164.4 KB, 1,437 downloads) 1 year old
    7. WeatherQVGA2.0.zip (94 KB, 3,154 downloads) 1 year old
    8. WeatherVGA2.0beta.zip (162.6 KB, 435 downloads) 1 year old
    9. weather_view.JPG (71.1 KB, 429 downloads) 1 year old
    Posted 1 year ago #
  2. http://www.google.com/search?rlz=1C1GGLS_enUS300US303&sourceid=chrome&ie=UTF-8&q=xml+weather

    There is a couple to choose from.... btw all you attached was a screen shot.

    Posted 1 year ago #
  3. I will attach the applet when I solve the problem with free 5 days forecast XML data.

    Cheer...!
    Sorry for my English...:)

    Posted 1 year ago #
  4. This looks great! One of the most helpful applet that's being made!
    Would http://www.accuweather.com/ do the job? It's what allot of other apps use for weather. I can't wait for this applet! YOU ROCK!

    Posted 1 year ago #
  5. robotphood
    Member

    Can you use a different weather site? Accuweather?

    Posted 1 year ago #
  6. I can only achieve 2 days forecast XML Data from accuweather.com(today & tomorrow) . So I use weather.com and register an account to get 5 days forecast XML Data. That's problem...!

    Sorry for my English...:)

    Posted 1 year ago #
  7. yes this is going to be another important applet for me. if you can animate the weather icon, that'll be the best!

    Posted 1 year ago #
  8. Nice Work. Looking forward to use it.

    Posted 1 year ago #
  9. How about Yahoo. They do it through weather.com but you don't need to register to get it through their server.

    Posted 1 year ago #
  10. MykCer
    Member

    Hopefully...the updating is not similar to the existing weather applet...because everytime i connect via activesync something goes wrong... maybe you can make it update similar to the Spb panel...with no hassle...thanks in advance...

    Posted 1 year ago #
  11. I has just found a place to get free 5 days forecast XML Data. I think i will use this, but must rewrite the code. I thinks I will complete in some days...

    Sorry for my English!

    Posted 1 year ago #
  12. Your English is really good why are you keep saying sorry for your English? Are you kidding or what?

    BTW, Thanks for making this Applet.

    Posted 1 year ago #
  13. robotphood
    Member

    Looking forward to this applet as well. Are you from Vietnam?

    Posted 1 year ago #
  14. Hi blueocean,

    Moved your thread in Applet forums.

    Posted 1 year ago #
  15. Now include applet to test....
    Have fun :)

    Posted 1 year ago #
  16. olivier
    Member

    Great job !
    But this is the VGA version, isn't it ?
    Can you set a QVGA version please ?

    Posted 1 year ago #
  17. ekyle
    Member

    After the area code or zip code can't you just add (i think) &fday3. And so forth up to day 5? I might be wrong, I don't work with XML too much.

    Posted 1 year ago #
  18. CyberKurt
    Member

    VERY nice, BUT:

    It only shows in F (Fahrenheit)?

    I live in Copenhagen, Denmark and we use C (Celcius).... The World and App. screen shows it right in C.

    Something I can fix myself?

    Posted 1 year ago #
  19. olivier
    Member

    Hi cyberkurt, just set unit=m in the city.xml file.

    Posted 1 year ago #
  20. Jotuns
    Member

    Hi

    Great Applet. Is anyone else only seeing cities up to Islamabad on the list or am I being a numpty ?

    Posted 1 year ago #
  21. stefin18
    Member

    Yes!

    Great job

    QVGA please ?

    Posted 1 year ago #
  22. Paulojdaniel
    Member

    Great... but, can you set a QVGA version please ?

    Posted 1 year ago #
  23. hi blueocean,

    some comments/suggestion to improve on the applet,

    1. make the metric setting to be universal, instead of setting it in the cities.xml

    2. I tried to use SNXX0006 for Singapore, but it doesn't work. using the xoap link you listed earlier doesn't yield the ID, but instead a list of cities name are returned. How do I get the ID for city/country "Singapore"?

    Posted 1 year ago #
  24. CyberKurt
    Member

    GREAT! . That did the job ;)

    Posted 1 year ago #
  25. In next update, maybe i will add 'seach city' funtion and update to cities.xml, so it's easy to use. How do you thinks?...

    Posted 1 year ago #
  26. blueocean, that'll be great (for you to add/update cities to the cities.xml). In addition, have the unit preference applicable to all cities, per my earlier comment.

    PS: I finally could get my city's weather updated after removing and adding the applet.

    Posted 1 year ago #
  27. Rumble
    Member

    can someone please update this to include cities from the UK?
    preferably, Nottingham/ Derby.
    had a go myself, but cannot figure out how to do it as i have never done any scripting/ coding before.
    if noone has time to do it, can someone give me details of how to modify the script to use these cities.
    i have got all the information from the recommended site

    http://xoap.weather.com/search/search?where=[Derby]

    but still cannot figure it out.

    thanks in advance.
    Matt

    Posted 1 year ago #
  28. ratm980
    Member

    UOOOHHH !!

    OK WORK PERFECT

    THANKS

    Posted 1 year ago #
  29. bryanr
    Member

    Rumble (and others!)

    If you go to the page you suggested in your web browser, e.g.
    http://xoap.weather.com/search/search?where=[Derby]

    then do a "View Source" (or whatever it's called in your preferred browser), you'll see the XML returned by your query, which will look something like this:

    <search ver="3.0">
    <loc id="ASXX0034" type="1">Derby, Australia</loc>
    <loc id="UKXX0040" type="1">Derby, United Kingdom</loc>
    <loc id="USCT0051" type="1">Derby, CT</loc>
    <loc id="USIA0230" type="1">Derby, IA</loc>
    <loc id="USIN0161" type="1">Derby, IN</loc>
    <loc id="USKS0149" type="1">Derby, KS</loc>
    <loc id="USNY0386" type="1">Derby, NY</loc>
    <loc id="USOH0257" type="1">Derby, OH</loc>
    <loc id="USVT0056" type="1">Derby, VT</loc>
    <loc id="USVT0057" type="1">Derby Line, VT</loc>
    </search>

    I assume you're after the Derby in the UK, so you want the second entry:
    <loc id="UKXX0040" type="1">Derby, United Kingdom</loc>

    Add a new Item to your Cities.xml file (I removed all of them and just created new ones for the towns I was interested in), copying the id and setting the text as required:

    <item>
    <id>UKXX0040</id>
    <text>Derby, United Kingdom</text>
    <unit>m</unit>
    <gmtOffsetMinutes>0</gmtOffsetMinutes>
    </item>

    Repeat as required for the other locations you want. I've ended up with a very small Cities.xml file containing just the few towns I visit most often.

    A nice feature would be for you to be able to do this search, then add and delete new towns from the applet itself.

    Hope this helps!

    Bryan.

    Posted 1 year ago #
  30. Rumble
    Member

    done, thanks very much :-)

    Posted 1 year ago #

RSS feed for this topic

Reply »

You must log in to post.