CN101093468A - Method for automatic timed updating data of weather forecast at terminal - Google Patents
Method for automatic timed updating data of weather forecast at terminal Download PDFInfo
- Publication number
- CN101093468A CN101093468A CNA2006100277378A CN200610027737A CN101093468A CN 101093468 A CN101093468 A CN 101093468A CN A2006100277378 A CNA2006100277378 A CN A2006100277378A CN 200610027737 A CN200610027737 A CN 200610027737A CN 101093468 A CN101093468 A CN 101093468A
- Authority
- CN
- China
- Prior art keywords
- data
- terminal
- module
- weather forecast
- weather
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
A method for automatically and periodically updating weather forecast data on terminal carries out automatic and periodic update on weather forecast at terminal by utilizing module of data source module, data search and detection module, data analysis module, data derivation module and data display module.
Description
Technical field
The present invention relates to the parsing that computer remote upgrades data method and Html automatically, use regular expression that data are filtered and analyzed, and the method for the data of generation standard x ML form, the particularly method of automatic timed updating data of weather forecast at terminal.
Background technology
Weather forecast is very useful service, if can integrated weather forecast on multimedia interactive terminals, can greatly make things convenient for user inquiring.Existing public place is more and more important to the real-time update demand of weather forecast, based on resource that is possessed on the present Internet and existing network interconnection technique, requirement accomplish can the real-time update terminal weather forecast information, realize making full use of of Internet resources, and offer convenience for people's life.
The program of resolving weather forecast now should be a lot, but following a few point defect is arranged on the whole, the firstth, technically, can only accomplish simply to see, and can't accomplish interactively inquiry or personalized customization, the secondth, on network upgrades, can't accomplish instant renewal, and data can't be general, in case the data variation of data source, then need to remodify code and deployment, very trouble; The 3rd is that existing weather forecast service major part all is to be used on the webpage, perhaps on the LED display on airport, really is used for the few of multimedia interactive terminals on using.
Summary of the invention
The method of the automatic timed updating data of weather forecast at terminal that purpose of the present invention purpose of the present invention is exactly a kind of data stabilization that provides in order to overcome the defective that above-mentioned technology exists, upgrade in time, can be interactive.
Above-mentioned purpose of the present invention can be achieved through the following technical solutions: the method for automatic timed updating data of weather forecast at terminal, it is characterized in that, this method is upgraded by with lower module the terminal data of weather forecast being carried out self-timing: (1) data source module, (2) data are tracked down and arrested detecting module, (3) data resolution module, (4) data derive module, (5) data disaply moudle.
Described data source module, the stable data source comprises the Central Meteorological Observatory and local observatory information releasing selecting correct on the Internet.
Described data are tracked down and arrested detecting module, after finding data source, and the page that locking is fixing, and the time of judgment data source renewal, log-on data is tracked down and arrested the data that detecting module upgrades the data server end automatically.
Described data resolution module is resolved the data of tracking down and arresting data source, the key message in the middle of extracting.As the area, the city, today weather, tomorrow weather, temperature, wind-force etc.
Described data derivation module will have been resolved the data that leave in the internal memory and exported as the standard XML formatted file, and send to each terminal.
Described data disaply moudle is by the Flash interface of terminal, read the standard XML formatted file, resolve data wherein and show, select different weather icons, and classify according to the classification in city and area and to show and data are obtained at different Weather informations.
Described method may further comprise the steps:
(1) clock detects automatically, every one hour, data is detected, and judges whether it is up-to-date Weather information; Because, must track down and arrest detecting module by automaticdata according to the update time and the renewal frequency of data source, obtain data source and whether upgrade, if upgrade, then grasp up-to-date weather data;
(2) if up-to-date weather data does not then upgrade, terminal can directly read local data and show;
(3) if not up-to-date weather data, then start the network parsing module, data source is read, with the Weather information that has upgraded, city information is resolved, and is kept in the internal memory;
(4) data derive the data that module will have been resolved, and derive module by data, generate the standard XML document, are kept at this ground of terminal;
(5) terminal reads local XML information, and the weather forecast information of correspondence is presented on the terminal.
Compare with conventional art, the present invention has the following advantages:
1, Data Update is timely: each hour all once compares with data source, can obtain the weather data information of various places the fastest time; Upgrade instant; Resolution speed is fast simultaneously, and all terminals can get access to latest data at one time;
2, data stabilization: under the situation of network guarantee, the method can guarantee 7 * 24 hours stability, if wherein there is a data source to stop to upgrade or breaking down, terminal can the instantaneously changing data source server, obtains other stable data sources automatically;
3, can be interactive: terminal be thrown in each high-grade place, can be by the Weather information in interactive inquiry each city, each department, and it is convenient to bring to people's trip.
Description of drawings
Fig. 1 forms the synoptic diagram of module for weather forecast automatic update system of the present invention;
Fig. 2 is the process flow diagram of data-updating method of the present invention;
Fig. 3 is a Weather information interactive operation of the present invention interface synoptic diagram;
Fig. 4 extracts the XML standard data synoptic diagram of swimming from mixed and disorderly html data for the present invention.
Embodiment
Present invention is described below in conjunction with accompanying drawing, so that further specify purpose of the present invention, feature and advantage.
As Fig. 1~shown in Figure 4, a kind of method of automatic timed updating data of weather forecast at terminal, this method comprises:
Data parsing begins, and tabulates according to configuration file reading of data source server;
By http protocol, from all data source server, obtain the WEB page html data of preserving weather forecast information, be kept in the internal memory simultaneously;
Use regular expression to filter out the information of all HTML identifiers and non-data division, only keep critical data, significantly reduce the content and the complexity of character string parsing part;
Use string analysis that the critical data that keeps is read in the good Weather information object of format one by one, make its uniform format conveniently to write DataSet;
Weather information object after the arrangement is write among the DataSet of standard format, can carry out the XML format behind all Weather information data serializings;
Data resolution module flow process technology waits data and derives calling of module.
The XML data are given an example: the weather forecast XML data in Shanghai
<?xml?version=″1.0″standalone=″yes″?>
<WeatherDataSet?xmlns=″http://tempuri.org/WeatherDataSet.xsd″>
<WeatherDS>
<CityName〉Shanghai</CityName 〉
<Date1〉06 month 11 days</Date1 〉
<Weather1〉cloudy</Weather1 〉
<Temp1>21℃~31℃</Temp1>
<WindPower1〉west wind commentaries on classics southeaster 4-5 level</WindPower1 〉
<Date2〉06 month 12 days</Date2 〉
<Weather2〉cloudy</Weather2 〉
<Temp2>22℃~31℃</Temp2>
<WindPower2〉southeaster 4-5 level</WindPower2 〉
</WeatherDS>
</WeatherDataSet>
For example, in multimedia industrial park, Shanghai, our terminal has carried out throwing in trial run, and every morning, 8:00 was whole, the terminal Auto Power On, whether start back is detected data, be up-to-date weather forecast information, starts network this moment and pair compares with data source, and obtain up-to-date Weather information, save the data in then on the terminal, the information of all domestic main cities is arranged simultaneously, the Weather information of main more than 50 international cities; When the user need understand the information in these cities,, then can directly check such as the information of understanding local Shanghai, understand Pekinese's information, select the expansion button, select " Beijing " can check Pekinese's weather forecast information of two days tomorrows today, convenient people's trip.
Claims (7)
1, the method for automatic timed updating data of weather forecast at terminal, it is characterized in that, this method is upgraded by with lower module the terminal data of weather forecast being carried out self-timing: (1) data source module, (2) data are tracked down and arrested detecting module, (3) data resolution module, (4) data derive module, (5) data disaply moudle.
2, the method for automatic timed updating data of weather forecast at terminal as claimed in claim 1 is characterized in that, described data source module, and the stable data source comprises the Central Meteorological Observatory and local observatory information releasing selecting correct on the Internet.
3, the method for automatic timed updating data of weather forecast at terminal as claimed in claim 1, it is characterized in that, described data are tracked down and arrested detecting module, after finding data source, the page that locking is fixing, and the time of judgment data source renewal, log-on data is tracked down and arrested the data that detecting module upgrades the data server end automatically.
4, the method for automatic timed updating data of weather forecast at terminal as claimed in claim 1 is characterized in that, described data resolution module is resolved the data of tracking down and arresting data source, the key message in the middle of extracting.
5, the method for automatic timed updating data of weather forecast at terminal as claimed in claim 1 is characterized in that, described data derivation module will have been resolved the data that leave in the internal memory and exported as the standard XML formatted file, and send to each terminal.
6, the method for automatic timed updating data of weather forecast at terminal as claimed in claim 1, it is characterized in that, described data disaply moudle is by the Flash interface of terminal, read the standard XML formatted file, resolve data wherein and show, select different weather icons at different Weather information, and classify according to the classification in city and area and to show and data are obtained.
7, the method for automatic timed updating data of weather forecast at terminal as claimed in claim 1 is characterized in that, described method may further comprise the steps:
(1) clock detects automatically, every one hour, data is detected, and judges whether it is up-to-date Weather information; Because, must track down and arrest detecting module by automaticdata according to the update time and the renewal frequency of data source, obtain data source and whether upgrade, if upgrade, then grasp up-to-date weather data;
(2) if up-to-date weather data does not then upgrade, terminal can directly read local data and show;
(3) if not up-to-date weather data, then start the network parsing module, data source is read, with the Weather information that has upgraded, city information is resolved, and is kept in the internal memory;
(4) data derive the data that module will have been resolved, and derive module by data, generate the standard XML document, are kept at this ground of terminal;
(5) terminal reads local XML information, and the weather forecast information of correspondence is presented on the terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2006100277378A CN101093468A (en) | 2006-06-19 | 2006-06-19 | Method for automatic timed updating data of weather forecast at terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2006100277378A CN101093468A (en) | 2006-06-19 | 2006-06-19 | Method for automatic timed updating data of weather forecast at terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101093468A true CN101093468A (en) | 2007-12-26 |
Family
ID=38991739
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2006100277378A Pending CN101093468A (en) | 2006-06-19 | 2006-06-19 | Method for automatic timed updating data of weather forecast at terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101093468A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102236880A (en) * | 2010-05-07 | 2011-11-09 | 联想(北京)有限公司 | Widget effect generation method and equipment as well as image processing method and equipment |
CN102711062A (en) * | 2012-05-24 | 2012-10-03 | 惠州Tcl移动通信有限公司 | Mobile terminal based method for acquiring weather forecast and mobile terminal |
CN102810043A (en) * | 2011-06-03 | 2012-12-05 | 腾讯科技(深圳)有限公司 | Method, system and information terminal for displaying weather information of mobile terminal |
CN102970651A (en) * | 2012-11-30 | 2013-03-13 | 北京小米科技有限责任公司 | Processing method and device and mobile terminal for weather forecast data |
CN103268357A (en) * | 2013-06-05 | 2013-08-28 | 百度在线网络技术(北京)有限公司 | Method and device for providing air quality data |
CN104965929A (en) * | 2015-07-24 | 2015-10-07 | 网易传媒科技(北京)有限公司 | Method and device for data processing |
CN105247525A (en) * | 2013-05-31 | 2016-01-13 | 皇家飞利浦有限公司 | Providing an enterprise application store |
WO2016037309A1 (en) * | 2014-09-09 | 2016-03-17 | 林筱玫 | Escape pointer display system and reading method therefor, and escape pointer image generation and display method |
CN106714004A (en) * | 2016-12-12 | 2017-05-24 | 福建新大陆通信科技股份有限公司 | Weather forecast method and system of two-way digital television set top box |
CN111104535A (en) * | 2019-11-20 | 2020-05-05 | 中国第一汽车股份有限公司 | Data management system and data management method |
CN113483452A (en) * | 2021-07-13 | 2021-10-08 | 珠海格力电器股份有限公司 | Weather parameter acquisition method and device based on electric appliance, storage medium and electric appliance |
-
2006
- 2006-06-19 CN CNA2006100277378A patent/CN101093468A/en active Pending
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102236880A (en) * | 2010-05-07 | 2011-11-09 | 联想(北京)有限公司 | Widget effect generation method and equipment as well as image processing method and equipment |
CN102810043B (en) * | 2011-06-03 | 2017-05-24 | 腾讯科技(深圳)有限公司 | Method, system and information terminal for displaying weather information of mobile terminal |
CN102810043A (en) * | 2011-06-03 | 2012-12-05 | 腾讯科技(深圳)有限公司 | Method, system and information terminal for displaying weather information of mobile terminal |
CN102711062A (en) * | 2012-05-24 | 2012-10-03 | 惠州Tcl移动通信有限公司 | Mobile terminal based method for acquiring weather forecast and mobile terminal |
CN102970651A (en) * | 2012-11-30 | 2013-03-13 | 北京小米科技有限责任公司 | Processing method and device and mobile terminal for weather forecast data |
CN102970651B (en) * | 2012-11-30 | 2015-07-15 | 小米科技有限责任公司 | Processing method and device and mobile terminal for weather forecast data |
US10630756B2 (en) | 2013-05-31 | 2020-04-21 | Koninklijke Philips N.V. | System and method for automatically downloading data such as sleep study data |
CN105247525A (en) * | 2013-05-31 | 2016-01-13 | 皇家飞利浦有限公司 | Providing an enterprise application store |
CN103268357A (en) * | 2013-06-05 | 2013-08-28 | 百度在线网络技术(北京)有限公司 | Method and device for providing air quality data |
WO2016037309A1 (en) * | 2014-09-09 | 2016-03-17 | 林筱玫 | Escape pointer display system and reading method therefor, and escape pointer image generation and display method |
CN107004001A (en) * | 2014-09-09 | 2017-08-01 | 林筱玫 | Pointer of escaping shows that system and its read method, escape pointer image are produced and display methods |
CN104965929B (en) * | 2015-07-24 | 2019-07-02 | 网易传媒科技(北京)有限公司 | A kind of data processing method and device |
CN104965929A (en) * | 2015-07-24 | 2015-10-07 | 网易传媒科技(北京)有限公司 | Method and device for data processing |
CN106714004A (en) * | 2016-12-12 | 2017-05-24 | 福建新大陆通信科技股份有限公司 | Weather forecast method and system of two-way digital television set top box |
CN111104535A (en) * | 2019-11-20 | 2020-05-05 | 中国第一汽车股份有限公司 | Data management system and data management method |
CN111104535B (en) * | 2019-11-20 | 2023-02-17 | 中国第一汽车股份有限公司 | Data management system and data management method |
CN113483452A (en) * | 2021-07-13 | 2021-10-08 | 珠海格力电器股份有限公司 | Weather parameter acquisition method and device based on electric appliance, storage medium and electric appliance |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101093468A (en) | Method for automatic timed updating data of weather forecast at terminal | |
Cheng et al. | Building a big data platform for smart cities: Experience and lessons from santander | |
CN103389969B (en) | A kind of methods, devices and systems for mobile terminal preview pdf document | |
CN103457837A (en) | Method and system for searching for instant messages through search engine | |
CN102789469B (en) | Method for updating pages and system | |
US8700295B2 (en) | Method and apparatus for traffic information conversion using traffic information element knowledge base | |
CN100405371C (en) | Method and system for abstracting new word | |
CN104699835B (en) | For determining that Webpage includes the method and device of point of interest POI data | |
CN102929703B (en) | Application software management system and method | |
CN102968297A (en) | Software management system and method for mobile terminal | |
CN101655831A (en) | Comprehensive processing and displaying device of aviation meteorology and aviation intelligence information | |
CN101470949A (en) | Traffic information communication system | |
CN106487828B (en) | News pushing method and device | |
CN102253972A (en) | Web crawler-based geographical name database maintenance method | |
CN101398979A (en) | Road information management method and device | |
CN103455167A (en) | Method, client and system for adjusting input method editor (IME) corpus based on geographical region information | |
CN102685552A (en) | Error pattern generator (EPG) content metadata management method, server and system | |
CN102214096A (en) | Method and system for converting user interface theme of electronic device according to environment | |
CN105204738A (en) | E-book reading quantity determining and ranking methods, terminal device and server | |
CN114491518A (en) | Unauthorized access detection method, device, system and medium | |
CN111462494A (en) | Traffic guidance information issuing system with standardized interfaces | |
CN201638214U (en) | Customizable mobile data acquisition system | |
CN117149140B (en) | Method, device and related equipment for generating coded architecture information | |
WO2024164589A9 (en) | Information display method and apparatus, electronic device, computer readable storage medium, and computer program product | |
CN101470948A (en) | Method for providing traffic information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |