×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

HOW TO DISPLAY AND REFRESH WEATHER STATUS FOR PARTICULAR CITY IN MY APPLICATION

HOW TO DISPLAY AND REFRESH WEATHER STATUS FOR PARTICULAR CITY IN MY APPLICATION

HOW TO DISPLAY AND REFRESH WEATHER STATUS FOR PARTICULAR CITY IN MY APPLICATION

(OP)
I Want to show weather status in my application desktop or in window , Is there any way to do that ?

In other word can we connect to special server and get some data like weather or calendar details online ?

I do that in my weblog easily with just two line script code. Any Sample please...

thanks alot

RE: HOW TO DISPLAY AND REFRESH WEATHER STATUS FOR PARTICULAR CITY IN MY APPLICATION

(OP)
Thanks Mike
I just need to display online weather status of one city , any server can get data accepted like google weather , accuweather , theweathernetwork

But I dont any Idea about how can comunicate with these server and obtain data

vfp can use any scipt cod like this ?

<!-- Begin WebGozar.com Counter code -->
<script type="text/javascript" language="javascript" src="http://www.webgozar.ir/c.aspx?Code=3712999&amp..." ></script>
<noscript><a href="http://www.webgozar.com/counter/stats.aspx?code=37..." target="_blank" rel="nofollow" >&#1570;&#1605;&#1575;&#1585;</a></noscript>
<!-- End WebGozar.com Counter code -->


this is a cunter for visitor of one page


Or this script that can draw weather in on city in iE

http://1abzaar.ir/abzar/tools/weather/hava.php?col...

RE: HOW TO DISPLAY AND REFRESH WEATHER STATUS FOR PARTICULAR CITY IN MY APPLICATION

In a webbrowser control you can navigate to any website or display HTML by navigating to "about:blank" as URL and then set document body to your HTML.

How? You insert an OLE control on the form. A dialog pops up asking what OLE control and you pick Microsoft Web Browser

Then you can do:

CODE

Thisform.Olecontrol1.navigate(URL) 

Bye, Olaf.

Olaf Doschke Software Engineering
https://www.doschke.name

RE: HOW TO DISPLAY AND REFRESH WEATHER STATUS FOR PARTICULAR CITY IN MY APPLICATION

You first need to find a service that will give you a weather feed. There are many of these around the world. Some are free, others demand a fee.

To get you started, here a couple of possibilities, both of which I have investigated in the past:

www.metcheck.com
www.metoffice.gov.uk

In general, it doesn't matter what country the site is situated in. They nearly all give forecasts for almost every country in the world.

Once you have decided on a service, you will need to find out what format they use for their feed. Usually this will be an XML file. VFP has tools to convert XML to FoxPro tables. But we can't give you any specific advice or sample code at this stage, because each service will have its own way of formatting its data. Usually, this will be documented on the site.

Your best bet is to decide which service you want to use, then find out as much as you can about the format of their data. If necessary, download a sample. After that, if you are still stuck, come back here for specific advice.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: HOW TO DISPLAY AND REFRESH WEATHER STATUS FOR PARTICULAR CITY IN MY APPLICATION

(OP)
thanks alot OLAF

I do that and my problem solved
thanks again to you and also Mike to help us
your are very kind

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close