This article will develop weather queries that everyone cares about every day. for example, if a user sends a message "Huanggang weather", the user will return the real-time weather conditions of Huanggang, and the weather conditions in the next two or even five days. This article will develop
Starting with the Windows Vista system, the Windows operating system adds a new gadget, with a rich gadget resource from Microsoft and programming enthusiasts.The Windows 7 system comes with 9 gadgets, such as CPU dashboards, weather, clocks, currency, and so on, as shown in the figure:
Put
this picture away.
expand this picture
With these gadgets, you can easily view instant messages and access common to
Google weather API only supports querying by zip code in the United States. For example:
Http://www.google.com/ig/api? Hl = ZH-CN weather = 94043
(94043 is the zip code of Mountain View city, California, USA)In addition to the United States, you must use latitude and longitude coordinates as parameters to execute the Google weather API. For example:
Http://www.g
First, Introduction
Several previous articles on the micro-letter public platform for the opening and simple use did a simple introduction, but did not relate to the actual use of the problem, such as weather inquiries, bus inquiries, express inquiries. The next few articles will be used in real life will often use some of the functions of the development to explain, for the reader's reference.
This article will be on the daily concern of the
The Google Weather API only supports U.S. regions using ZIP codes for queries, such as:http://www.google.com/ig/api?hl=zh-cnweather=94043(94043 for Mountain View, California, United States ZIP code)In addition to the United States outside the region need to use latitude and longitude coordinates as a parameter to run the Google Weather API, such as:http://www.google.com/ig/api?hl=zh-cnweather=,,, 30670000,1
The Google Weather API only supports U.S. regions using ZIP codes for queries, such as:http://www.google.com/ig/api?hl=zh-cnweather=94043(94043 for Mountain View, California, United States ZIP code)In addition to the United States outside the region need to use latitude and longitude coordinates as a parameter to run the Google Weather API, such as:http://www.google.com/ig/api?hl=zh-cnweather=,,, 30670000,1
Win8 built in the weather forecast has been relatively simple, the recent Microsoft's application has been greatly upgraded, the new version increased real-time temperature, 7th weather, hourly forecast, satellite cloud, historical temperature and other functions, enough seconds to kill any third party weather software. Gossip less, together to understand it!
There are various methods to provide weather information on Ubuntu Desktop. You can use UnityDash and desktop applications to obtain weather information, such as Typhoon. However, the Panel plug-in that allows you to quickly query weather conditions and temperature data and obtain a large amount of meteorological data with one mouse click is the most popular
The Google Weather API only supports U.S. regions using ZIP codes for queries, such as:http://www.google.com/ig/api?hl=zh-cnweather=94043(94043 for Mountain View, California, United States ZIP code)In addition to the United States outside the region need to use latitude and longitude coordinates as a parameter to run the Google Weather API, such as:http://www.google.com/ig/api?hl=zh-cnweather=,,, 30670000,1
The Google Weather API only supports U.S. regions using ZIP codes for queries, such as:http://www.google.com/ig/api?hl=zh-cnweather=94043(94043 for Mountain View, California, United States ZIP code)In addition to the United States outside the region need to use latitude and longitude coordinates as a parameter to run the Google Weather API, such as:http://www.google.com/ig/api?hl=zh-cnweather=,,, 30670000,1
Take a look at my own implementation of a weather forecast application process, this is not a completed application, each write down is the implementation of a phase, each phase to solve a problem.1. Get the JSON data for the weather forecastBecause I did not want to use XML, in the evening to check for a long time to find a can be used to return the JSON weather
Web status quo
Web Services
Concept
With Web Services
Composition
UDDI
WSDL
Weather Forecast
Web service status quoI used to introduce WSDL when I read VB. NET. Now I have learned web services, so I will take a look at the weather forecast instance. Before let's go talks about Web Services, let's talk about why Web services are generated. After all, "existence is reasonable" and the
PHP letter to inform the weather forecast _API version
If conditions allow you to use scheduled tasks on the server to send weather forecasts to yourself or your loved ones at a fixed time each day
Adopt the official web interface of flying letter
Sometimes a problem with server speed may result in an unsuccessful delivery. It's normal.
/***********************************************************
The Google Weather API only supports U.S. regions using ZIP codes for queries, such as:http://www.google.com/ig/api?hl=zh-cnweather=94043(94043 for Mountain View, California, United States ZIP code)In addition to the United States outside the region need to use latitude and longitude coordinates as a parameter to run the Google Weather API, such as:http://www.google.com/ig/api?hl=zh-cnweather=,,, 30670000,1
The Google Weather API only supports U.S. regions using ZIP codes for queries, such as:http://www.google.com/ig/api?hl=zh-cnweather=94043(94043 for Mountain View, California, United States ZIP code)In addition to the United States outside the region need to use latitude and longitude coordinates as a parameter to run the Google Weather API, such as:http://www.google.com/ig/api?hl=zh-cnweather=,,, 30670000,1
The Google Weather API only supports U.S. regions using ZIP codes for queries, such as:http://www.google.com/ig/api?hl=zh-cnweather=94043(94043 for Mountain View, California, United States ZIP code)In addition to the United States outside the region need to use latitude and longitude coordinates as a parameter to run the Google Weather API, such as:http://www.google.com/ig/api?hl=zh-cnweather=,,, 30670000,1
Linux-shell get weather
Using the shell in Linux to get the weather is difficult. It turns out that it is really simple and the single-digit code will be done.
1. obtain the corresponding city weather
All weather information is obtained from China weather network. Each cit
Note that the region must be transcodedBaidu ak application address: http://lbsyun.baidu.com/apiconsole/key
Copy codeThe Code is as follows:
$ City = "Jiaxing ";$ Content = file_get_contents ("http://api.map.baidu.com/telematics/v3/weather? Location = % E5 % 98% 89% E5 % 85% B4 output = json ak = 5slgyqGDENN7Sy7pw29IUvrZ ");Print_r (json_decode ($ content ));
Copy codeThe Code is as follows:{Error: 0,Status: "success ",Date: "2014-04-18 ",Results :[
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.