CN106776756A - The method and apparatus of server end, client process weather resource data - Google Patents

The method and apparatus of server end, client process weather resource data Download PDF

Info

Publication number
CN106776756A
CN106776756A CN201611033681.7A CN201611033681A CN106776756A CN 106776756 A CN106776756 A CN 106776756A CN 201611033681 A CN201611033681 A CN 201611033681A CN 106776756 A CN106776756 A CN 106776756A
Authority
CN
China
Prior art keywords
weather data
weather
data
read
client
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.)
Granted
Application number
CN201611033681.7A
Other languages
Chinese (zh)
Other versions
CN106776756B (en
Inventor
陈理
佘江华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Lianluo Interactive Information Technology Co Ltd
Original Assignee
Hangzhou Lianluo Interactive Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hangzhou Lianluo Interactive Information Technology Co Ltd filed Critical Hangzhou Lianluo Interactive Information Technology Co Ltd
Priority to CN201611033681.7A priority Critical patent/CN106776756B/en
Publication of CN106776756A publication Critical patent/CN106776756A/en
Application granted granted Critical
Publication of CN106776756B publication Critical patent/CN106776756B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/283Multi-dimensional databases or data warehouses, e.g. MOLAP or ROLAP
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/282Hierarchical databases, e.g. IMS, LDAP data stores or Lotus Notes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/285Clustering or classification
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Abstract

This programme provides a kind of method of server-side processes weather resource data, including:According to default evaluation criterion, by the classification of each weather data source;From the weather data source of the highest opinion rating of correspondence desired zone, the weather data of desired zone, and the weather data that will be read are read as preferred weather data;From the weather data source of next opinion rating of the correspondence desired zone, the missing for reading desired zone or the weather data that there is flaw, and the weather data supplement that will be read adds the preferred weather data;Using the preferred weather data, the weather data storehouse read for client is updated.The server end of this programme possesses considerable flexibility, can be directed to the weather data that different demands provide client customization;The client of this programme is independent of the renewal in weather data source, also overcomes and inquires about data sheet one and to the big problem of multiple data source query resource consumptions to data mapping.

Description

The method and apparatus of server end, client process weather resource data
Technical field
This programme is related to weather resource data process field, and in particular to a kind of server-side processes weather resource data Method and apparatus.This programme further relates to a kind of method and apparatus of client process weather resource data.
Background technology
In the prior art, server end is not involved in inquiry of the client to weather data, and client is generally all direct Inquired about to the weather resource data source for providing weather data.So, client particularly mobile client is in inquiry weather During data, for the design of data source, generally there are two kinds of selections:
Selection one is to limit client to be inquired about from some particular weather data source, and it has the disadvantage coming for weather data Source is single, and the weather data of acquisition is not comprehensive;Moreover, when machine is delayed in the weather data source for inquiring about weather data, client Weather data inquiry cannot just be carried out;Finally, once server end has carried out the change to weather data storage, client is necessary Updated accordingly immediately, be otherwise possible to that normal queries cannot be carried out.
Selection two is that client can be inquired about from several weather data sources.Now client can obtain content more The weather data of horn of plenty, also will not be unable to normal queries because of the machine of delaying of certain particular weather data source, but it has the disadvantage visitor Family end consumption resource is excessive, while being likely to result in the waste of network traffics.
The content of the invention
This programme provides a kind of method of server-side processes weather resource data, and one kind supporting with server end The method of client process weather resource data, with solve client query in the prior art weather data source it is single, Data comprehensively and consumption resource it is excessive the problems such as.This programme also provides a kind of server end, client process weather resource The device of data.
This programme provides a kind of method of server-side processes weather resource data, including:
According to default evaluation criterion, by the classification of each weather data source, each described weather data source is corresponded to has The opinion rating of area coherence;
From the weather data source of the highest opinion rating of correspondence desired zone, the day destiny of desired zone is read According to, and the weather data that will be read is used as preferred weather data;
If in the weather data source of the highest opinion rating of correspondence desired zone, the day destiny of correspondence desired zone According to incomplete, or judge there are flaw data in the weather data for reading according to predetermined judgment criteria, then from correspondence it is described needed for In the weather data source of next opinion rating in region, read the missing of desired zone or there is the day destiny of flaw According to, and the weather data supplement that will be read adds the preferred weather data;
Using the preferred weather data, the weather data storehouse read for client is updated.
Optionally, the default evaluation criterion includes:The instant degree of data accuracy, data and/or data-interface are easy-to-use Property;The data accuracy, the instant degree of the data and the data-interface ease for use are higher, the corresponding weather data The opinion rating in source is higher.
Optionally, each one described opinion rating of the weather data source correspondence.
Optionally, it is described according to default evaluation criterion, by the classification of each weather data source, and make its correspondence different evaluation etc. The step of level, including:
If the work of weather data source is abnormal, its opinion rating is reduced to the lowest class, until it recovers normal work.
Optionally, in the weather data source of the highest opinion rating from correspondence desired zone, area needed for reading The weather data in domain, and will read weather data as preferred weather data the step of, according to default Fixed Time Interval Perform repeatedly.
Optionally, in the weather data source for performing the highest opinion rating from correspondence desired zone, read After the step of weather data of desired zone, perform and will read weather data as the step of preferred weather data it Before, and in the weather data source of the next opinion rating from the correspondence desired zone, read desired zone Weather data the step of after, the step of perform weather data supplement that is described and will reading and add the preferred weather data Before, following step is performed:
The weather data of the desired zone for judging whether to read the required period;If so, then entering next step;If it is not, then From the weather data source of next opinion rating in the current weather data source read, the period is required needed for reading The weather data in region, until after reading the weather data of the desired zone of required period, into next step.
Optionally, the flaw data include:Cannot read, storage bit number is not enough or error of transmission data.
Optionally, the weather data storehouse read for client using the preferred weather data, renewal is being performed Before step, following step is performed:
The weather data storehouse that the confession client reads is created in the server end.
Optionally, the weather data warehouse compartment that the confession client reads is local in the server end.
Optionally, including:
The desired zone to weather data and the requirement of required period according to client, customize corresponding with the client Desired zone and the weather data of required period, and the weather data of correspondence client customization is stored in the weather In database.
Optionally, when client request weather data, the weather data of the customization is provided to the client.
This programme also provides a kind of device of server-side processes weather resource data, including:
Determine weather data source opinion rating unit, for according to default evaluation criterion, by the classification of each weather data source, Each described weather data source is set to correspond to the opinion rating with area coherence;
Preferred weather data unit is obtained, for the weather data source of the highest opinion rating from correspondence desired zone In, the weather data of desired zone, and the weather data that will be read are read as preferred weather data;
Preferred weather data unit is supplemented, if for the weather data of the highest opinion rating in correspondence desired zone In source, the weather data of correspondence desired zone is not complete, or judges exist in the weather data for reading according to predetermined judgment criteria Flaw data, then from the weather data source of next opinion rating of the correspondence desired zone, read desired zone The weather data of flaw is lacked or exists, and the weather data supplement that will be read adds the preferred weather data;
Weather data library unit is updated, for using the preferred weather data, the day destiny read for client is updated According to storehouse.
Optionally, determination weather data source opinion rating unit, is used for:
If the work of weather data source is abnormal, its opinion rating is reduced to the lowest class, until it recovers normal work.
Optionally, it is described to obtain preferred weather data unit and supplement preferred weather data unit, including:
The weather data of the desired zone for judging whether to read the required period;If so, then triggering next unit;If it is not, Then from the weather data source of next opinion rating in the current weather data source read, the institute of period needed for reading The weather data in region is needed, until after reading the weather data of the desired zone of required period, triggering next unit.
Optionally, described device includes:
Customization customer end weather data unit, for according to client to the desired zone of weather data and required period It is required that, the desired zone and the weather data of required period corresponding with the client is customized, and will the correspondence client The weather data of customization is stored in the weather data storehouse.
Optionally, described device includes:
Client customization weather data unit is provided, for when client request weather data, being carried to the client For the weather data of the customization.
This programme provides a kind of method of client process weather resource data, including:
According to the city list in default Urban Data storehouse, received from the weather data storehouse of server end and required city The weather data of the corresponding desired zone in city;
When receiving from the renewal client notification that server end is pushed, then point out using main body and judge described use Whether main body is agreed to perform the renewal;If so, it is described to perform then to download corresponding more new procedures or data from server end Update.
Optionally, described when receiving from the renewal client notification that server end is pushed in execution, then prompting is used Main body simultaneously judges whether the use main body agrees to the step of performing the renewal, including:If it is not, then being carried to the use main body Entrance for understanding the renewal.
This programme also provides a kind of device of client process weather resource data, including:
Urban weather data cell needed for receiving, for the city list in default Urban Data storehouse, from service The weather data of the desired zone corresponding with required city is received in the weather data storehouse at device end;
Client-side program and data cell are updated, the renewal client notification pushed from server end is received for working as When, then point out using main body and judge whether the use main body is agreed to perform the renewal;If so, then being downloaded from server end Corresponding more new procedures or data are performing the renewal.
This programme also provides a kind of electronic equipment, including:
Display;
Processor;
Memory, the program of weather resource data is processed for storage server end, and described program is by the processor When reading execution, following operation is performed:According to default evaluation criterion, by the classification of each weather data source, make each described weather Data source corresponds to the opinion rating with area coherence;From the day destiny of the highest opinion rating of correspondence desired zone According in source, the weather data of desired zone is read, and the weather data that will be read is used as preferred weather data;If needed for correspondence In the weather data source of the highest opinion rating in region, the weather data of correspondence desired zone is not complete, or according to predetermined Judgment criteria judges there are flaw data in the weather data for reading, then from the next opinion rating for corresponding to the desired zone In the weather data source, read the missing of desired zone or there is the weather data of flaw, and the weather data that will be read Supplement adds the preferred weather data;Using the preferred weather data, the weather data storehouse read for client is updated.
Compared with prior art, this programme has advantages below:
Weather resource data handled by the client the reception server end of this programme, can overcome prior art client The shortcoming of data sheet one is inquired about, provides what is more enriched from multiple weather data sources, content to client in server end Weather data.
The server end of this programme possesses considerable flexibility.Server end can be according to different distributions weather data plan Slightly, the data of different weather data source are integrated, it is possible to for the client of different demands, the weather that customization customer end is received Data.
The client of this programme is independent of certain particular weather data source, even if particular weather data source can not normal work Make, also do not interfere with normal queries of the client to weather data;The client of this programme is simultaneously also not dependent on specific program No matter version, when needing to be updated, select whether to update, and does not influence the correctness of weather data Query Result.
The search efficiency of the client of this programme is higher, consumption resource is less.On the one hand, the time-consuming operation in this programme is all Do not carried out in client, more preferable Consumer's Experience can be obtained in client;On the other hand, this programme can be with pin in server end To client to region and the real needs of period, there is provided the weather data for customizing in advance, the speed that data are provided is exceedingly fast.
Brief description of the drawings
Fig. 1 is a kind of embodiment of the method stream of server-side processes weather resource data that this programme first embodiment is provided Cheng Tu;
Fig. 2 is that a kind of device embodiment of server-side processes weather resource data that this programme second embodiment is provided is shown It is intended to;
Fig. 3 is a kind of embodiment of the method flow of client process weather resource data that this programme 3rd embodiment is provided Figure;
Fig. 4 is that a kind of device embodiment of client process weather resource data that this programme fourth embodiment is provided is illustrated Figure;
Fig. 5 is that a kind of electronic equipment of server-side processes weather resource data that the embodiment of this programme the 5th is provided is implemented Illustrate and be intended to.
Specific embodiment
Elaborate many details in order to fully understand this programme in the following description.But this programme can be with Much it is different from other manner described here to implement, those skilled in the art can be in the situation without prejudice to this programme intension Under do similar popularization, therefore this programme is not limited by following public specific implementation.
Present solution provides a kind of method, a kind of server-side processes of the device of server-side processes weather resource data At the device of the device of weather resource data, a kind of method of the device of client process weather resource data, a kind of client The device and a kind of electronic equipment of server-side processes weather resource data of weather resource data are managed, in turn below with reference to attached Figure is described in detail to the embodiment of this programme.
Fig. 1 is refer to, a kind of side of its server-side processes weather resource data provided for this programme first embodiment Method.
The server end of this programme, can be according to client as other server ends of the commonly provided data, services Specific request of data, corresponding data are provided to client;While server end is when needing the program for carrying out client to update, To client push update notification and the corresponding program and data for updating can be provided.This programme is not repeated this, is being implemented When with reference to general server end method implement.
The method of the server-side processes weather resource data, comprises the steps:
Step S101:According to default evaluation criterion, by the classification of each weather data source, make each described weather data source equal Opinion rating of the correspondence with area coherence.
According to weather data source grade evaluation criterion set in advance, all available weather data sources are classified; Each weather data source is classified the correspondence opinion rating related to specific region.
Before weather data is obtained using weather data source, first available weather data source is classified, to select Go out more to meet the weather data source of real needs.Generally, the default evaluation criterion for being classified available weather data source can To include:The instant degree of data accuracy, data and/or data-interface ease for use.Certainly, this evaluation criterion can also include Other any factors for being necessary to introduce, such as network transfer speeds.Evaluation criterion may be used solely to weather data source point Level, it is also possible to integrate, take weighted average to use.
When the opinion rating in weather data source is classified, can be according to classic data source distribution highest opinion rating Order arranges upper-lower hierarchy sequentially to distribute, i.e. data accuracy, the instant degree of the data and the data-interface ease for use Higher, the opinion rating in the corresponding weather data source is higher.It is of course also possible in turn according to classic data The order that minimum opinion rating is distributed in source carrys out allocation level sequentially, as long as can tell classic data in the specific implementation Source.In the present embodiment, the method that highest opinion rating is distributed using classic data source.
Opinion rating in this programme is closely related with specific region.Client can typically specify request day destiny According to region, therefore opinion rating is with client desired zone corresponding is a need for.
When weather data source is classified, each different weather data source can be classified in different opinion ratings, Can be by multiple weather data sources classification to same opinion rating.If same evaluation is arrived in multiple weather data source classifications In grade, then when in use, any one the weather data source in same opinion rating can be randomly selected.The present embodiment is used By multiple weather data sources classification to the method in same opinion rating.
For example, in this example, it is assumed that having 5 available weather data source A, B, C, D and E, it is assumed that access evidence is time-histories It is judgment criteria to spend, not Regional Economy, then the instant degree highest of the data of weather data source B, and weather data source C takes second place, day destiny According to source D third, third, the weather data source instant degree of A is minimum for weather data source E;Assume again that this four weather data sources Correspond to two different zones X and Y respectively, weather data source A and B coverage area X, weather data source C, D and E coverage area Y;Then In classification, these weather data sources, by the order from highest ranking to the lowest class, can be divided into the day of corresponding region X Gas data source B, A, weather data source C, D and E of corresponding region Y.
Step S101-1:If the work of weather data source is abnormal, its opinion rating is reduced to the lowest class, until its is extensive Multiple normal work.
If certain weather data source cisco unity malfunction, such as can not normally read, then can be by this day destiny Grade is preferably minimized according to the opinion rating in source, until this data source recovers normal work, then evaluation by this data source etc. Level is recalled to.
This preferred steps does urgent prediction scheme for weather data source, when certain weather data source goes wrong, can be in clothes The priority of this data source is preferably minimized on business device, or even is temporarily disabled until this data source is recovered.Such this day The possibility that gas data source is read is just very low, can reduce unfavorable caused by this weather data source cisco unity malfunction Influence.
For example, in this example, it is assumed that weather data source B cisco unity malfunctions, then can commenting weather data source B Valency grade is preferably minimized, after weather data source B is degraded, the weather data source of corresponding region X opinion rating from high to low point It is not:Weather data source A, B.
Step S103:From the weather data source of the highest opinion rating of correspondence desired zone, desired zone is read Weather data, and the weather data that will be read is used as preferred weather data.
From weather data source corresponding with specific region, with highest opinion rating, this specific region is read Weather data, and with read weather data be foundation, formed correspondence specific region preferred weather data.
For example, in this example, it is assumed that desired zone is region Y, then from the day of the highest opinion rating of corresponding region Y In gas data source C, weather data, and the weather data that will be read from the C of weather data source are read, as the excellent of corresponding region Y Select weather data.
Performing from the weather data source of the highest opinion rating of correspondence desired zone, reading the day of desired zone Destiny evidence, and will read weather data as preferred weather data when, can repeatedly be held according to default Fixed Time Interval OK, with ensure for client read weather data storehouse instantaneity;Default Fixed Time Interval is shorter, the day destiny of reading According to instant degree it is higher.
For example, in the present embodiment, every 10 minutes, a weather data is just read from the C of weather data source.
Step S105:If in the weather data source of the highest opinion rating of correspondence desired zone, area needed for correspondence The weather data in domain is not complete, or judges there are flaw data in the weather data for reading according to predetermined judgment criteria, then from right Answer in the weather data source of next opinion rating of the desired zone, read the missing of desired zone or there is flaw Weather data, and the weather data supplement that will be read adds the preferred weather data.
If read weather data from the weather data source of certain correspondence specific region highest opinion rating, this is found Some of individual weather data source shortage of data is not complete, or according to judgment criteria set in advance, judges the day destiny for reading According to there is flaw, then just can be from the weather data of next opinion rating of the highest opinion rating in this region of correspondence The part weather data of flaw, and this part that will be read are lacked or existed in source, in the weather data for reading this region Weather data supplement is added in preferred weather data, with preferred weather data of supplying or make corrections.
If some of certain weather data source shortage of data, when reading weather data from this data source, cannot The part data of missing are read from this data source, the data of these missings can be read from other weather data sources, come The preferred weather data of completion.
Predetermined judgment criteria is used to judge to whether there is flaw, generally, these flaws in the weather data for reading Data are including that cannot read, storage bit number is not enough or error of transmission weather data.The common feature of these flaw data is shadow Ring the accuracy to weather data, it is therefore desirable to which it makes corrections from other data sources.
For example, in the present embodiment, weather data is read from the weather data source C of corresponding region Y highest opinion ratings When, if it find that lacking the data in V towns in the weather data for reading, it is possible to from the D weather datas source of next opinion rating, The data in Z towns are read, and by the data in this part V towns, it is excellent that supplement is added to the reading data from the C of weather data source and is formed Select among weather data.
Again for example, in the present embodiment, day destiny is read from the weather data source C of corresponding region Y highest opinion ratings According to when, if it find that the data in W towns can not read in the weather data for reading, as flaw data, it is also possible to from next evaluation In the D weather datas source of grade, the data in W towns are read, and by the data in this part W towns, correction is substituted into from weather data Among the preferred weather data for reading data in the C of source and being formed.
Above-mentioned steps all refer to the situation related to region, in the specific implementation, in addition it is also necessary to consider it is related to the period because Element, comes the comprehensive reading for carrying out weather data and the composition of preferred weather data.
From the weather data source of the highest opinion rating of correspondence desired zone, institute is being read in performing step S103 After the step of needing the weather data in region, perform and will read weather data as before the step of preferred weather data, And in step S105 from the weather data source of next opinion rating of the correspondence desired zone, area needed for reading After the step of weather data in domain, perform the step that weather data supplement that is described and will reading adds the preferred weather data Before rapid, following step is performed:
Step S103-1 and S105-1:The weather data of the desired zone for judging whether to read the required period;If so, then Into next step;If it is not, then from the weather data source of next opinion rating in the current weather data source read, The weather data of the desired zone of period needed for reading, until after reading the weather data of the desired zone of required period, Into next step.
After weather data is read, the weather data that will read as before preferred weather data, can be made whether Read the weather data of the desired zone of required period;If read the weather data of this period, it is possible to perform Next step;If the weather data of this period can not read, then just from that currently-read weather data In another weather data source of next opinion rating in source, the weather data of the desired zone of period needed for reading;If from The desired zone of required period can not be still read in the weather data source of next opinion rating of current weather data source Weather data, then just read from the weather data source of next one opinion rating, so repeatedly, until needed for reading After the weather data of the desired zone of period, next step is entered back into.
For example, in the present embodiment, weather data is read from the weather data source C of corresponding region Y highest opinion ratings When, it is assumed that need to read W towns 10 o'clock sharp of morning weather data, but the data in W towns only arrive morning nine the latest in the C of weather data source Point, the data for not having, it is possible to from next and opinion rating weather data source D, read 10 points of W towns morning o'clock sharp in the morning 10 Whole weather data;If also without W towns 10 o'clock sharp of morning weather data in the D of weather data source, it is possible to from the E of weather data source W towns 10 o'clock sharp of morning weather data is read, until untill reading this partial data, entering back into next step.
Step S107:Using the preferred weather data, the weather data storehouse read for client is updated.
After preferred weather data, or supplement, these preferred weather datas that make corrections is constituted, can be read for client Weather data storehouse in update these data.
The weather data storehouse read for client is before weather data is read from weather data source, in server end Create.Generally, for the reason for improving reading efficiency, all settings in this weather data storehouse read for client It is local in server end.It is of course also possible to will for client read weather data lab setting in LAN even cloud storage it On, as long as the reading speed of data disclosure satisfy that requirement of the client to digital independent.
The response speed of weather data is read to client in order to further improve, following step is can also carry out:
Step S107-1:The desired zone to weather data and the requirement of required period according to client, customization with it is described The corresponding desired zone of client and the weather data of required period, and the weather data of the correspondence client customization is deposited Storage is in the weather data storehouse.
Requirement according to particular clients to the specific region and specific time period of weather data, customization and this client phase Corresponding specific region and the weather data of specific time period, and the weather data of correspondence this client customization is stored in weather In database.Now, weather data storehouse preferably can be by the mark of this client and the weather of correspondence this client customization Data storage can further improve the response speed that client reads weather data among identical file.
Step S107-3:When client request weather data, the weather data of the customization is provided to the client.
Coordinate above-mentioned steps S107-1, when this client request weather data, can be from weather data storehouse directly The weather data of specific region that this client customizes and specific time period is read as, is provided to this client.
This programme also provides a kind of device of server-side processes weather resource data.Fig. 2 is refer to, it is this programme A kind of device embodiment schematic diagram of server-side processes weather resource data that two embodiments are provided.Due to device embodiment base , similar in appearance to embodiment of the method, so describing fairly simple, the relevent part can refer to the partial explaination of embodiments of method for this.Under The device embodiment for stating description is only schematical.
The device of the server-side processes weather resource data, including:
Weather data source opinion rating unit 201 is determined, for according to default evaluation criterion, by each weather data source point Level, makes each described weather data source correspond to the opinion rating with area coherence;
Preferred weather data unit 203 is obtained, for the day destiny of the highest opinion rating from correspondence desired zone According in source, the weather data of desired zone is read, and the weather data that will be read is used as preferred weather data;
Preferred weather data unit 205 is supplemented, if for the weather of the highest opinion rating in correspondence desired zone In data source, correspondence desired zone weather data it is incomplete, or according to predetermined judgment criteria judge read weather data in There are flaw data, then from the weather data source of next opinion rating of the correspondence desired zone, area needed for reading There is the weather data of flaw in the missing in domain, and the weather data supplement that will be read adds the preferred weather data;
Weather data library unit 207 is updated, for using the preferred weather data, the weather read for client is updated Database.
Optionally, the determination weather data source opinion rating unit 201, is used for:
If the work of weather data source is abnormal, its opinion rating is reduced to the lowest class, until it recovers normal work.
Optionally, it is described to obtain preferred weather data unit 203 and supplement preferred weather data unit 205, including:
The weather data of the desired zone for judging whether to read the required period;If so, then triggering next unit;If it is not, Then from the weather data source of next opinion rating in the current weather data source read, the institute of period needed for reading The weather data in region is needed, until after reading the weather data of the desired zone of required period, triggering next unit.
Optionally, described device includes:
Customization customer end weather data unit, for according to client to the desired zone of weather data and required period It is required that, the desired zone and the weather data of required period corresponding with the client is customized, and will the correspondence client The weather data of customization is stored in the weather data storehouse.
Optionally, described device includes:
Client customization weather data unit is provided, for when client request weather data, being carried to the client For the weather data of the customization.
Fig. 3 is refer to, a kind of method of its client process weather resource data provided for this programme 3rd embodiment Embodiment schematic diagram.The method of the client process weather resource data, comprises the steps:
Step S301:According to the city list in default Urban Data storehouse, connect from the weather data storehouse of server end Receive the weather data of the desired zone corresponding with required city.
In this programme, client presets a Urban Data storehouse, the city list of a request weather data of storage;Visitor This city list at family end is corresponding with the desired zone of server end, therefore, client can be from server end In weather data storehouse, receive the weather data in this region to obtain the weather data in city in city list.
For example, in the present embodiment, the corresponding region in city in the default Urban Data storehouse of client is W and the towns of V two, The weather data that then it can receive corresponding W towns and V towns from server end weather data storehouse.
Step S303:When receiving from the renewal client notification that server end is pushed, then point out using main body and sentence Whether the use main body of breaking is agreed to perform the renewal;If so, then downloading corresponding more new procedures or data from server end To perform the renewal.
When the notice of the renewal client pushed from server end is received, client can just be carried to using main body Show the renewal, and wait the feedback of main body to be used to judge whether agree to perform the renewal using main body;If using master Body is agreed to perform the renewal, and client just can download corresponding more new procedures or data from server end, corresponding to perform Renewal.
Step S303 can also include disagreeing the situation for performing and updating using main body:If the use main body is disagreed holding The row renewal, then provide the entrance for understanding the renewal to the use main body.
Under normal circumstances, the entrance for understanding the renewal is exactly URL, is generally directed to be located at the relevant renewal visitor of server end The supporting paper at family end, for example, New function of explanation renewal etc..Client's refusal updates then ignores this renewal, but is available to Client understands the associated inlet for updating, and such as checks new function.Certainly, the entrance for understanding the renewal can also be downloaded to The supporting paper of client.
One advantage of this programme is that client refusal updates the correctness that can't influence weather lookup result, can Can only influence the range of weather lookup result, and the older version client of renewal cannot be performed can insusceptibly just Often use.
For example, in the case where needing to update Urban Data storehouse, if client does not perform renewal, due to client storage Urban Data storehouse in city list change frequency it is very low, the use to client query weather data there will not be very big shadow Ring.
This programme also provides a kind of device of client process weather resource data.Fig. 4 is refer to, it is this programme the 4th A kind of device embodiment schematic diagram of client process weather resource data that embodiment is provided.Due to the basic phase of device embodiment Embodiment of the method is similar to, so describing fairly simple, the relevent part can refer to the partial explaination of embodiments of method.It is following to retouch The device embodiment stated is only schematical.The device of the client process weather resource data, including:
Urban weather data cell 401 needed for receiving, for the city list in default Urban Data storehouse, from clothes The weather data of the desired zone corresponding with required city is received in the weather data storehouse at business device end;
Client-side program and data cell 403 are updated, for leading to when the renewal client received from server end push When knowing, then point out using main body and judge whether the use main body is agreed to perform the renewal;If so, then under server end Corresponding more new procedures or data are carried to perform the renewal.
This programme also provides a kind of electronic equipment.Fig. 5 is refer to, a kind of its service provided for the embodiment of this programme the 5th Device end processes the electronic equipment embodiment schematic diagram of weather resource data.Because electronic equipment embodiment is substantially similar to method reality Example is applied, so describing fairly simple, the relevent part can refer to the partial explaination of embodiments of method.Electronics described below sets Standby embodiment is only schematical.The electronic equipment, including:
Display 501;
Processor 503;
Memory 505, the program of weather resource data is processed for storage server end, and described program is by the treatment Device 503 is read when performing, and performs following operation:According to default evaluation criterion, the classification of each weather data source makes described in each Weather data source corresponds to the opinion rating with area coherence;From the day of the highest opinion rating of correspondence desired zone In gas data source, the weather data of desired zone, and the weather data that will be read are read as preferred weather data;If in correspondence In the weather data source of the highest opinion rating of desired zone, the weather data of correspondence desired zone is not complete, or according to Predetermined judgment criteria judges there are flaw data in the weather data for reading, then from next evaluation for corresponding to the desired zone etc. In the weather data source of level, read the missing of desired zone or there is the weather data of flaw, and the weather that will be read Data filling adds the preferred weather data;Using the preferred weather data, the weather data read for client is updated Storehouse.
Although this programme is disclosed as above with preferred embodiment, it is not for limiting this programme, any this area skill Art personnel can make possible variation and modification in the spirit and scope for not departing from this programme, thus this programme guarantor The scope that shield scope should be defined by this programme claim is defined.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net Network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is computer-readable medium Example.
1st, computer-readable medium can be by any side including permanent and non-permanent, removable and non-removable media Method or technology realize information Store.Information can be computer-readable instruction, data structure, the module of program or other numbers According to.The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc are read-only Memory (CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic cassette tape, tape magnetic rigid disk storage or Other magnetic storage apparatus or any other non-transmission medium, can be used to store the information that can be accessed by a computing device.According to Herein defines, and computer-readable medium does not include non-temporary computer readable media (transitory media), such as modulates Data-signal and carrier wave.
2nd, it will be understood by those skilled in the art that the embodiment of this programme can be provided as method, system or computer program product Product.Therefore, this programme can be using the embodiment in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Form.And, this programme can be used and can use in one or more computers for wherein including computer usable program code The computer program product implemented on storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Form.

Claims (20)

1. a kind of method of server-side processes weather resource data, it is characterised in that including:
According to default evaluation criterion, by the classification of each weather data source, each described weather data source is corresponded to has region The opinion rating of correlation;
From the weather data source of the highest opinion rating of correspondence desired zone, the weather data of desired zone is read, and The weather data that will be read is used as preferred weather data;
If in the weather data source of the highest opinion rating of correspondence desired zone, the weather data of correspondence desired zone is not Entirely, or according to predetermined judgment criteria judge there are flaw data in the weather data for reading, then from the correspondence desired zone Next opinion rating the weather data source in, read the missing of desired zone or there is the weather data of flaw, and The weather data supplement that will be read adds the preferred weather data;
Using the preferred weather data, the weather data storehouse read for client is updated.
2. the method for server-side processes weather resource data according to claim 1, it is characterised in that described default to comment Price card standard includes:The instant degree of data accuracy, data and/or data-interface ease for use;The data accuracy, the data Instant degree and the data-interface ease for use are higher, and the opinion rating in the corresponding weather data source is higher.
3. the method for server-side processes weather resource data according to claim 1, it is characterised in that each described day Gas data source one opinion rating of correspondence.
4. the method for server-side processes weather resource data according to claim 1, it is characterised in that described according to pre- The step of if evaluation criterion, each weather data source being classified, and makes its correspondence different evaluation grade, including:
If the work of weather data source is abnormal, its opinion rating is reduced to the lowest class, until it recovers normal work.
5. the method for server-side processes weather resource data according to claim 1, it is characterised in that described from correspondence In the weather data source of the highest opinion rating of desired zone, the weather data of desired zone, and the day that will be read are read The step of destiny is according to as preferred weather data, performs repeatedly according to default Fixed Time Interval.
6. the method for server-side processes weather resource data according to claim 1, it is characterised in that described performing From correspondence desired zone highest opinion rating the weather data source in, read desired zone weather data the step of it Afterwards, perform and will read weather data as before the step of preferred weather data, and it is described from correspondence it is described needed for In the weather data source of next opinion rating in region, read desired zone weather data the step of after, perform institute Before the step of weather data supplement stated and will read adds the preferred weather data, following step is performed:
The weather data of the desired zone for judging whether to read the required period;If so, then entering next step;If it is not, then from work as In the weather data source of next opinion rating in the weather data source of preceding reading, the desired zone of period needed for reading Weather data, until after reading the weather data of the desired zone of required period, into next step.
7. the method for server-side processes weather resource data according to claim 1, it is characterised in that the flaw number According to including:Cannot read, storage bit number is not enough or error of transmission data.
8. the method for server-side processes weather resource data according to claim 1, it is characterised in that described performing Using the preferred weather data, the step of update the weather data storehouse read for client before, perform following step:
The weather data storehouse that the confession client reads is created in the server end.
9. the method for server-side processes weather resource data according to claim 1, it is characterised in that the confession client Hold the weather data warehouse compartment for reading local in the server end.
10. the method for server-side processes weather resource data according to claim 1, it is characterised in that including:
The desired zone to weather data and the requirement of required period according to client, customize the institute corresponding with the client The weather data of region and required period is needed, and the weather data of the correspondence client customization is stored in the weather data In storehouse.
The method of 11. server-side processes weather resource datas according to claim 10, it is characterised in that work as client During request weather data, the weather data of the customization is provided to the client.
A kind of 12. devices of server-side processes weather resource data, it is characterised in that including:
Determine weather data source opinion rating unit, for according to default evaluation criterion, the classification of each weather data source makes every The individual weather data source corresponds to the opinion rating with area coherence;
Obtain preferred weather data unit, for from correspondence desired zone highest opinion rating the weather data source in, The weather data of desired zone, and the weather data that will be read are read as preferred weather data;
Preferred weather data unit is supplemented, if for the weather data source of the highest opinion rating in correspondence desired zone In, the weather data of correspondence desired zone is not complete, or judges there is the flaw in the weather data for reading according to predetermined judgment criteria Defect data, then from the weather data source of next opinion rating of the correspondence desired zone, read lacking for desired zone The weather data of flaw is lost or exists, and the weather data supplement that will be read adds the preferred weather data;
Weather data library unit is updated, for using the preferred weather data, the weather data storehouse read for client is updated.
The device of 13. server-side processes weather resource datas according to claim 12, it is characterised in that the determination Weather data source opinion rating unit, is used for:
If the work of weather data source is abnormal, its opinion rating is reduced to the lowest class, until it recovers normal work.
The device of 14. server-side processes weather resource datas according to claim 12, it is characterised in that the acquisition It is preferred that weather data unit and the preferred weather data unit of supplement, including:
The weather data of the desired zone for judging whether to read the required period;If so, then triggering next unit;If it is not, then from In the weather data source of next opinion rating in the current weather data source read, the required area of period needed for reading The weather data in domain, until after reading the weather data of the desired zone of required period, triggering next unit.
The device of 15. server-side processes weather resource datas according to claim 12, it is characterised in that including:
Customization customer end weather data unit, for according to client to the desired zone of weather data and required period will Ask, customize the desired zone and the weather data of required period corresponding with the client, and the correspondence client is determined The weather data of system is stored in the weather data storehouse.
The device of 16. server-side processes weather resource datas according to claim 15, it is characterised in that including:
Client customization weather data unit is provided, for when client request weather data, institute being provided to the client State the weather data of customization.
A kind of 17. methods of client process weather resource data, the method with the server-side processes weather resource data Support the use, it is characterised in that including:
According to the city list in default Urban Data storehouse, received from the weather data storehouse of server end and required city phase The weather data of corresponding desired zone;
When receiving from the renewal client notification that server end is pushed, then point out using main body and judge the use main body Whether agreement performs the renewal;If so, then downloading corresponding more new procedures or data to perform the renewal from server end.
The method of 18. client process weather resource datas according to claim 17, it is characterised in that described when reception During to the renewal client notification pushed from server end, then point out using main body and judge whether the use main body is agreed to hold The step of row renewal, including:If it is not, then providing the entrance for understanding the renewal to the use main body.
A kind of 19. devices of client process weather resource data, the device with the server-side processes weather resource data Support the use, it is characterised in that including:
Urban weather data cell needed for receiving, for the city list in default Urban Data storehouse, from server end Weather data storehouse in receive the weather data of the desired zone corresponding with required city;
Update client-side program and data cell, for when receive from server end push renewal client notification when, then Prompting is using main body and judges whether the use main body is agreed to perform the renewal;If so, then being downloaded from server end corresponding More new procedures or data performing the renewal.
20. a kind of electronic equipment, it is characterised in that the electronic equipment includes:
Display;
Processor;
Memory, the program of weather resource data is processed for storage server end, and described program reads by the processor During execution, following operation is performed:According to default evaluation criterion, by the classification of each weather data source, make each described weather data Source corresponds to the opinion rating with area coherence;From the weather data source of the highest opinion rating of correspondence desired zone In, the weather data of desired zone, and the weather data that will be read are read as preferred weather data;If in correspondence desired zone Highest opinion rating the weather data source in, the weather data of correspondence desired zone is not complete, or according to predetermined judge Standard judges there are flaw data in the weather data for reading, then described in the next opinion rating from the correspondence desired zone In weather data source, read the missing of desired zone or there is the weather data of flaw, and the weather data supplement that will be read Add the preferred weather data;Using the preferred weather data, the weather data storehouse read for client is updated.
CN201611033681.7A 2016-11-22 2016-11-22 Method and device for processing weather resource data by server side and client side Active CN106776756B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611033681.7A CN106776756B (en) 2016-11-22 2016-11-22 Method and device for processing weather resource data by server side and client side

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611033681.7A CN106776756B (en) 2016-11-22 2016-11-22 Method and device for processing weather resource data by server side and client side

Publications (2)

Publication Number Publication Date
CN106776756A true CN106776756A (en) 2017-05-31
CN106776756B CN106776756B (en) 2020-12-01

Family

ID=58970974

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611033681.7A Active CN106776756B (en) 2016-11-22 2016-11-22 Method and device for processing weather resource data by server side and client side

Country Status (1)

Country Link
CN (1) CN106776756B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107515794A (en) * 2017-08-31 2017-12-26 江西博瑞彤芸科技有限公司 A kind of meteorological data acquisition methods
CN108519984A (en) * 2018-02-07 2018-09-11 平安科技(深圳)有限公司 weather data processing method, server and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5480305A (en) * 1993-10-29 1996-01-02 Southwest Research Institute Weather simulation system
CN101821736A (en) * 2007-09-06 2010-09-01 王秦胜塞希亚 Method and system of interacting with server, and method and system for generating and presenting search results
CN103262041A (en) * 2010-11-19 2013-08-21 耐斯特实验公司 Methods and systems for data interchange between a network-connected thermostat and cloud-based management server
CN105743773A (en) * 2016-01-26 2016-07-06 广东欧珀移动通信有限公司 Weather data acquisition method and device
CN105787134A (en) * 2016-04-07 2016-07-20 上海智臻智能网络科技股份有限公司 Intelligent questioning and answering method, intelligent questioning and answering device and intelligent questioning and answering system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5480305A (en) * 1993-10-29 1996-01-02 Southwest Research Institute Weather simulation system
CN101821736A (en) * 2007-09-06 2010-09-01 王秦胜塞希亚 Method and system of interacting with server, and method and system for generating and presenting search results
CN103262041A (en) * 2010-11-19 2013-08-21 耐斯特实验公司 Methods and systems for data interchange between a network-connected thermostat and cloud-based management server
CN105743773A (en) * 2016-01-26 2016-07-06 广东欧珀移动通信有限公司 Weather data acquisition method and device
CN105787134A (en) * 2016-04-07 2016-07-20 上海智臻智能网络科技股份有限公司 Intelligent questioning and answering method, intelligent questioning and answering device and intelligent questioning and answering system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107515794A (en) * 2017-08-31 2017-12-26 江西博瑞彤芸科技有限公司 A kind of meteorological data acquisition methods
CN108519984A (en) * 2018-02-07 2018-09-11 平安科技(深圳)有限公司 weather data processing method, server and computer readable storage medium

Also Published As

Publication number Publication date
CN106776756B (en) 2020-12-01

Similar Documents

Publication Publication Date Title
CN102035886B (en) Consistency within a federation infrastructure
CN101491006B (en) Rendezvousing resource requests with corresponding resources
CN101599881A (en) Be used between networked devices, implementing the method and apparatus of sequential synchronization hierarchy
CN106537350A (en) Method for processing data quality exceptions in data processing system
CN109241514A (en) Data automatically imported method, device, computer equipment and storage medium
CN103023928A (en) P2P (peer-to-peer) node matching system and method
CN108319463A (en) A kind of application upgrade method, apparatus
CN103136322B (en) Apparatus and method for configuration querying
CN108833584B (en) Message pushing method, terminal, server and computer storage medium
CN110389766A (en) HBase container cluster dispositions method, system, equipment and computer readable storage medium
CN111090587A (en) Method, device and equipment for testing production point service and storage medium
CN110222054A (en) A kind of method, apparatus, terminal device and storage medium improving retrieval rate
CN104468207A (en) Terminal management method, device and system
CN106708842A (en) Data loading method for application system, database and application system
CN106776756A (en) The method and apparatus of server end, client process weather resource data
CN111666344A (en) Heterogeneous data synchronization method and device
CN109286617B (en) Data processing method and related equipment
CN110413338B (en) Method, equipment and readable medium for configuring big data platform
CN108920728B (en) Data routing method, data routing network and data access method and system thereof
CN105653341A (en) Method, device and system for upgrading network invoice client
CN112804313B (en) Data synchronization method, device, equipment and medium based on cross-domain edge node
US20100057507A1 (en) Real-Time Manufacturing Routing Optimization Using Content and Quality Level
CN105721527A (en) Data processing method and server
US20050144618A1 (en) Registry driven real-time configuration of resource management objects for deployment in an instance of an integrated solutions console
CN113407546A (en) Rule configuration method suitable for various scenes

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant