Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3681146
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T03:39:32+00:00 2026-05-19T03:39:32+00:00

I have a new website that will need to display a water display in

  • 0

I have a new website that will need to display a water display in a div

I’d like to display :

  • place name
  • weater in c or f
  • icon
  • text of what the icon mean

I need to get weather from CANADA (QUEBEC)
it must look like : havre-saint-pierre : aujourdhui : 18c, passages nuageux

Where and how can I get a up-to-date stream of weather data?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T03:39:32+00:00Added an answer on May 19, 2026 at 3:39 am

    Forget yahoo, the most easy and fast way to do that is with google weather API, you didnt specify what programing skill you have, so i will asume you know php and html, here is your code:

    <?
    $xml = simplexml_load_file('http://www.google.com/ig/api?weather=jakarta');
    $information = $xml->xpath("/xml_api_reply/weather/forecast_information");
    $current = $xml->xpath("/xml_api_reply/weather/current_conditions");
    $forecast_list = $xml->xpath("/xml_api_reply/weather/forecast_conditions");
    ?>
    <html>
        <head>
            <title>Google Weather API</title>
        </head>
        <body>
            <h1><?= print $information[0]->city['data']; ?></h1>
            <h2>Today's weather</h2>
            <div class="weather">       
                <img src="<?= 'http://www.google.com' . $current[0]->icon['data']?>" alt="weather"?>
                <span class="condition">
                <?= $current[0]->temp_f['data'] ?>&deg; F,
                <?= $current[0]->condition['data'] ?>
                </span>
            </div>
            <h2>Forecast</h2>
            <? foreach ($forecast_list as $forecast) : ?>
            <div class="weather">
                <img src="<?= 'http://www.google.com' . $forecast->icon['data']?>" alt="weather"?>
                <div><?= $forecast->day_of_week['data']; ?></div>
                <span class="condition">
                    <?= $forecast->low['data'] ?>&deg; F - <?= $forecast->high['data'] ?>&deg; F,
                    <?= $forecast->condition['data'] ?>
                </span>
            </div>  
            <? endforeach ?>
        </body>
    </html>
    

    Good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am relatively new to MVC3, and am developing a website that will need
I'm building a website that will need to have diff mobile layouts depending on
I have a new website that is linked to from many places but the
I have a new version of my website that I'm ready to golive. This
I need to build a website where we display data that is refreshed every
I have an ASP.NET website that will hit about 2gb physical memory used within
could someone help me, i need a php statement that will display an image
I have a web service that I need to run on a website. It
We just switched to our new website redesign. We have a copy of the
I have successfully automated the process of creating a new IIS website, however the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.