Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present applicationIn attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment isSome embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the artEvery other embodiment obtained without creative efforts, shall fall in the protection scope of this application.
In a typical configuration of this application, terminal, the equipment of service network include one or more processors(CPU), input/output interface, network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/orThe forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable mediumExample.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media, can be by any sideMethod or technology realize that information stores.Information can be computer readable instructions, data structure, the module of program or other numbersAccording to.The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory(SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read-only memory(ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory techniques, CD-ROM (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storagesEquipment or any other non-transmission medium, can be used for storage can be accessed by a computing device information.
The embodiment of the present application provides a kind of weather based reminding method, this method can when determination can be abnormal weather,It actively generates prompting message and issues the user with prompt, user is avoided to omit, and when generating prompting message, according to different differentNormal Weather information has corresponding prompting grade, enables the mode diversification reminded, thus with reminded contents appropriate toUser reminds, and improves user experience.The executing subject of the method can be user equipment, the network equipment or user equipmentConstituted equipment is integrated by network with the network equipment.The user equipment includes but is not limited to computer, mobile phone, plateAll kinds of terminal devices such as computer;The network equipment includes but is not limited to such as network host, single network server, multiple networksServer set or the set of computers based on cloud computing etc. are realized.Here, cloud is by being based on cloud computing (Cloud Computing)A large amount of hosts or network server are constituted, wherein cloud computing is one kind of distributed computing, by the computer of a group loose couplingsCollect a virtual machine of composition.
Fig. 1 shows a kind of weather based reminding method provided by the embodiments of the present application, wherein this method comprises the following steps:
Step S101 determines the target area that weather is reminded.Since weather has region, on the ground that the same time is differentArea has different weather, region large range of for one, it is more likely that can include a variety of weather, therefore weather remindA possibility that accuracy can decline therewith, and region small range of for one, include a variety of weather is smaller, therefore day air liftAwake accuracy is higher.In actual scene, the dividing precision of the target area can be according to the accurate for reminding of userThe demand of degree determines, for example, user for remind accuracy it is more demanding when, it is determined that target area range it is generalCan be smaller, such as small towns, a block.
When determining the target area that weather is reminded, following methods can be used, to meet the different demands of user.In a kind of mode provided by the embodiments of the present application, the target that weather is reminded can be determined according to the location information of user equipmentRegion.Such as the user equipment that user uses is mobile phone, location information at this time can be the warp that the GPS module of mobile phone is gotLatitude information.And the target area thereby determined that can be the latitude and longitude information got using GPS, in conjunction with map datum, reallyAdministrative region where the fixed latitude and longitude information, such as finally determining target area can be the street A.
In another way provided by the embodiments of the present application, the location information that can also be inputted according to user determines dayThe awake target area of air lift.For example, user can choose a position, position as input in the map that user equipment providesConfidence breath, it is possible thereby to determine target area based on the location information.
Further, it is also possible to determine the target area that weather is reminded according to the trip information for including in user equipment.Wherein,The trip information is information of the record about user's trip purpose ground, for example, certain of the user recorded in the mobile phone of userOne backlog are as follows: need to go to the city A to go on business in the XX time, this information is trip information at this time, it is possible thereby to determine dayThe awake target area of air lift.
The embodiment of the present application when according to the trip information for including in user equipment, determining the target area that weather is reminded,The trip information in application program can be preset in first calling and obtaining user equipment, and trip purpose is then determined according to the trip informationGround, and the trip purpose is determined as to the target area of weather prompting.
Wherein, the default application program can be it is any may include trip information application program, such as user handIt is default to license these in user for memorandum, backlog, train booking application, hotel reservation application for installing in machine etc.After the related data of application program, target area can be determined to preset the trip information in application program in automatic user deviceDomain.It goes on business to the city A in lower week for example, being had recorded in backlog, have purchased the fire that destination is the city B in train booking softwareTicket, hotel reservation application in subscribe the hotel in the city C, by these trip informations can determine trip destination be respectivelyA, the city B, C, it is possible thereby to determine that the city A, B, C is respectively the corresponding target area of these trip informations.
Due in actual scene, default application program can be arbitrary may include trip information application program, becauseThe form of this trip information is also likely to be varied.It, can be with for application programs such as train booking application, hotel reservation applicationsProvided by data-interface get the trip information of reference format, such as the trip information got can be the date+The formats such as hotel name+hotel address, it is possible thereby to directly determine trip destination by hotel address.And it is memorandum, pendingIn the application programs such as item, due to being usually to record these trip informations by user, it is difficult to be unified for one or several kinds of marksQuasiconfiguaration, thus can and its study by way of training identification model, and then different-format is identified by identification modelTrip information and trip purpose therein.Here, those skilled in the art will be understood that and above-mentioned be determined by trip informationThe mode of target area is only for example, other other ways that are existing or being likely to occur from now on are such as applicable to the present invention,It should be included within the scope of the present invention, and be incorporated herein by reference.
Step S102 obtains the weather data of the target area, and determines the target area according to the weather dataThe anomalous weather information in domain.Wherein, the weather data may include following at least any one: anomalous weather warning information,Meteorologic analysis data, history anomalous weather information can determine different types of weather data in different waysAnomalous weather information.The anomalous weather information for indicate it is all kinds of about anomalous weather it can happen that, such as its toolThe content that body includes can be the type of anomalous weather and the probability of happening of anomalous weather.
The advance notice for all kinds of anomalous weathers that the anomalous weather warning information is issued by each channel, such as national weatherLightning Warning, strong wind early warning, the frost early warning etc. of office's publication.It, can be with when the weather data is anomalous weather warning informationThe anomalous weather warning information of the target area is obtained, then by the anomalous weather warning information of the target area, is determinedFor the anomalous weather information of the target area.
The meteorologic analysis data refer to the data that can be used in carrying out weather condition analysis, such as regional cloud system state,Air pressure, wind direction, wind speed, humidity etc. can predict the weather condition in following a period of time by these data.Work as instituteState weather data be meteorologic analysis data when, the meteorologic analysis data of the available target area, then according to the gasPicture analysis data are handled, and the probability that the target area is abnormal weather, the exception as the target area are calculatedWeather information.For example, a possibility that, humidity more for cloud system biggish Regional Rainfall, is larger, it is more likely that zone of rainfall is formed,It then can which region may be by zone of rainfall covering etc. in following a period of time in conjunction with wind direction and wind speed.
History anomalous weather information is history with interim the case where being abnormal weather, such as the city A annual JulyThere is the case where typhoon etc. within first week.When the weather data is history anomalous weather information, the available target areaThe history anomalous weather information in domain, is then handled according to the history anomalous weather information, it is different to calculate the target areaThe type and probability of happening of Chang Tianqi, the anomalous weather information as the target area.For example, in past 40 years, AIn first week of city annual July, have and typhoon weather occur within 35 years, does not occur typhoon weather within only 5 years, it is possible thereby toDetermine that the city A is possible to typhoon weather, probability of happening 87.5% in first week in July.
In actual scene, is handled by meteorologic analysis data or anomalous weather information, obtain target areaWhen anomalous weather information, actual processing mode may be more complicated, such as utilizes all kinds of machine learning, big data analysis etc.Mode.The processing mode enumerated in the present embodiment is merely to illustrate corresponding handling principle, and those skilled in the art will be understood thatThe mode of above-mentioned acquisition target area anomalous weather information is only for example, other other ways that are existing or being likely to occur from now onIt is such as applicable to the present invention, should also be included within the scope of protection of the present invention, and is incorporated herein by reference.
For various weather datas, it can individually obtain and the anomalous weather for being obtained target area using one of is believedBreath can also obtain simultaneously and using therein a variety of or whole anomalous weather information to obtain target area.Work as useWhen a variety of weather datas, the anomalous weather information of the target area can be determined in the following way:
Firstly, obtaining a variety of weather datas of the target area, and the mesh is determined according to a variety of weather datasMark multiple anomalous weather information in region.Mode above-mentioned can be used for each weather data, individually calculate targetThe corresponding anomalous weather information in region, can obtain anomalous weather information identical with weather data type, these exceptions at this timeWeather information may be identical, it is also possible to different.For example, abnormal based on anomalous weather warning information, meteorologic analysis data and historyWeather information obtains the result is that may be to have frosty weather, and probability of happening is respectively 90%, 40% and 70%.
It is then possible to carry out COMPREHENSIVE CALCULATING based on the multiple anomalous weather information, the exception of the target area is determinedWeather information.For example, three kinds of modes can be set separately by the way of weighted calculation in the COMPREHENSIVE CALCULATING in the embodiment of the present applicationThe weight of obtained anomalous weather information is 0.5,0.3 and 0.2, is based ultimately upon the abnormal day that three results determine target areaFrosty weather may occur for gas information and probability of happening is 71%.Here, those skilled in the art will be understood that above by addingThe mode that power calculates carries out COMPREHENSIVE CALCULATING and is only for example, other other ways that are existing or being likely to occur from now on are such as applicable toThe present invention should also be included within the scope of protection of the present invention, and be incorporated herein by reference.
Since the source of weather data is all derived from the data that weather station is observed, target area with it is rightThe weather station answered apart from upper closer, also can by anomalous weather information obtained by the weather data based on the weather stationIt is more accurate.Since in actual scene, target area can generally be divided with practical administrative division, such as target area can be withIt is the city A, the county D, the street E etc., since the ownership in administrative division is different, it is possible to which following situations occur: D belongs to A under countyCity, under normal circumstances the weather data in the county D can from the weather station in the city A, but due to the relationship in geographical location,The distance of the weather station in the county the D city actual range A farther out, and the distance of the weather station apart from the adjacent city B compared withClosely.Therefore, if the weather data that the weather station for being directly based upon the city A obtains is handled, the exception in the finally obtained county DThe weather data that the accuracy rate of Weather information may be obtained lower than the weather station based on the city B handle obtainedAs a result.
As a result, in some embodiments of the present application, in the weather data of the target area, the mesh can be based onThe position in region is marked, the determining and nearest weather station in the target area is obtained by nearest with the target areaThe weather station obtain weather data, as the weather data of the target area, thus improve anomalous weather letterThe accuracy of breath.
In actual scene, belong to normal weather for Mr. Yu class user, another kind of user may can be belonged toAnomalous weather.For example, the factor of mushroom growth is influenced due to needing to control humidity etc. for a mushroom grower, and it is continuousFine day may cause humidity deficit, therefore continuous fine day can also be used as a kind of abnormal day for mushroom growerGas.Further, since the type of anomalous weather is very various, it is higher with its daily life degree of correlation for a userAnomalous weather may only account for a portion, if all reminding all anomalous weathers, may be such that user obtains quantityHuge invalid information.
Therefore, in some embodiments of the present application, can in conjunction with user identity type, come selected part weather data withObtain certain types of anomalous weather information.I.e. by the way of as shown in Figure 2, the weather data of the target area is obtained,And the anomalous weather information of the target area, including following processing step are determined according to the weather data:
Step S201 determines the identity type of user.By identity type can know user be concerned about or demand it is differentWhich Chang Tianqi may have, and this type of information can be preset in configuration, such as the weather condition packet that mushroom grower is concerned aboutInclude weather condition relevant to temperature and humidity, including continuous sunny, abnormal rainfall, cold wave etc., and fisherman etc. then more concerned aboutThe weather conditions such as wind direction, wind speed, tide.
Step S202 obtains the first weather data of the target area according to the identity type.Wherein, described firstWeather data is weather data relevant to the identity type, is determined by the required anomalous weather type of user identity typeIt is fixed, without obtaining unrelated weather data, which thereby enhance treatment effeciency.
Step S203 determines anomalous weather information relevant to the identity type according to first weather data.
After obtaining data exception Weather information, step S103 is executed, according to the anomalous weather information, with correspondingGrade is reminded to generate prompting message.
Wherein, the concrete form of the prompting message can be all kinds of modes that can be interacted with user on user equipment,Such as application program push, short message etc..But in actual scene, in fact it could happen that in sleep or because other factors and nothingMethod receives PUSH message and short message situation in time, therefore the prompting message of the modes such as application program push, short message is possible to meeting nothingMethod reminds user in time.In some embodiments of the present application, concrete form of the quarter-bell as prompting message can be used, in basisThe anomalous weather information, quarter-bell application when generating prompting message with corresponding prompting grade, first on calling user equipmentThen program is arranged in the quarter-bell application program according to corresponding prompting grade about the noisy of the anomalous weather informationBell.Wherein, the parameter (the jingle bell duration of such as quarter-bell, volume, ringing-type) of the quarter-bell can with it is described remind etc.Grade is related.
The prompting grade is corresponding with anomalous weather information, and different anomalous weather types can have different promptings etc.Grade, the different probability of happening of anomalous weather can also have different prompting grades, as a result, can be in the scheme of the embodiment of the present applicationAccording to the probability of happening of the type of anomalous weather and anomalous weather, corresponding prompting grade is determined, and according to the prompting gradeCorresponding reminded contents generate the prompting message using the reminded contents.Such as the prompting grade of high temperature anomalous weather isL1, the prompting grade of rainstorm anomaly weather are L2, and similarly for rainstorm anomaly weather, if probability of happening 50%~70%,Then reminding grade can be L21, if probability of happening is 70%~90%, reminding grade can be L22, if probability of happening exists90% or more, then reminding grade is L23.It is different such as right with the different reminded contents for reminding grade prompting message generatedIn reminding grade L21, L22, L23, if reminded contents are related to the parameter of quarter-bell as prompting message in the form of quarter-bell,Wherein volume can be improved successively, to distinguish different prompting grades.
In conclusion in the scheme that some embodiments of the present application provide, it is first determined the target area that weather is reminded, soThe weather data of the target area is obtained afterwards, and determines that the anomalous weather of the target area is believed according to the weather dataBreath, and then according to the anomalous weather information, prompting message is generated with corresponding prompting grade, it is possible thereby to can occur in determinationWhen anomalous weather, actively generates prompting message and issue the user with prompt, user is avoided to omit.And when generating prompting message,Corresponding prompting grade is had according to different anomalous weather information, enables the mode reminded diversified, thus with appropriateReminded contents reminded to user, improve user experience.
Fig. 3 shows the device structure for the method and/or technology scheme being adapted to carry out in the embodiment of the present application, the equipment300 include central processing unit (CPU, Central Processing Unit) 301, can be according to being stored in read-only storageProgram in device (ROM, Read Only Memory) 302 or from storage section 308 be loaded into random access storage device (RAM,Random Access Memory) program in 303 and execute various movements appropriate and processing.In RAM 303, also storeThere are various programs and data needed for system operatio.CPU 301, ROM 302 and RAM303 are connected with each other by bus 304.Input/output (I/O, Input/Output) interface 305 is also connected to bus 304.
I/O interface 305 is connected to lower component: the importation 306 including keyboard, mouse, touch screen etc.;Including such asCathode-ray tube (CRT, Cathode Ray Tube), liquid crystal display (LCD, Liquid Crystal Display), LED are aobviousShow the output par, c 307 of device, OLED display etc. and loudspeaker etc.;Including hard disk, CD, disk, semiconductor memory etc.The storage section 308 of one or more computer-readable mediums;And including such as LAN (local area network, Local AreaNetwork) the communications portion 309 of the network interface card of card, modem etc..Communications portion 309 is via such as internetNetwork executes communication process.Driver 310 is also connected to I/O interface 305 as needed.
Particularly, the method in the embodiment of the present application and/or embodiment may be implemented as computer software programs.ExampleSuch as, embodiment of the disclosure includes a kind of computer program product comprising carries computer on a computer-readable mediumProgram, the computer program include the program code for method shown in execution flow chart.It is central in the computer programWhen processing unit (CPU) 301 executes, the above-mentioned function of limiting in the present processes is executed.
It should be noted that computer-readable medium described herein can be computer-readable signal media or meterCalculation machine readable storage medium storing program for executing either the two any combination.Computer-readable medium for example can be --- but it is unlimitedIn system, device or the device of --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or any above combination.It calculatesThe more specific example of machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, portable of one or more conducting wiresFormula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable programmable read only memory(EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device orThe above-mentioned any appropriate combination of person.In this application, computer-readable medium, which can be, any includes or storage program hasShape medium, the program can be commanded execution system, device or device use or in connection.
And in this application, computer-readable signal media may include passing in a base band or as carrier wave a partThe data-signal broadcast, wherein carrying computer-readable program code.The data-signal of this propagation can use a variety of shapesFormula, including but not limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media may be used alsoTo be any computer-readable medium other than computer readable storage medium, which can send, propagateEither transmission is for by the use of instruction execution system, device or device or program in connection.It is computer-readableThe program code for including on medium can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc.Deng or above-mentioned any appropriate combination.
The calculating of the operation for executing the application can be write with one or more programming languages or combinations thereofMachine program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code canFully to execute, partly execute on the user computer on the user computer, be executed as an independent software package,Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part.In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN)Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet serviceProvider is connected by internet).
Flowchart or block diagram in attached drawing shows the equipment according to the various embodiments of the application, method and computer programThe architecture, function and operation in the cards of product.In this regard, each box in flowchart or block diagram can representA part of a part of one module, program segment or code, the module, program segment or code is used for comprising one or moreThe executable instruction of logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in boxFunction can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated actually may be usedTo be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with executingThe dedicated systems for hardware of defined functions or operations realizes, or can use specialized hardware and computer instructionCombination is to realize.
As on the other hand, present invention also provides a kind of computer-readable medium, which be can beIncluded in equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.Above-mentioned calculatingMachine readable medium carries one or more computer-readable instruction, the computer-readable instruction can be executed by processor withRealize the method and/or technology scheme of multiple embodiments of aforementioned the application.
It should be noted that the application can be carried out in the assembly of software and/or software and hardware, for example, can adoptWith specific integrated circuit (ASIC), general purpose computer or any other realized similar to hardware device.In some embodimentsIn, the software program of the application can be executed by processor to realize above step or function.Similarly, the software of the applicationProgram (including relevant data structure) can be stored in computer readable recording medium, for example, RAM memory, magnetic orCD-ROM driver or floppy disc and similar devices.In addition, hardware can be used to realize in some steps or function of the application, for example,As the circuit cooperated with processor thereby executing each step or function.
It is obvious to a person skilled in the art that the application is not limited to the details of above-mentioned exemplary embodiment, Er QieIn the case where without departing substantially from spirit herein or essential characteristic, the application can be realized in other specific forms.Therefore, no matterFrom the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and scope of the present application is by appended powerBenefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claimsVariation is included in the application.Any reference signs in the claims should not be construed as limiting the involved claims.ThisOutside, it is clear that one word of " comprising " does not exclude other units or steps, and odd number is not excluded for plural number.That states in device claim is multipleUnit or device can also be implemented through software or hardware by a unit or device.The first, the second equal words are used to tableShow title, and does not indicate any particular order.