"PHP Public Platform Development Series"
01. Configure the interface02. Public Platform Sample Code analysis03. Subscription event (SUBSCRIBE) processing04. Simple Reply Function development05.API Weather forecast Function development
This address: http://www.phpchina.com/archives/view-43387-1.htmlThis series by Phpchina invited author @david_tang feeds, reprint please indicate the author information and t
One: interface addressInterface Address:Http://www.weather.com.cn/data/sk/101010100.htmlHttp://www.weather.com.cn/data/cityinfo/101010100.htmlHttp://m.weather.com.cn/data/101010100.html101010100 of the URL is the city code, here is the city code of Beijing. You just need to change the city code to get the weather information for your city.Two: Java Tool class call weather interface Three: Output resultsCent
Java an open source parsing HTML program Jsoup HTML parsing, and let us like the CSS operation to get the parsed content, this article uses its characteristics to parseJsoup Open source jar package please download it yourselfpublicclassweatherinfo{/***@ Paramargs*/publicstaticvoidmain ( String[]args) {getcityweatherinfo (); //getcityandurl (); }/** *jsoup.connect example * get Weather Forecast web page, and
=cnGoogle has opened a weather API, which is very useful.Use ZIP code (US)http://www.google.com/ig/api?hl=zh-cnweather=94043 (Mountain View, California)Use latitude and longitude coordinateshttp://www.google.com/ig/api?hl=zh-cnweather=,,, 30670000,104019996 (Chengdu)Use the city name of the passHTTP://WWW.GOOGLE.COM/IG/API?WEATHER=BEIJINGAMP;HL=ZH-CN (Beijing)HTTP://WWW.GOOGLE.COM/IG/API?
=cnGoogle has opened a weather API, which is very useful.Use ZIP code (US)http://www.google.com/ig/api?hl=zh-cnweather=94043 (Mountain View, California)Use latitude and longitude coordinateshttp://www.google.com/ig/api?hl=zh-cnweather=,,, 30670000,104019996 (Chengdu)Use the city name of the passHTTP://WWW.GOOGLE.COM/IG/API?WEATHER=BEIJINGAMP;HL=ZH-CN (Beijing)HTTP://WWW.GOOGLE.COM/IG/API?
=cnGoogle has opened a weather API, which is very useful.Use ZIP code (US)http://www.google.com/ig/api?hl=zh-cnweather=94043 (Mountain View, California)Use latitude and longitude coordinateshttp://www.google.com/ig/api?hl=zh-cnweather=,,, 30670000,104019996 (Chengdu)Use the city name of the passHTTP://WWW.GOOGLE.COM/IG/API?WEATHER=BEIJINGAMP;HL=ZH-CN (Beijing)HTTP://WWW.GOOGLE.COM/IG/API?
=cnGoogle has opened a weather API, which is very useful.Use ZIP code (US)http://www.google.com/ig/api?hl=zh-cnweather=94043 (Mountain View, California)Use latitude and longitude coordinateshttp://www.google.com/ig/api?hl=zh-cnweather=,,, 30670000,104019996 (Chengdu)Use the city name of the passHTTP://WWW.GOOGLE.COM/IG/API?WEATHER=BEIJINGAMP;HL=ZH-CN (Beijing)HTTP://WWW.GOOGLE.COM/IG/API?
Example:http://blog.csdn.net/kvw3000This article collects and collates, thanks each section code provider!
Finishing: Go home and Chant (Wang Jitai)
1. Announcements and Counters2. Weather forecast3. The firefly following the mouse4. Status bar text5. Follow the mouse text6. Automatically displays a different maxim at the top subtitle position each time it is opened7. Flash exquisite clock (add)
The appropriate functionality can be achieved by addi
=cnGoogle has opened a weather API, which is very useful.Use ZIP code (US)http://www.google.com/ig/api?hl=zh-cnweather=94043 (Mountain View, California)Use latitude and longitude coordinateshttp://www.google.com/ig/api?hl=zh-cnweather=,,, 30670000,104019996 (Chengdu)Use the city name of the passHTTP://WWW.GOOGLE.COM/IG/API?WEATHER=BEIJINGAMP;HL=ZH-CN (Beijing)HTTP://WWW.GOOGLE.COM/IG/API?
=cnGoogle has opened a weather API, which is very useful.Use ZIP code (US)http://www.google.com/ig/api?hl=zh-cnweather=94043 (Mountain View, California)Use latitude and longitude coordinateshttp://www.google.com/ig/api?hl=zh-cnweather=,,, 30670000,104019996 (Chengdu)Use the city name of the passHTTP://WWW.GOOGLE.COM/IG/API?WEATHER=BEIJINGAMP;HL=ZH-CN (Beijing)HTTP://WWW.GOOGLE.COM/IG/API?
Guidance:The weather forecast program that everyone cares about every day is recorded here.Host song Yingjie. (Data Map) Qingdao News Network reported on March 13, August 2 The weather forecast, which is published at every day, is called the program with the highest rating in China. It is also the most popular program
=cnGoogle has opened a weather API, which is very useful.Use ZIP code (US)http://www.google.com/ig/api?hl=zh-cnweather=94043 (Mountain View, California)Use latitude and longitude coordinateshttp://www.google.com/ig/api?hl=zh-cnweather=,,, 30670000,104019996 (Chengdu)Use the city name of the passHTTP://WWW.GOOGLE.COM/IG/API?WEATHER=BEIJINGAMP;HL=ZH-CN (Beijing)HTTP://WWW.GOOGLE.COM/IG/API?
In this article, I collected 40 sets of exquisite free weather forecast icons to share with you. These icon materials are very useful for displaying weather conditions in the weather forecast function. There are various styles of icons to choose from. I hope you can find wha
://www.google.com/ig/cities? Output = xml HL = ZH-CN Country = Cn
Google opened a set of weather forecast API, which is still very useful.
Use zip code (USA)
Http://www.google.com/ig/api? Hl = ZH-CN weather = 94043 (Mountain View city, California)
Use longitude and latitude coordinates
Http://www.google.com/ig/api? Hl = ZH-CN
This is my first time to try to do, although very rough, but can give the people who need to see, beginners can also go to understand,First on one:Then attach the code: The API request interface here is my interface for the free test of aggregation data request, the total number of times there are 500 times, I write the time is refreshed once will be loaded once, will go to request once.Now the remaining 400 times, anyway, is free, so you can register yourself and then check this API's document
Currently, the weather forecast function is often available on the home pages of various websites. How do they achieve this? In fact, this is quite simple. Now the meteorological station, Baidu, Google, youdao, and so on provide us with good service support. We can call it directly.
Currently, there are two main ways to provide services for websites:
1. Plug-ins
This method is relatively simple. You can sea
Everyone seems to be very concerned about weather forecasts. Of course, obtaining accurate weather forecasts is very useful for your travel plans and other activities. Weather forecast information can be obtained in many places, such as webpages, most smartphones or tablets. Now you can use the "wether" tool on Raspber
During Android development, we often encounter weather forecast icons. At this time, we will find a lot of online materials, and we may not find the desired results through searching, today, we have released a collection of weather forecast icons.These Icon Sets will be very helpful,With these icon settings, you can se
Document directory
Ii. Design Ideas
Android weather forecast application design (I) I. Demand Analysis
There are already many weather forecasting applications on the Android platform, including well-designed works (such as moji weather ). This article introduces a simple implementation of
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.