WordPress.org

Ready to get started?Download WordPress

Forums

wp-forecast
[resolved] UV index and Pressure (9 posts)

  1. eldenroot
    Member
    Posted 10 months ago #

    Hi,

    it would be nice if you can add UV index and pressure in pascals (kilopascals)... at least for accuweather.

    Googleweather API is not working anymore and weatherbug su*ks...

    Thank you

    http://wordpress.org/plugins/wp-forecast/

  2. tuxlog
    Member
    Plugin Author

    Posted 10 months ago #

    Hi eldenroot,

    you can display the pressure in pascals if you switch to metric units in the admin dialog. This can be set on a per widget base.

    It is a good idea to add the UV index which is included in the accuweather XML feed. For the forecast this would be the max. UV index forecasted and for the current conditions it would be the current UV index. I add this to my todo-list at http://www.tuxlog.de

  3. eldenroot
    Member
    Posted 10 months ago #

    OK, when I switch to metric unit I get °F instead of °C ... I am from Europe and I would like to have °C and Pascals (kilopascals).

    UV index +1 - really good feature for sites focused on weather ;)

  4. tuxlog
    Member
    Plugin Author

    Posted 10 months ago #

    When you switch to metric units you should get Celsius and millibar which is the same as hectopascal. You can see this at tuxlog.de in the sidebar.

    wp-forecast takes the units which come from accuweather but if you want to change the label for the pressure unit this can easily be changed in line 327 of func_accu.php
    from
    $weather_arr['pressure'] = $press . " " . $w["un_pres"];
    to
    $weather_arr['pressure'] = $press . " hP";

    Hope I got you wright

  5. eldenroot
    Member
    Posted 10 months ago #

    OK, anyway it would be nice have this option in setting :)

  6. eldenroot
    Member
    Posted 10 months ago #

    and it should be hPa, not hP... or am I wrong?

    is possible to show it in kPa?

  7. tuxlog
    Member
    Plugin Author

    Posted 10 months ago #

    I added UV-Index to the v4.6 I released yesterday.

    As far as I know kPa is only used in car engineering not for the Weather. But you are wright with hPa.

    Do you know why accuweather uses mBar and not hPa for metric units in europe? I can not find anything about this.

  8. eldenroot
    Member
    Posted 10 months ago #

    I have no idea... I just edited the code for weather plugin and now I have hPa...

    I think we have in Europe (at least in the Czech Republic) - °C, m/s and hPa... not mBar - I see this for first time in weather

  9. eldenroot
    Member
    Posted 10 months ago #

    there is mbar for europe...
    http://www.accuweather.com/en/cz/olomouc/124966/current-weather/124966

    and nice wind radar :) something like this would be nice to have in wp-forecast...

    just 8 images with different direction which are changed by wind direction N, NW, E, ... and speed of wind inside the circle

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.