• Resolved fusiongov

    (@fusiongov)


    Hello
    Is it possible to display a list with multiple city forecasts. For example i want to show in single page actual forecast for 10 cities

    • City 1 / Temp value
    • City 2 / Temp value
    • City 10 / Temp value


    I am also interested in min and max temperature values.
    Thanks for support

    http://ww.wp.xz.cn/plugins/wp-forecast/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter fusiongov

    (@fusiongov)

    Here it is how i implemented it
    http://lajmetshqip.com/category/moti/

    Plugin Author tuxlog

    (@tuxlog)

    Yes I think this is possible.

    You can add the different locations via shortcode

    [wpforecast id=”A” lang=”de_DE” width=”300″ height=”500″]

    and change the css to whatever you want the layout to be.

    For this copy wp-forecast-default.css to wp-forecast.css and then edit wp-forecast.css. This will asure your css changes will not be overwritten during updates.

    Thread Starter fusiongov

    (@fusiongov)

    What i was refered was this: Link Thant why i was interested for max and min values

    Thread Starter fusiongov

    (@fusiongov)

    Maybe im asking too much 🙂 I need some help if possible. At the end of the page i have created a widget for my header but cant figure out how to get image and temperature
    http://lajmetshqip.com/category/moti/

    Plugin Author tuxlog

    (@tuxlog)

    Hey again,

    unfortunately wp-forecast and accuweather does not support min / max temperature in the frontend at the moment. But I can add this to the wishlist or you can ask me to extend wp-forecast especially for you but this will be a premium service.

    Alternatively if you use weatherbug, the information is in the data interface. So if you are a php developer you can do it your self getting the data with
    $res=wp_forecast_data("A","en_US");
    which gets you the data into the array $res.
    You have to look for the index fc_dt_htemp_<daynor> and fc_dt_ltemp_<dayno>

    BTW, how many cities do you want to show the weather data for? And did you check the terms of usage of accuweather or weatherbug?

    Hope this helps.

    Thread Starter fusiongov

    (@fusiongov)

    Hello
    I would like to show the forecast for all the 24 cities like the example in my single page above but would also like to make a sidebar widget with 10 biggest cities like .jpeg above. So i need to create 24 widgets/posts in category weather. I think min/max values will be a great feature for this plugin, so add it to wish list 🙂 ill take a look at the code above but im not a php developer. Regarding the terms of usage, to tell the truth, no i didnt read it. So is it possible just to sho image and current temp. How can i get it?

    Plugin Author tuxlog

    (@tuxlog)

    Hi,

    well, in this case I would recommend to use the shortcode on a page or post. You have to add the locations in the wp-forecast admin dialog, select the data you want to show and then enter the shortcodes as described above.

    To adjust the layout use the css files as described above.

    For the sidebar add ten widgets for the location you like.

    If you want to raise the number of locations (wp-forecast suports up to 20 locations) you have to raise the $wpf_maxwidgets=20; line in wp-forecast.php

    But please make sure to align with the terms of usage of your selected weatherdata provider. You can find the terms of usage at their webpages.

    I added min/max temp to the wishlist.

    I’m looking for a plugin that will display the weather for the warmest city in the US. Or if that’s not possible, I’d like to display the weather for multiple locations I’ve set – but one at a time so on one page load it displays location A and another page load may display location B. Are either of these things possible with your plugin?

    Plugin Author tuxlog

    (@tuxlog)

    You can show the weather for multiple cities (max. 20). I would recommend using shortcodes to insert the weather into pages or posts.

    I have no idea how to find the warmest city.

    See details in the wp-forecast reference at http://www.tuxlog.de/wordpress/2008/wp-forecast-reference-v17-english/

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Display multiple city forecasts’ is closed to new replies.