At the beginning, some people in today's aiming Forum have developed a similar application. It seems that beginners like this application ..
First look at the picture, there is a picture with the truth
I originally wanted to use hubtile, but it was troublesome to change the style, so I simply wrote a custom control. Relatively simple. You can preview the temperature information for three days in the panel.
Before that, we can add a city and read the weath
JSP obtains weather forecast data from WebService.
There are related code on the Internet, but it is complicated. I have improved it. It is easy to implement.
Package com. XXX. Web;
Import java. Io .*;Import java.net .*;
Import javax. xml. parsers. documentbuilder;Import javax. xml. parsers. documentbuilderfactory;
Import org. W3C. Dom. Document;Import org. W3C. Dom. node;Import org. W3C. Dom. nodelist;
Pub
Shell script-Weather Forecast-Linux general technology-Linux programming and kernel information. The following is a detailed description. I learned how to use shell. The first complete script program, referring to the code of netizens, modified some important errors and continued to refuel.
#! /Bin/bash
# Weather. sh
# How to use
mobile phones, but other htl and ZTE mobile phones can. I don't know why. 3. obtain the data in json format and use the watermark (formatted) for apt access from the Central Meteorological Observatory: {"weatherinfo": {"city": "Beijing", "cityid": "101010100 ", "temp": "-1", "WD": "North Wind", "WS": "Level 3", "SD": "18%", "WSE ": "3", "time": "15:10", "isRadar": "1", "Radar": "JC_RADAR_AZ9010_JB "}} This is a JSON data format and will be parsed to obtain the information. The required fields a
// // obtain the weather forecast information based on the city. /// // the Chinese name of a city is as follows: fuzhou //
Public static string getsinawether (string ps_cityname) { string strcity = strconv (ps_cityname, "gb2312 "); // string myuri = "http://appnews.qq.com/cgi-bin/news_qq_search? City = "+ city; string myuri =" http://weather.news.sina.com.cn/cgi-bin/figureWeather/simpleS
------ Solution -------------------- service. weather. co who has done weather forecast function
I want to use IP addresses to determine the region where the user is located and display the weather forecast of the region. how can this problem be achieved?
I found this cont
One: Environment construction1: Create a new Java Project Project Weatherinf2: Introduce the appropriate jar packageActivation.jarAxis-ant.jarAxis.jarCommons-discovery-0.2.jarCommons-logging-1.0.4.jarJaxrpc.jarLog4j-1.2.8.jarMail.jarSaaj.jarWsdl4j-1.5.1.jarDownload Axis 1.4 src Compression package, unzip to webapp/web-info/lib under the package, the specific path is as follows:http://download.csdn.net/detail/yyg64/5351114where Mail.jar and Activation.jar can be downloaded to the following path:h
+ ' data = data + ' data = data + ' VI. Create a new XMLHTTP object:if (window. ActiveXObject){Xmlhttp=new ActiveXObject ("Microsoft.XMLHTTP");}else if (window. XMLHttpRequest){Xmlhttp=new XMLHttpRequest ();}VII, add XMLHTTP, send headers, and send the package.Xmlhttp.open ("POST", URL, false);Xmlhttp.setrequestheader ("Content-type", "text/xml;charset=utf-8");Xmlhttp.setrequestheader ("SOAPAction", "http://WebXml.com.cn/getWeatherbyCityName");Xmlhttp.send (data);Eighth, deal with the content r
This paper mainly introduces the simple query weather forecast function implemented by angular, involving ANGULARJS related operation skills for third-party API interface interaction, the need for friends can refer to, hope to help everyone.
This paper describes the simple query weather forecast function implemented b
This application has been introduced in the previous article.
Article Source: http://www.cnblogs.com/wildfeng/archive/2012/03/21/2410504.html
Due to too much code and complicated front-end page effects Code, there is no way to explain it in the blog, and many netizens asked me to publish the source code project. At the bottom of the article, I provide the source code.
Author: QQ: 29992379
This weather forecast
This article uses asp.net (C #) to invoke the public webservices (http://www.webxml.com.cn/WebServices/WeatherWebService.asmx) on the Internet to implement the weather forecast, which WEB services, data from the China Meteorological Bureau http://www.cma.gov.cn/, the data automatically updated every 2.5 hours, accurate and reliable. Including more than 340 major cities in China and more than 60 major foreig
of shelter from the storm." " }, "Trav": { "BRF": "Suitable", "TXT": "There is precipitation, the temperature is appropriate, in the rain to play do not have a mood, you can not miss the opportunity yo!" But remember to carry rain gear. " }, "UV": { "BRF": "Weak", "TXT": "UV strength is weak, recommended to rub SPF in front of 12-15, pa+ sunscreen skin care products." " } } } ]}var url = "https://free-api.heweather.
Use PHP to write a weather forecast module
Weather data is collected by the Chinese meteorological website. Originally China weather website also gave the data API interface. The following is the address of the API. The returned data format is in JSON format.
1. http://www.weather.com.cn/data/sk/101010100.html
2. htt
Use php to write a weather forecast ModuleWeather data is collected through the Chinese meteorological website. Originally, the China weather website also provided APIs for data. The following is the API address. The returned data is in json format.1. http://www.weather.com.cn/data/sk/101010100.html2. http://www.weather.com.cn/data/cityinfo/101010100.html3. http:
I found that AJAX currently has a problem with cross-origin. It can only be set in IE. So I wrote a simple ASP webService, which is actually a thief program, capture Yahoo's weather and generate XML. Let's start from here. In the future, we will consider adding a database so that the client can read the database quickly after writing it.
I am used to writing things with JS. I accidentally wrote ASP all using JS. Haha, I have time to change it to VB.I
Use Feixin to send a weather forecast text message to yourself (which has just been written and is effective) php code
Geturlfile ($ url); // get content $ start =''; $ End =''; $ Content = $ gather-> get_sub_content ($ html, $ start, $ end); $ text = substr (SpHtml2Text ($ content), 42 ); // load the flying mail class (search for the class itself on the Internet) require '. /lib/PHPFetion. php '; // mob
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.