Pointui » Home 2 Applets Showcase

[Applet] Weather from yr.no (VGA/QVGA)

(98 posts)
  1. michaelp
    Member

    This is an excellent applet, Great work! Running on O2Flame VGA WM5, .UIpro. Having problems with what appears to be resource conflicts between SlideToday and YrWeather. With both applets loaded on soft reset PointUI opens, stalls and closes most restarts. Unload one or other applet and .UI flys.

    Some requests;
    - Any chance of increasing the Background height and move Sunrise/sunset times to appear under their respective icons - times truncated in my VGA,
    - Can we have an option to present wind speed in Km/h (m/s x 3.6)

    Attachments

    1. Screen30.png (96.1 KB, 11 downloads) 9 months old
    Posted 9 months ago #
  2. tehamn
    Member

    The next version will have the following main changes:
    - Configurable unit conversion
    - Direct navigation between detailed day views
    - Some layout changes to ease qvga integration and due to unforeseen problems with the part of the world that uses AM/PM. I am not :)
    - Page with meteogram (Still working on how to display picture)

    I expect to be finsihed with this version this week

    Later versions will try to make configuring the applet a little easier. The next version will still rely on the user editing xml files

    Posted 9 months ago #
  3. tehamn
    Member

    michaelp:
    About the resource conflict, I do not think there is anything I can do with this problem. As I understand it the applets are independent. I am not using anything but standard scripting. No fancy external software or anything.

    Maybe you should start a separate thread and address the Pointui team?

    Posted 9 months ago #
  4. markdaams
    Member

    I updated my "Black" theme for this applet by adding the large background for the page that displays the weather details of the selected day. See post 21 for the updated zip file.

    Posted 9 months ago #
  5. Thanks everyone for all the great work.

    I am using a HTC Touch 3G, and have a very minor problem - the screen alignments are a little bit far to the right - so that data on the right hand side is very slightly obscured ... is it possible to fix in the CS file please? [Note screen images 1 and 3]

    I have since used some of markdaams qvgablack theme images - Great work mate!

    Attachments

    1. Screen03.png (110.8 KB, 0 downloads) 9 months old
    2. Screen02.png (109.8 KB, 0 downloads) 9 months old
    3. Screen01.png (109.4 KB, 0 downloads) 9 months old
    Posted 9 months ago #
  6. tehamn
    Member

    aussie_boi: I will check on this as well for the new version.
    I expect to be finished (sort of anyway) tomorrow.

    I see that you have omitted the yr.no logo.
    The weather data is supplied free of charge under a license and one of the conditions in the license is to always supply a link or logo with a link to the yr.no webpage.
    As the developer I am obliged to adhere to this license.

    Please include the logo in future themes.

    Posted 9 months ago #
  7. tehamn
    Member

    Here are a few screen shots of the new version
    Not many new features that are immediately visible.

    -Click and hold weather icon to get to meteogram
    -Navigation between detail pages
    -Slightly changed layout

    Attachments

    1. Screen10.png (50.4 KB, 0 downloads) 9 months old
    2. Screen09.png (39.7 KB, 1 downloads) 9 months old
    3. Screen08.png (53.1 KB, 0 downloads) 9 months old
    4. Screen07.png (63.2 KB, 1 downloads) 9 months old
    Posted 9 months ago #
  8. xpres
    Member

    btw i noticed the app always loads data from the website whenever home2 starts, which happens quite alot for alot of us because of limited memory on our phones. Sometimes I dont have data connection coverage, n it enters a perpetual loop. Is there a way to make it pick up the old data on startup and only refresh on the new data arrival time(or according to the settings.txt file).

    Posted 9 months ago #
  9. tehamn
    Member

    OK. I will do this in the next update
    As I run Home2 continously and have a fixed rate data connection I never thought of that

    Posted 9 months ago #
  10. ler329
    Member

    @aussie_boi.... what theme are you using in the pictures you posted??

    Posted 9 months ago #
  11. @tehamn - sorry I didn't notice that I hadn't copied the yrlogo.jif file into my revised applet folder - done now

    @ler329
    - I am using the Sonic2.5 theme and I think the wallpaper is posted in the QVGA wallpapers topic

    I will post a few screens in the QVGA screens topic shortly.

    Attachments

    1. Screen01.png (108.4 KB, 0 downloads) 9 months old
    Posted 9 months ago #
  12. tehamn
    Member

    Added new version and png files for vga and qvga in first post.
    The new version should select vga or qvga automatically
    You can delete the graphic folder you do not need
    Backup your folder before installing new version
    There are a few new image files so if you have made a theme you will have to add these files.

    Other changes:
    - New way of handling locations. All is in the locations.xml file. No more settings.txt
    You will have to copy your changes to the new file format. Otherwise it should work as before.

    - conversions.xml file contains conversions from the standard metric system used in yr.no. Each type of info has its section and i will tr to explain how it works
    <conv use="0">
    <show>F</show>
    <name>Fahrenheit</name>
    <mult>1.8</mult>
    <add>32</add>
    <format>%.0f</format>
    </conv>

    The above shows the conversion to fahrenheit as an example. "use" should be set to 1 for the one you want to use and 0 for the rest inside one group (e.g temperature)
    <show> is used as unit in the applet
    <name> will be used when I get the config system in the applet up
    <mult> is the multiplikator
    <add> is the number to add (Mainly used for fahrenheit)
    <format> is the format this number will be presented with in the applet
    The conversion will be used on all pages of the applet
    I have included the conversions I could think of but it is possible to add your own using the same format as described above.

    -The configuration system is reached by click and hold the location
    As of this version, only the autoupdate will work. The unit setup will come in a later version

    - Arrow buttons in detailed view for navigating between the available days
    I have also moved the units down to the bottom of the deailed page to save some space

    -Click and hold to show meteogram (This is not fully functioning yet)

    The terms files have been added to so if anyone have done any translations, you will have to update. Also, please post any translated terms files.
    If you use the file naming convention in Pointui, the applet will automatically select your language

    I hope I have remembered all changes and that you will find them usable
    As always, can someone check the qvga version in case I have overlooked something

    Posted 9 months ago #
  13. @tehamn - Thank you for the update :P

    Posted 9 months ago #
  14. michaelp
    Member

    looking good! Thank you for your work.

    Posted 9 months ago #
  15. eddym
    Member

    tehamn, thanks for this update. The way you solved the handling of the different units is very good. I see no layout problems in the QVGA version, but If I change the city from Stavanger to any other city I don't get that city's weather. I looked in the locations file and the idx has changed though. Could this be due to using a QVGA device?
    BTW, I cannot change the units in the setup screen, but editing the conversions.xml file works ok.

    Posted 9 months ago #
  16. tehamn
    Member

    eddym: I will check the city problem. It should not depend on vga/qvga

    The unit setup screen is not yet finished but will be in the next update.
    So for now you will have to edit the xml file

    Posted 9 months ago #
  17. tehamn
    Member

    A small bug. Fixed now I think.
    Can you check this version?

    Attachments

    1. YrWeather_cs_bugfix.zip (12.4 KB, 42 downloads) 9 months old
    Posted 9 months ago #
  18. markdaams
    Member

    thanks tehamn, this fixes the locations bug.

    I still have another bug though, I don't know if it's just me or if others also have experienced this but when I press the back button on the meteogram page, Home2 first freezes for a couple of seconds and then crashes.

    Posted 9 months ago #
  19. eddym
    Member

    @tehamn: problem solved, Thanks!
    @markdaams: no problem with the meteogram page and back, maybe a memory issue?

    Posted 9 months ago #
  20. tehamn
    Member

    I do not have this bug
    My applet does nothing when you press the back button.
    This is a built-in function in Pointui (branch)

    On the other hand, the image loaded is larger than the screen so this may affect the stability of Pointui. Looks like something is wrong as I am not able to set the position of the image properly. Until we get the error messages, its diffcult to find whats wrong (The sandbox is only for v2.0.28). Better not use the meteogram until I have finished it.

    Posted 9 months ago #
  21. tehamn
    Member

    I am thinking about the reload logic and here is my thoughts

    From load and activate:
    -Check if location in locations.xml matches the current xml file.
    -If not start a reload.
    -If they match, check if autoupdate is on.
    -If autoupdate is off do nothing
    -If Autoupdate is on, check if the current xml file is expired and do a reload if it is.

    From changed loaction: Force a reload

    Manual reload button forces a reload

    Does this sound like a good reload policy?

    Posted 9 months ago #
  22. markdaams
    Member

    Just added the Black Theme for the 1.1 version of the applet. See post 21 for the updated files.

    Posted 9 months ago #
  23. eddym
    Member

    tehammn, about your reload policy, I would say that you first check if autoupdate is on, and then do your procedure. If the user wants to display non existing data, because the city chosen is not available, the user should decide to make a connection to the internet, using the update button. If no data is available a simple message would suffice and invite the user to update, like: "No data available, please update." This would prevent excessive data usage for those not so lucky to have an always-on internet connection. Maybe you could consider storing multiple forecast files for different cities.

    Posted 9 months ago #
  24. Jasper_jt
    Member

    I got the weirdest behavior of the applet after installation of 1.1 - it obviously thinks it is already 11th of June in Stockholm ;) The other locations show 10th ;)

    Posted 9 months ago #
  25. tehamn
    Member

    All dates are retrieved fom the currentforecast.xml file
    The dates are also stating the date the forecast is valid for and not necessarily the current date. If you update at 1700 e.g. the forecast will normally be for the period from 0000-0600 the next day. Other locations may not have the same timeperiods as Norway and Sweden.

    Check this first and let me know.
    And by the way, it is 11. June in Stockholm now.

    Posted 9 months ago #
  26. tehamn
    Member

    eddym: ok I agree with you there.
    Next update will be with separate files for each location.
    Only the current location will be downloaded when a reload is performed.

    When you change location with autoupdate, it will first check if there is a valid file for this location before reloading.

    Without autoupdate, it will never download if you do not press the reload button.

    Posted 9 months ago #
  27. trondis23
    Member

    I have problems with locations containing æ, ø or å again with the new version, specifically places in Sør-Trøndelag. This time I remembered to save the locations file as UTF-8.

    Posted 9 months ago #
  28. tehamn
    Member

    trondis23: It looks like the savetofile function in Pointui is not saving to utf-8.
    As I am editing this file when you select location, it is saved through the applet.
    I have posted a question on this.

    If I can not find a solution to this, I will have to do some slight changes

    Posted 9 months ago #
  29. eddym
    Member

    Maybe you can also try to fix the scripting errors, as given in the latest Pointui build 2.1. TIA

    Posted 9 months ago #
  30. tehamn
    Member

    Yes, will do that.

    Posted 9 months ago #

RSS feed for this topic

Reply »

You must log in to post.