Click here to Skip to main content
15,888,205 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello all,
I want to get PUNE city's weather from "http://www.imd.gov.in/" site in C# application.
Is there any webservice i need to call or other any way to get current day's weather from this site?

Please help me...
Posted

Why don't you Google and check?
for example found This[^] API but it is not free.
There are may be World wide APIs may be suitable to your requirements. You need to read and study there terms and conditions and also the data you get from the API.
check Best Weather APIs free for commercial use?[^]
 
Share this answer
 
C#
using (WebClient wc = new WebClient())
          {
              string html = wc.DownloadString("http://202.54.31.7/citywx/city_weather1.php?id=43003");
              MessageBox.Show("Maximum Temp :"+ html.Substring(html.IndexOf("Maximum Temp") + 76, 4));
              MessageBox.Show("Minimum Temp :" + html.Substring(html.IndexOf("Minimum Temp") + 77, 4));
          }
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900