CN107977276A - A kind of based reminding method of Changes in weather, device and mobile terminal - Google Patents

A kind of based reminding method of Changes in weather, device and mobile terminal Download PDF

Info

Publication number
CN107977276A
CN107977276A CN201711381169.6A CN201711381169A CN107977276A CN 107977276 A CN107977276 A CN 107977276A CN 201711381169 A CN201711381169 A CN 201711381169A CN 107977276 A CN107977276 A CN 107977276A
Authority
CN
China
Prior art keywords
weather
changes
mobile terminal
information
weather information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711381169.6A
Other languages
Chinese (zh)
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201711381169.6A priority Critical patent/CN107977276A/en
Publication of CN107977276A publication Critical patent/CN107977276A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a kind of based reminding method of Changes in weather, device and mobile terminal, this method includes:Obtain current Weather information;According to the current Weather information and the last Weather information obtained, Changes in weather information is determined;When the Changes in weather information meets default Changes in weather rule, the use state of mobile terminal is obtained;According to the Changes in weather information and the use state of the mobile terminal, Changes in weather prompting is carried out.Utilize the embodiment of the present invention, can be by way of condition triggering, and the use state for combining mobile terminal to carry out user the prompting of Changes in weather, and no longer need user to carry out actively triggering and realize, the change that weather can be directed to so as to user adjusts travel time or progress emergency processing in time, so as to avoid user from suffering from the invasion and attack of above-mentioned anomalous weather, the flexibility for carrying out Changes in weather prompting is improved.

Description

A kind of based reminding method of Changes in weather, device and mobile terminal
Technical field
The present invention relates to field of computer technology, more particularly to a kind of based reminding method of Changes in weather, device and movement are eventually End.
Background technology
With the continuous development of terminal technology and network technology, mobile terminal (such as mobile phone or tablet computer) becomes people Instrument indispensable in live and work.Weather information is the important information for influencing people's trip, and people can pass through shifting Dynamic terminal obtains Weather information to be referred to for the trip of people.
In general, being provided with the application program of weather in mobile terminal, which can obtain Weather information, Yong Huke To carry out increase and decrease clothing in time by the Weather information, carry rain gear or protective face mask etc..When user needs to check newest day , it is necessary to start the application program of weather during gas information, and in the application program triggering renewal Weather information mechanism (for example, The Weather information page for pulling down the application program reaches certain position, then, unclamps the Weather information page, and at this time, triggering moves Dynamic terminal renewal Weather information), mobile terminal can obtain newest Weather information, and should using the renewal of newest Weather information With the Weather information in program.
However, the alerting pattern of update mode or Changes in weather based on above-mentioned Weather information is, it is necessary to which user carries out actively Triggering can just realize, in this way, when Weather information changes, anomalous weather (such as sleety weather, typhoon or gas especially occur Warm rapid drawdown when) when, if user does not check actively in time or updates Weather information, be likely to suffer from above-mentioned exception The invasion and attack of weather so that the very flexible that Changes in weather is reminded, but also the user preferences degree of application program can be caused to decline, drop The utilization rate of low application program.
The content of the invention
The embodiment of the present invention provides a kind of based reminding method of Changes in weather, to solve carrying out Changes in weather in the prior art Needing user to carry out actively triggering during prompting can just realize so that the problem of the very flexible of the prompting of Changes in weather.
In order to solve the above technical problems, what the embodiment of the present invention was realized in:
In a first aspect, a kind of based reminding method of Changes in weather provided in an embodiment of the present invention, the described method includes:
Obtain current Weather information;
According to the current Weather information and the last Weather information obtained, Changes in weather information is determined;
When the Changes in weather information meets default Changes in weather rule, the use state of mobile terminal is obtained;
According to the Changes in weather information and the use state of the mobile terminal, Changes in weather prompting is carried out.
Second aspect, an embodiment of the present invention provides a kind of alarm set of Changes in weather, described device includes:
Data obtaining module, for obtaining current Weather information;
Change information determining module, for according to the current Weather information and the last Weather information obtained, really Determine Changes in weather information;
Use state acquisition module, for when the Changes in weather information meets default Changes in weather rule, obtaining and moving The use state of dynamic terminal;
Reminding module, for the use state according to the Changes in weather information and the mobile terminal, carries out weather change Change and remind.
The third aspect, the embodiment of the present invention provide a kind of mobile terminal, including processor, memory and are stored in described deposit On reservoir and the computer program that can run on the processor, the computer program are realized when being performed by the processor The step of based reminding method for the Changes in weather that above-mentioned first aspect provides
Fourth aspect, the embodiment of the present invention provide a kind of computer-readable recording medium, the computer-readable storage medium Computer program is stored in matter, the computer program realizes the Changes in weather that above-mentioned first aspect provides when being executed by processor Based reminding method the step of.
Technical solution provided in an embodiment of the present invention is as it can be seen that the current weather that the embodiment of the present invention passes through acquisition more than Information and the last Weather information obtained, determine Changes in weather information, and meet default Changes in weather in Changes in weather information When regular, obtain the use state of mobile terminal, finally, can according to Changes in weather information and the use state of mobile terminal, Changes in weather prompting is carried out, in this way, can be by way of condition triggering, and the use state for combining mobile terminal is come to user The prompting of Changes in weather is carried out, and no longer needs user to carry out actively triggering and realizes, therefore, when Weather information changes, especially It is when there is anomalous weather (such as sleety weather, typhoon or there's a sudden fall in temperature), can to issue the user with Changes in weather in time and carry Wake up, the change that weather can be directed to so as to user adjusts travel time or progress emergency processing in time, so as to avoid user from meeting with To the invasion and attack of above-mentioned anomalous weather, the flexibility for carrying out Changes in weather prompting is improved, but also application program can be improved User preferences degree, and the utilization rate of application program.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is attached drawing needed in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments described in invention, for those of ordinary skill in the art, in the premise of not making the creative labor property Under, other attached drawings can also be obtained according to these attached drawings.
Fig. 1 is a kind of flow diagram of the based reminding method embodiment of Changes in weather of the present invention;
Fig. 2 is a kind of display schematic diagram of the renewal strategy setting of Weather information of the present invention;
Fig. 3 is a kind of display schematic diagram of the rule setting page of Changes in weather rule of the present invention;
Fig. 4 is the flow diagram of the based reminding method embodiment of another Changes in weather of the present invention;
Fig. 5 is the flow diagram of the based reminding method embodiment of another Changes in weather of the invention;
Fig. 6 is a kind of structure diagram of the alarm set of Changes in weather of the present invention;
Fig. 7 is a kind of structure diagram of mobile terminal of the present invention.
Embodiment
The embodiment of the present invention provides a kind of based reminding method of Changes in weather, device and mobile terminal.
In order to make those skilled in the art more fully understand the technical solution in the present invention, below in conjunction with of the invention real The attached drawing in example is applied, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described implementation Example is only part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, this area is common Technical staff's all other embodiments obtained without creative efforts, should all belong to protection of the present invention Scope.
Embodiment one
As shown in Figure 1, the embodiment of the present invention provides a kind of based reminding method of Changes in weather, the executive agent of this method can be with For mobile terminal or server, wherein, the mobile terminal can such as mobile phone, tablet computer mobile terminal device, should Mobile terminal can be the mobile terminal that uses of user, which can be an independent server or by more The server cluster of a server composition.This method can be applied to, when weather changes, remind user in time Deng in processing.This method specifically may comprise steps of:
In S102, current Weather information is obtained.
Wherein, Weather information can include temperature, wind direction, air quality, relative humidity, precipitation probability, precipitation feelings Condition, state of weather (such as sunny, cloudy or cloudy), in addition, it can include such as barometric information, ultraviolet radiation situation, position Information etc..
In force, if the executive agent of the embodiment of the present invention is mobile terminal, current Weather information is obtained Processing procedure can include herein below:In general, being provided with the application program of weather in mobile terminal, which can obtain Weather information is taken, user can be carried out increase and decrease clothing in time by the Weather information, carry rain gear or protective face mask etc..However, If user needs to check newest Weather information, usually require user and start the application program of weather, and journey is applied at this The mechanism of triggering renewal Weather information is (for example, the Weather information page for pulling down the application program reaches certain position, so in sequence Afterwards, the Weather information page is unclamped, at this time, triggering mobile terminal to update Weather information), mobile terminal can obtain newest day Gas information, and current Weather information is updated using newest Weather information, it that is to say, the renewal of Weather information usually requires to use Family, which carries out actively triggering, can just realize, in this way, when Weather information changes, anomalous weather (such as sleet sky especially occur Gas, typhoon or there's a sudden fall in temperature when) when, if user not or forgets actively to update Weather information, be likely to meet with To the invasion and attack of above-mentioned anomalous weather, for this reason, the embodiment of the present invention proposes that one kind can be led when Weather information changes The dynamic technical solution reminded, can specifically include herein below:
The renewal policy information of Weather information can be previously provided with mobile terminal, has been recorded in the renewal policy information More new strategy, the more new strategy can include it is a variety of, it is such as 3 minutes or 10 minutes specific for example, the update cycle can be set, For another example user can be set to deviate certain designated position certain distance, specifically such as, user is away from home, and is reached apart from the position of family To 5 kilometers or 10 kilometers etc., in practical applications, in addition to the achievable mode of above two, a variety of renewals can also be included Strategy, specifically may be set according to actual conditions, and details are not described herein for the embodiment of the present invention.
It should be noted that the renewal policy information of Weather information can be set in several ways, for example, can be by skill Art personnel are written into the application program of weather, in this way, the renewal plan that the application program can write according to technical staff Slightly information, automatically updates Weather information, alternatively, can also be set according to actual conditions by user, specifically, the application journey of weather The renewal strategy setting page of Weather information can be provided with sequence, if user needs to set accordingly according to the needs of itself More new strategy, then can start the application program of weather, which obtains the data of homepage, and shows the number of the homepage According to setting options can be included in the homepage, for being set accordingly to the application program.Then, user can click on Setting options, acquisition for mobile terminal sets the page accordingly, and displays it to user.As shown in Fig. 2, can in the setting page With the renewal strategy setting option including Weather information, user can click on the setting options, acquisition for mobile terminal Weather information The renewal strategy setting page, and display it to user, plurality of optional can be included in the renewal strategy setting page and is set, For example, periodically update strategy and the more new strategy based on change in location etc..Wherein, if user needs service life to update Strategy, then can also provide cycle setting frame in the renewal strategy setting page, user can pass through cycle setting frame and set The update cycle of Weather information, if user needs to use the more new strategy based on change in location, the renewal strategy setting page The setting frame that customer location changes corresponding distance threshold can also be provided in face, user can be set by the setting frame The changed critical value of customer location (i.e. distance threshold) is such as 5 kilometers or 10 kilometers specific.It is above-mentioned be provided with after, move Dynamic terminal can be stored the relevant information of the above-mentioned setting of user.
As long as mobile terminal is in open state, mobile terminal can obtain the pre-set Weather information of user more New strategy is updated Weather information, and specifically, mobile terminal can obtain to be set more in the more new strategy of Weather information New strategy, obtains current Weather information, such as the more new strategy of setting to periodically update strategy, and the update cycle is 5 points Clock, then mobile terminal can be every the Weather information of acquisition in 5 minutes.When the last duration for obtaining Weather information of distance reaches At 5 minutes, mobile terminal can send Weather information to weather server and obtain request, which obtains can be with request The positional information that mark and mobile terminal including mobile terminal are presently in, weather server can obtain the positional information Newest Weather information, and send it to mobile terminal, so that can to get current Weather information (i.e. above-mentioned for mobile terminal Newest Weather information).
In addition, if the executive agent of the embodiment of the present invention is server, then the treated of current Weather information is obtained Journey can include herein below:The renewal policy information of Weather information can be stored with server, which can To be that technical staff is pre-set in server, alternatively, in being set and uploaded onto the server by its mobile terminal by user, The set-up mode for wherein updating policy information may refer to above-mentioned related content, and details are not described herein.Further, since server Performance is usually preferable, and hence it is also possible to real-time update Weather information, and the Weather information of renewal can be stored in server In.
In S104, according to current Weather information and the last Weather information obtained, Changes in weather information is determined.
Wherein, Changes in weather information can be in the presence of poor between current Weather information and the last Weather information obtained Other Weather information, for example, Changes in weather information can be state of weather switchs to rain and snow mixed and/or mercury dropped 6 by cloudy Degree Celsius etc..
In force, in the case that the executive agent of the embodiment of the present invention is mobile terminal, mobile terminal passes through above-mentioned After the processing of S102 obtains current Weather information, the Weather information of last acquisition can also be stored with mobile terminal, is moved Same type of Weather information is contrasted in the Weather information that dynamic terminal can obtain current Weather information with the last time, Wherein, the type in Weather information can include state of weather, temperature, wind direction and air quality etc..If by above-mentioned Contrast determines that a certain type or polytype Weather information are different, then can be true based on definite different types of Weather information Changes in weather information is determined, for example, the Weather information of last acquisition is:State of weather:It is cloudy, temperature:10 degrees Celsius, wind-force wind To:1-2 grades of north wind etc., current Weather information are:State of weather:Light rain, temperature:4 degrees Celsius, wind direction:1-2 grades of north wind Deng can then determine that the Weather information of two types of state of weather and temperature is changed, therefore, Changes in weather information can be with For:State of weather is changed into light rain by cloudy, 6 degrees Celsius etc. of mercury dropped.
In addition, in the case that the executive agent of the embodiment of the present invention is server, the last time can be stored with server The Weather information of acquisition, can be by current weather after server obtains current Weather information by the processing of above-mentioned S102 Same type of Weather information is contrasted in the Weather information that information is obtained with the last time, to determine Changes in weather information, tool Body may refer to the processing procedure of above-mentioned mobile terminal, and details are not described herein.
In S106, when above-mentioned Changes in weather information meets default Changes in weather rule, the use of mobile terminal is obtained State.
Wherein, Changes in weather rule can be for judging whether the rule to user's progress Changes in weather prompting, weather Rule change can include a variety of, specifically may be set according to actual conditions, for example, current Weather information is obtained with last Weather information it is different, alternatively, Changes in weather information includes anomalous weather information, as sleety weather information, Typhoon Information or Information that there's a sudden fall in temperature etc..In addition, user is bothered in order to reduce, for current Weather information and the last weather obtained The different Changes in weather rule of information, can also further increase rule or condition on this basis, for example, current weather letter Breath is different from the Weather information that the last time obtains, and the temperature rises or declines predetermined temperature value (such as 5 degrees Celsius or 10 degrees Celsius Deng), current Weather information is different from the Weather information that the last time obtains, and wind-force brings up to predetermined grade (such as 5 grades or 7 grades Deng) etc..
In force, in the case that the executive agent of the embodiment of the present invention is mobile terminal, Changes in weather rule can lead to Cross various ways setting, for example, can be written into by technical staff in the application program of weather, alternatively, can also by with Family is set according to actual conditions, specifically, as shown in figure 3, can be provided with Changes in weather rule in the application program of weather The rule setting page, if user needs to set corresponding Changes in weather rule according to the needs of itself, can start weather Application program, and enter the above-mentioned rule setting page that the application program provides, can include in the rule setting page more Kind optional setting, user can determine one or more Changes in weather rules according to above-mentioned optional set, Changes in weather rule Particular content and related set-up mode, may refer to above-mentioned related content, details are not described herein.
, can be by the storage of Changes in weather rule in the terminal after user setting completes Changes in weather rule.Work as movement , can be by Changes in weather information and the weather of above-mentioned storage after terminal gets Changes in weather information by the processing of above-mentioned S104 Rule change is matched, if Changes in weather information matches with above-mentioned Changes in weather rule, can carry out Changes in weather Remind.Remind, can be completed with reference to the use state of mobile terminal at prompting to carry out timely Changes in weather to user Reason, can specifically, in mobile terminal be provided with the setting page of Changes in weather prompting, and user can pass through the above-mentioned setting page The mode that Changes in weather prompting is carried out under different scenes is set, and specific setting up procedure may refer to above-mentioned set-up mode, herein not Repeat again.After being provided with, if Changes in weather information matches with above-mentioned Changes in weather rule, mobile terminal can be obtained Use state.
In addition, in the case that the executive agent of the embodiment of the present invention is server, Changes in weather rule can be led to by user Cross during its mobile terminal sets and upload onto the server, the set-up mode of wherein Changes in weather rule may refer to above-mentioned phase inside the Pass Hold, details are not described herein.
After server gets Changes in weather information by the processing of above-mentioned S104, can by Changes in weather information with it is upper The Changes in weather rule for stating storage is matched, if Changes in weather information matches with above-mentioned Changes in weather rule, is serviced Device can determine that weather changes, and need to remind user, and at this time, server can obtain the use of mobile terminal State, for example, use state uploading instructions can be sent from server to mobile terminal, mobile terminal can be by its use state Upload onto the server.
In S108, according to above-mentioned Changes in weather information and the use state of mobile terminal, Changes in weather prompting is carried out.
In force, if Changes in weather information matches with above-mentioned Changes in weather rule, mobile terminal can basis The use state generation Changes in weather notification message of mobile terminal, and the Changes in weather is shown in the display interface of mobile terminal Notification message, so as to achieve the purpose that to remind user, if for example, the use state of mobile terminal to be currently currently being used, Then mobile terminal can generate Changes in weather notification message, and show that the Changes in weather notifies in the display interface of mobile terminal Message, if the use state of mobile terminal is is not used by, mobile terminal can generate Changes in weather notification message, and open Dynamic vibrator or playing alert tones, can include Changes in weather notification message in display interface.
In addition, in the case that the executive agent of the embodiment of the present invention is server, if Changes in weather information and above-mentioned day Gas rule change matches, then server can obtain the use state of mobile terminal, and at this time, server can be according to using shape State generates Changes in weather notification message, and sends it to mobile terminal, and mobile terminal can extract Changes in weather notification message In relevant information, and according to Changes in weather notification message indicate alerting pattern remind user's Changes in weather.Wherein, server In the case of above-mentioned executive agent being may refer to according to the processing of use state generation Changes in weather notification message as mobile terminal Related content, details are not described herein.
The embodiment of the present invention provides a kind of based reminding method of Changes in weather, passes through the current Weather information of acquisition and upper one The Weather information of secondary acquisition, determines Changes in weather information, and when Changes in weather information meets default Changes in weather rule, obtains The use state of mobile terminal, finally, can carry out Changes in weather according to Changes in weather information and the use state of mobile terminal Remind, in this way, can be by way of condition triggering, and the use state for combining mobile terminal to carry out Changes in weather to user Prompting, and no longer need user to carry out actively triggering and realize, therefore, when Weather information changes, especially occur abnormal During weather (such as sleety weather, typhoon or there's a sudden fall in temperature), Changes in weather prompting can be issued the user with time, so that user can Travel time is adjusted with the change for weather in time or carries out emergency processing, so as to avoid user from suffering from above-mentioned anomalous weather Invasion and attack, improve the flexibility for carrying out Changes in weather prompting, but also the user preferences degree of application program can be improved, and The utilization rate of application program.
Embodiment two
As shown in figure 4, the embodiment of the present invention provides a kind of based reminding method of Changes in weather, the executive agent of this method can be with For mobile terminal, the mobile terminal can such as personal computer equipment, can also such as mobile phone, tablet computer mobile terminal set Standby, which can be the mobile terminal that user uses.This method can be applied to when weather changes, to user Carry out in the processing such as prompting in time.This method specifically may comprise steps of:
In S402, the second place information that user is presently in position is obtained.
Wherein, second place information can be the information of the location of current time mobile terminal (or user), second Positional information can have multiform expression, such as be represented in a manner of geographical position coordinates, alternatively, between reference position Distance represent that reference position therein can be pre-set by user, the position or user as where the family of user are random Position of setting etc..
In force, the renewal policy information of Weather information, specific set-up mode can be previously provided with mobile terminal It may refer to the related content of S102 in above-described embodiment one with setting up procedure, details are not described herein.In view of weather to user The guild that goes out have a great influence, therefore, in the embodiment of the present invention, the renewal policy information of pre-set Weather information is inclined with user Exemplified by with a certain distance from designated position, designated position therein can be the pre-set position of user or movement is whole The end last time obtains position during Weather information, and certain distance therein can be distance threshold.
Mobile terminal can detect the position that mobile terminal is presently in every scheduled duration or in real time, in practical application In, mobile terminal can start the positioning function of mobile terminal, the position being presently in by positioning function acquisition mobile terminal, Position based on acquisition can obtain positional information, and positioning function therein can be only based on the positioning work(of satellite positioning mechanism Can, or can also be positioning function based on satellite positioning mechanism and base station etc..
In S404, if the change in location value for determining user according to said second position information reaches preset distance threshold Value, then obtain current Weather information.
Wherein, predetermined distance threshold may be set according to actual conditions, such as 10 kilometers or 12 kilometers specific.Change in location Value can be the distance between the position of position to after changing before changing.
In force, mobile terminal can obtain the second confidence that mobile terminal is presently in position by positioning function Breath, meanwhile, the last positional information obtained can be stored with mobile terminal, mobile terminal can pass through second place information The positional information obtained with the last time, calculates the distance between two positions, position that can be using the numerical value of the distance as user Changing value is put, then, then by the change in location value of obtained user compared with distance threshold set in advance, if the position Put changing value and be greater than or equal to the distance threshold, then mobile terminal can determine that user needs to go on a journey or goes out, in order to carry in time Weather condition of the awake user during going on a journey or is outgoing, can obtain current Weather information.Wherein, weather letter is being obtained During breath, current second place information can also be sent to server, server can be by second place information phase Corresponding Weather information is sent to mobile terminal.
In addition, no matter whether user goes on a journey, Changes in weather prompting can be carried out to user, for this reason, can also be by setting The mode for putting the update cycle obtains current Weather information, and concrete processing procedure can include herein below:It is default when reaching During the Weather information update cycle, current Weather information is obtained, its concrete processing procedure may refer in above-described embodiment one Related content, details are not described herein.
In S406, according to current Weather information and the last Weather information obtained, Changes in weather information is determined.
In S408, when above-mentioned Changes in weather information meets default Changes in weather rule, the use of mobile terminal is obtained State.
Wherein, Changes in weather rule may be set according to actual conditions, and Changes in weather rule can only set a kind of weather Relevant information, for example, Changes in weather rule can be 8 degrees Celsius of haze or mercury dropped etc., Changes in weather rule can also Include the relevant information of a variety of different weathers, for example, Changes in weather rule can include haze, dense fog, typhoon and precipitation etc.. In practical application, Changes in weather rule can be the relevant information of one or more anomalous weathers, and anomalous weather therein can be with Including sleety weather, typhoon, there's a sudden fall in temperature, foggy weather, haze weather and strong wind weather etc., and based on the above, weather becomes One or more of can be included by changing rule:The temperature difference of temperature exceedes predetermined temperature threshold, precipitation, visibility variation and exceedes Predetermined threshold of visibility, wind-force change exceed predetermined air quality threshold more than predetermined wind-force threshold value and air quality change, its In predetermined temperature threshold, predetermined threshold of visibility, predetermined wind-force threshold value and predetermined air quality threshold can be according to actual feelings Condition is set, and it is not limited in the embodiment of the present invention.
In force, can be stored with mobile terminal Changes in weather rule, the Changes in weather rule can include it is a variety of, It can specifically be set according to actual conditions, setting means is referring also to the related content in above-described embodiment one, herein Repeat no more.May go on a journey in view of anomalous weather to user has considerable influence, and therefore, user or technical staff can be by days Gas rule change is arranged in Changes in weather information whether include default Weather information, wherein, default Weather information can be with Pre-set in the terminal by user or technical staff, specific setting up procedure may refer to above-mentioned related content.
After acquisition for mobile terminal is to Changes in weather information, the relevant information in Changes in weather information can be extracted, and it is right The Changes in weather information is analyzed, and judges wherein whether include above-mentioned default Weather information (i.e. Changes in weather rule), such as Fruit does not include default Weather information wherein, then show in current Weather information there is no influence user trip it is important because Element, at this time, mobile terminal can need not carry out Changes in weather prompting, in addition, in order to make full use of the current weather of acquisition Information, mobile terminal can use the current Weather information obtained to replace what is currently presented or use in the application program of weather Weather information, meanwhile, can be by the current Weather information storage in the terminal, during in case obtaining Weather information next time Use.If Changes in weather information includes default Weather information, show that current weather may influence whether user's Trip, at this time, mobile terminal can obtain the use state of mobile terminal, and perform the processing of following S410 or S412.
In S410, if the use state instruction mobile terminal of mobile terminal is in screen lock state, pass through screen locking wall Paper carries out Changes in weather prompting.
In S412, if the use state instruction mobile terminal of mobile terminal is in by use state, pass through desktop The mode of wallpaper or voice broadcast carries out Changes in weather prompting.
In force, for the processing of above-mentioned S410 and S412, in the processing for carrying out Changes in weather prompting, can include A variety of processing modes, a kind of optional processing mode presented below, can specifically include herein below:The place that Changes in weather is reminded Reason mode can specifically be pre-set by user or technical staff, specific setting up procedure be referred to above-mentioned related set-up mode into OK, details are not described herein.In the embodiment of the present invention, two kinds of different Changes in weather alerting patterns can be set, such as pass through wallpaper The mode reminded and by way of voice broadcast etc..In order to avoid the voice under some special screnes (such as conference scenario) Report can cause user using puzzlement, and acquiescence alerting pattern is arranged to by way of being reminded wallpaper, certainly, User as needed can be modified it.When carrying out Changes in weather prompting, mobile terminal can obtain Changes in weather and carry Awake processing mode, judges whether current processing mode is by way of wallpaper is reminded, if it is, can pass through Wallpaper carries out Changes in weather prompting to user, if for example, Changes in weather information includes the default Weather information of rainfall, Mobile terminal can obtain one just in the dynamic wallpaper of rainfall, the display interface that the dynamic wallpaper can be passed through mobile terminal It has been shown that, occurs rainy weather, alternatively, it is also an option that any one wall to remind in user's present or future certain time length Paper, and current Weather information or Changes in weather information are set on the wallpaper, then, it is included to the display in mobile terminal In interface.
In practical applications, if mobile terminal is currently at screen lock state, weather can be carried out by screen locking wallpaper Change is reminded, if mobile terminal is currently at by use state, (or can also pass through voice by desktop wallpaper The mode of report) Changes in weather prompting is carried out, in this way, can cover mobile terminal by screen locking wallpaper or desktop wallpaper currently makes Wallpaper certain time length, so as to achieve the purpose that to remind user, while leaves normal use of the user to wallpaper alone again.
If it is determined that current processing mode is not by way of wallpaper is reminded, then it can pass through voice broadcast Mode carries out Changes in weather prompting.Wherein, voice data used in voice broadcast can select language built-in in mobile terminal Voice data that sound data or user record or download etc..
In addition, for the situation that Changes in weather prompting is carried out by way of voice broadcast, can also be current according to user Residing scene is further judged, for example, can also be stored with the daily schedule information of user, the work and rest in mobile terminal Temporal information can determine use according to user by user setting or mobile terminal usually using the custom of mobile terminal The daily schedule information at family, if current time is in the time of user's rest, mobile terminal can be by wallpaper to user Changes in weather prompting is carried out, specifically may refer to above-mentioned related content.If current time is not in the time of user's rest, Mobile terminal can play corresponding voice data to remind the change of user's weather, wherein, if current time be not in using The time of family rest, but the calendar information for passing through user judges that user is in meeting at this time, or in interruption-free In special screne, then Changes in weather prompting can be carried out by non-intrusive manner (such as vibrations or long-time wallpaper are reminded).
It should be noted that whether above-mentioned Changes in weather rule is to believe in current Weather information comprising default weather Illustrated exemplified by breath, in practical applications, Changes in weather rule can also include other set-up modes, concrete processing procedure Above-mentioned related content is may be referred to, details are not described herein.
In addition, in order to avoid causing the puzzlement of frequently progress Changes in weather prompting to user, can be in the base of above-mentioned condition Further setting trigger condition, specific processing mode can include a kind of a variety of, optional processing mode presented below on plinth, have Body can include herein below:If current Weather information is different from the Weather information that the last time obtains, and Changes in weather is believed Breath includes default a certain or a variety of Weather informations, then carries out Changes in weather prompting, wherein, the weather letter that the last time obtains Breath does not include default a certain or a variety of Weather informations.
Wherein, default a certain or a variety of Weather informations may be set according to actual conditions, default a certain or more Kind Weather information, for example, default a certain or a variety of Weather informations can include in the Weather informations such as haze, dense fog and typhoon One or more.
In force, mobile terminal can be contrasted the Weather information that current Weather information is obtained with the last time, If both are different, and difference meets default a certain or a variety of days between same type of two different Weather informations Gas information, then can determine the large change that current weather occurs, at this time, mobile terminal can carry out Changes in weather prompting.
The embodiment of the present invention provides a kind of based reminding method of Changes in weather, passes through the current Weather information of acquisition and upper one The Weather information of secondary acquisition, determines Changes in weather information, and when Changes in weather information meets default Changes in weather rule, obtains The use state of mobile terminal, finally, can carry out Changes in weather according to Changes in weather information and the use state of mobile terminal Remind, in this way, can be by way of condition triggering, and the use state for combining mobile terminal to carry out Changes in weather to user Prompting, and no longer need user to carry out actively triggering and realize, therefore, when Weather information changes, especially occur abnormal During weather (such as sleety weather, typhoon or there's a sudden fall in temperature), Changes in weather prompting can be issued the user with time, so that user can Travel time is adjusted with the change for weather in time or carries out emergency processing, so as to avoid user from suffering from above-mentioned anomalous weather Invasion and attack, improve the flexibility for carrying out Changes in weather prompting, but also the user preferences degree of application program can be improved, and The utilization rate of application program.
Embodiment three
As shown in figure 5, the embodiment of the present invention provides a kind of based reminding method of Changes in weather, the executive agent of this method can be with For server and mobile terminal, which can be weather server (or background server of the application program of weather etc.) The server can be an independent server or the server cluster being made of multiple servers, and the movement is whole End can such as mobile phone, tablet computer mobile terminal device, which can be the mobile terminal that uses of user.This method It can be applied to when weather changes, user carried out in the processing such as prompting in time.This method can specifically include following Step:
In S502, server obtains first position information during last acquisition Weather information.
Wherein, first position information can be the location of mobile terminal when the server last time obtaining Weather information Information.First position information can have multiform expression, such as be represented in a manner of geographical position coordinates, alternatively, with The distance between reference position represents that reference position therein can pre-set by user.
In force, server can carry out in real time or periodically update therein deposit according to the more new strategy of Weather information The Weather information of multiple and different positions of storage, more new strategy therein and multiple and different positions may be set according to actual conditions. The correspondence of diverse location information and Weather information can be stored with server, can after server gets Weather information The corresponding Weather information of diverse location information to be contrasted with the Weather information obtained, if both are different, can make The corresponding Weather information in correspondence is replaced with the Weather information of acquisition, so as to update the Weather information in server.Service After the completion of device renewal, positional information when can obtain acquisition for mobile terminal last time acquisition Weather information (i.e. believe by first position Breath).
In S504, according to above-mentioned first position information, server obtains corresponding current with the first position information Weather information.
In S506, server determines Changes in weather according to current Weather information and the last Weather information obtained Information.
In S508, when above-mentioned Changes in weather information meets default Changes in weather rule, server obtains mobile terminal Use state.
Wherein, during Changes in weather rule can be uploaded onto the server by user by mobile terminal, alternatively, can also be by skill Art personnel pre-set, and specifically may refer to above-mentioned related content, details are not described herein.
The concrete processing procedure of above-mentioned S506 and S508 may refer to phase in above-described embodiment one and embodiment two inside the Pass Hold, details are not described herein.
In S510, server generates what is matched with the use state of mobile terminal according to above-mentioned Changes in weather information Changes in weather notifies.
Wherein, current Weather information and Changes in weather information etc. can be included in Changes in weather notice.
In force, Changes in weather prompting can be carried out by way of wallpaper or voice broadcast, if for this reason, mobile whole The use state instruction mobile terminal at end is in screen lock state, then server can generate weather according to above-mentioned Changes in weather information Change notification, and screen lock state generation is according to mobile terminal and is referred to by the prompting of screen locking wallpaper progress Changes in weather prompting Order, which can be instructed set into Changes in weather notice, finally obtain complete Changes in weather notice.
In S512, server sends above-mentioned Changes in weather to mobile terminal and notifies, so that mobile terminal is according to the weather Change notification, carries out Changes in weather prompting.
The concrete processing procedure of above-mentioned S506 may refer to the related content in above-described embodiment one and embodiment two, herein Repeat no more.
In S514, if the use state instruction mobile terminal of mobile terminal is in screen lock state, mobile terminal leads to Cross screen locking wallpaper and carry out Changes in weather prompting.
In S516, if the use state instruction mobile terminal of mobile terminal is in by use state, mobile terminal Changes in weather prompting is carried out by way of desktop wallpaper or voice broadcast.
In force, after mobile terminal receives Changes in weather notice, the prompting that can be extracted in Changes in weather notice refers to Order, and based on reminding instruction to carry out Changes in weather prompting by wallpaper, alternatively, carrying out Changes in weather by way of voice broadcast Remind, the processing of specific reminder process may refer to the related content in above-described embodiment two, and details are not described herein.
The embodiment of the present invention provides a kind of based reminding method of Changes in weather, passes through the current Weather information of acquisition and upper one The Weather information of secondary acquisition, determines Changes in weather information, and when Changes in weather information meets default Changes in weather rule, obtains The use state of mobile terminal, finally, can carry out Changes in weather according to Changes in weather information and the use state of mobile terminal Remind, in this way, can be by way of condition triggering, and the use state for combining mobile terminal to carry out Changes in weather to user Prompting, and no longer need user to carry out actively triggering and realize, therefore, when Weather information changes, especially occur abnormal During weather (such as sleety weather, typhoon or there's a sudden fall in temperature), Changes in weather prompting can be issued the user with time, so that user can Travel time is adjusted with the change for weather in time or carries out emergency processing, so as to avoid user from suffering from above-mentioned anomalous weather Invasion and attack, improve the flexibility for carrying out Changes in weather prompting, but also the user preferences degree of application program can be improved, and The utilization rate of application program.
Example IV
It is the based reminding method of Changes in weather provided in an embodiment of the present invention above, based on same thinking, the present invention is implemented Example also provides a kind of alarm set of Changes in weather, as shown in Figure 6.
The alarm set of the Changes in weather includes:Data obtaining module 601, change information determining module 602, use shape State acquisition module 603 and reminding module 604, wherein:
Data obtaining module 601, for obtaining current Weather information;
Change information determining module 602, for according to the current Weather information and the last Weather information obtained, Determine Changes in weather information;
Use state acquisition module 603, for when the Changes in weather information meets default Changes in weather rule, obtaining The use state of mobile terminal;
Reminding module 604, for the use state according to the Changes in weather information and the mobile terminal, carries out weather Change is reminded.
In the embodiment of the present invention, described information acquisition module 601, including:
First position acquiring unit, for obtaining first position information during last acquisition Weather information;
Information acquisition unit, for according to the first position information, obtaining corresponding with the first position information Current Weather information;
The reminding module 604, including:
Change notification generation unit, for using shape with the mobile terminal according to the Changes in weather information, generation The Changes in weather notice that state matches;
Transmitting element, notifies for sending the Changes in weather to the mobile terminal so that the mobile terminal according to The Changes in weather notice, carries out Changes in weather prompting.
In the embodiment of the present invention, described information acquisition module 601, for when the arrival default Weather information update cycle When, obtain current Weather information;Alternatively, obtain the second place information that user is presently in position;If according to described Two positional informations determine that the change in location value of user reaches predetermined distance threshold, then obtain current Weather information.
In the embodiment of the present invention, the default Changes in weather rule includes one or more of:The temperature difference of temperature surpasses Cross predetermined temperature threshold, precipitation, visibility variation and exceed predetermined wind-force threshold value and sky more than predetermined threshold of visibility, wind-force change Gas mass change exceedes predetermined air quality threshold.
In the embodiment of the present invention, the reminding module 604, if for described in the use state instruction of the mobile terminal Mobile terminal is in screen lock state, then carries out Changes in weather prompting by screen locking wallpaper;If alternatively, the mobile terminal makes Mobile terminal is in by use state described in state instruction, then weather change is carried out by way of desktop wallpaper or voice broadcast Change and remind.
The alarm set of Changes in weather provided in an embodiment of the present invention can be realized to be moved in the embodiment of the method for Fig. 1 to Fig. 5 Each process that dynamic terminal and/or server are realized, to avoid repeating, which is not described herein again.
The embodiment of the present invention provides a kind of alarm set of Changes in weather, passes through the current Weather information of acquisition and upper one The Weather information of secondary acquisition, determines Changes in weather information, and when Changes in weather information meets default Changes in weather rule, obtains The use state of mobile terminal, finally, can carry out Changes in weather according to Changes in weather information and the use state of mobile terminal Remind, in this way, can be by way of condition triggering, and the use state for combining mobile terminal to carry out Changes in weather to user Prompting, and no longer need user to carry out actively triggering and realize, therefore, when Weather information changes, especially occur abnormal During weather (such as sleety weather, typhoon or there's a sudden fall in temperature), Changes in weather prompting can be issued the user with time, so that user can Travel time is adjusted with the change for weather in time or carries out emergency processing, so as to avoid user from suffering from above-mentioned anomalous weather Invasion and attack, improve the flexibility for carrying out Changes in weather prompting, but also the user preferences degree of application program can be improved, and The utilization rate of application program.
Embodiment five
Fig. 7 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention,
The mobile terminal 700 includes but not limited to:It is radio frequency unit 701, mixed-media network modules mixed-media 702, audio output unit 703, defeated Enter unit 704, sensor 705, display unit 706, user input unit 707, interface unit 708, memory 709, processor The component such as 710 and power supply 711.It will be understood by those skilled in the art that the mobile terminal structure shown in Fig. 7 is not formed Restriction to mobile terminal, mobile terminal can be included than illustrating more or fewer components, either combine some components or Different component arrangements.In embodiments of the present invention, mobile terminal include but not limited to mobile phone, tablet computer, laptop, Palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 710, for obtaining current Weather information;
Processor 710, is additionally operable to, according to the current Weather information and the last Weather information obtained, determine weather Change information;
Processor 710, is additionally operable to, when the Changes in weather information meets default Changes in weather rule, obtain mobile terminal Use state;
Processor 710, is additionally operable to the use state according to the Changes in weather information and the mobile terminal, carries out weather Change is reminded.
In addition, processor 710, is additionally operable to obtain first position information during last acquisition Weather information;
Processor 710, is additionally operable to according to the first position information, obtains and the first position information is corresponding works as Preceding Weather information;
Processor 710, is additionally operable to, according to the Changes in weather information, generate the use state phase with the mobile terminal The Changes in weather notice matched somebody with somebody;
Radio frequency unit 701, notifies for sending the Changes in weather to the mobile terminal, so that the mobile terminal root Notified according to the Changes in weather, carry out Changes in weather prompting.
In addition, processor 710, is additionally operable to when reaching the default Weather information update cycle, obtain current weather letter Breath;Alternatively,
Processor 710, is additionally operable to obtain the second place information that user is presently in position;
Processor 710, if being additionally operable to determine that the change in location value of user reaches predetermined according to the second place information Distance threshold, then obtain current Weather information.
In addition, the default Changes in weather rule includes one or more of:The temperature difference of temperature exceedes predetermined temperature Threshold value, precipitation, visibility variation exceed predetermined threshold of visibility, wind-force change changes more than predetermined wind-force threshold value and air quality More than predetermined air quality threshold.
In addition, processor 710, if the use state for being additionally operable to the mobile terminal indicates that the mobile terminal is in lock Screen state, then carry out Changes in weather prompting by screen locking wallpaper;Alternatively,
Processor 710, is used if the use state for being additionally operable to the mobile terminal indicates that the mobile terminal is in State, then carry out Changes in weather prompting by way of desktop wallpaper or voice broadcast.
The embodiment of the present invention provides a kind of mobile terminal, current Weather information and the last day obtained by acquisition Gas information, determines Changes in weather information, and when Changes in weather information meets default Changes in weather rule, obtains mobile terminal Use state, finally, can carry out Changes in weather prompting according to Changes in weather information and the use state of mobile terminal, in this way, Can be by way of condition triggering, and the use state for combining mobile terminal to carry out user the prompting of Changes in weather, and No longer need user to carry out actively triggering and realize therefore, when Weather information changes, anomalous weather (such as rain especially occur Snowy day gas, typhoon or there's a sudden fall in temperature when) when, can issue the user with time Changes in weather prompting, so that user can be directed to day The change of gas adjusts the travel time or carries out emergency processing in time, so that avoid user from suffering from the invasion and attack of above-mentioned anomalous weather, The flexibility for carrying out Changes in weather prompting is improved, but also the user preferences degree of application program can be improved, and using journey The utilization rate of sequence.
It should be understood that in the embodiment of the present invention, radio frequency unit 701 can be used for receiving and sending messages or communication process in, signal Reception and transmission, specifically, by from base station downlink data receive after, handled to processor 710;In addition, by uplink Data sending is to base station.In general, radio frequency unit 701 includes but not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 701 can also by wireless communication system and network and other set Standby communication.
Mobile terminal has provided wireless broadband internet to the user by mixed-media network modules mixed-media 702 and has accessed, and such as helps user to receive Send e-mails, browse webpage and access streaming video etc..
Audio output unit 703 can be receiving by radio frequency unit 701 or mixed-media network modules mixed-media 702 or in memory 709 It is sound that the voice data of storage, which is converted into audio signal and exports,.Moreover, audio output unit 703 can also be provided and moved The relevant audio output of specific function that dynamic terminal 700 performs is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 703 includes loudspeaker, buzzer and receiver etc..
Input unit 704 is used to receive audio or video signal.Input unit 704 can include graphics processor (Graphics Processing Unit, GPU) 7041 and microphone 7042, graphics processor 7041 is in video acquisition mode Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) carry out Reason.Picture frame after processing may be displayed on display unit 706.Picture frame after the processing of graphics processor 7041 can be deposited Storage is transmitted in memory 707 (or other storage mediums) or via radio frequency unit 701 or mixed-media network modules mixed-media 702.Mike Wind 7042 can receive sound, and can be voice data by such acoustic processing.Voice data after processing can be The form output of mobile communication base station can be sent to via radio frequency unit 701 by being converted in the case of telephone calling model.
Mobile terminal 700 further includes at least one sensor 705, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 7061, and proximity sensor can close when mobile terminal 700 is moved in one's ear Display panel 7061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, size and the direction of gravity are can detect that when static, available for identification mobile terminal posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Pass Sensor 705 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared ray sensor etc. are spent, details are not described herein.
Display unit 706 is used for the information for showing by information input by user or being supplied to user.Display unit 706 can wrap Display panel 7061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 7061.
User input unit 707 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is related.Specifically, user input unit 707 include contact panel 7071 and Other input equipments 7072.Contact panel 7071, also referred to as touch-screen, collect user on it or neighbouring touch operation (for example user uses any suitable objects or annex such as finger, stylus on contact panel 7071 or in contact panel 7071 Neighbouring operation).Contact panel 7071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 710, receiving area Manage the order that device 710 is sent and performed.It is furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes contact panel 7071.Except contact panel 7071, user input unit 707 can also include other input equipments 7072.Specifically, other input equipments 7072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operation lever, details are not described herein.
Further, contact panel 7071 can be covered on display panel 7061, when contact panel 7071 is detected at it On or near touch operation after, send to processor 710 with determine touch event type, be followed by subsequent processing device 710 according to touch The type for touching event provides corresponding visual output on display panel 7061.Although in the figure 7, contact panel 7071 and display Panel 7061 is the component independent as two to realize the function that outputs and inputs of mobile terminal, but in some embodiments In, can be integrated by contact panel 7071 and display panel 7061 and realize the function that outputs and inputs of mobile terminal, it is specific this Place does not limit.
Interface unit 708 is the interface that external device (ED) is connected with mobile terminal 700.For example, external device (ED) can include Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, audio input/output (I/O) port, video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 708 can be used for receive the input (for example, data message, electric power etc.) from external device (ED) and One or more elements that the input received is transferred in mobile terminal 700 can be used in 700 He of mobile terminal Data are transmitted between external device (ED).
Memory 709 can be used for storage software program and various data.Memory 709 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 709 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 710 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection A part, by running or performing the software program and/or module that are stored in memory 709, and calls and is stored in storage Data in device 709, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.Place Reason device 710 may include one or more processing units;Preferably, processor 710 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main Handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 710.
Mobile terminal 700 can also include the power supply 711 (such as battery) to all parts power supply, it is preferred that power supply 711 Can be logically contiguous by power-supply management system and processor 710, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 710, and memory 709, is stored in On memory 709 and the computer program that can be run on the processor 710, the computer program are performed by processor 710 Each process of the based reminding method embodiment of the above-mentioned Changes in weather of Shi Shixian, and identical technique effect can be reached, to avoid weight Multiple, which is not described herein again.
Embodiment six
The embodiment of the present invention also provides a kind of computer-readable recording medium, and meter is stored with computer-readable recording medium Calculation machine program, the computer program realize each mistake of the based reminding method embodiment of above-mentioned Changes in weather when being executed by processor Journey, and identical technique effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer-readable storage medium Matter, such as read-only storage (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc..
The embodiment of the present invention provides a kind of computer-readable recording medium, passes through the current Weather information of acquisition and upper one The Weather information of secondary acquisition, determines Changes in weather information, and when Changes in weather information meets default Changes in weather rule, obtains The use state of mobile terminal, finally, can carry out Changes in weather according to Changes in weather information and the use state of mobile terminal Remind, in this way, can be by way of condition triggering, and the use state for combining mobile terminal to carry out Changes in weather to user Prompting, and no longer need user to carry out actively triggering and realize, therefore, when Weather information changes, especially occur abnormal During weather (such as sleety weather, typhoon or there's a sudden fall in temperature), Changes in weather prompting can be issued the user with time, so that user can Travel time is adjusted with the change for weather in time or carries out emergency processing, so as to avoid user from suffering from above-mentioned anomalous weather Invasion and attack, improve the flexibility for carrying out Changes in weather prompting, but also the user preferences degree of application program can be improved, and The utilization rate of application program.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more The computer program production that usable storage medium is implemented on (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or square frame in journey and/or square frame and flowchart and/or the block diagram.These computer programs can be provided The processors of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices, which produces, to be used in fact The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or The instruction performed on other programmable devices is provided and is used for realization in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a square frame or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM), Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus Or any other non-transmission medium, the information that can be accessed by a computing device available for storage.Define, calculate according to herein Machine computer-readable recording medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability Comprising so that process, method, commodity or equipment including a series of elements not only include those key elements, but also wrapping Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment it is intrinsic will Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that wanted including described Also there are other identical element in the process of element, method, commodity or equipment.
It will be understood by those skilled in the art that the embodiment of the present invention can be provided as method, system or computer program product. Therefore, the present invention can be using the embodiment in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Form.Deposited moreover, the present invention can use to can use in one or more computers for wherein including computer usable program code The shape for the computer program product that storage media is implemented on (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The foregoing is merely the embodiment of the present invention, is not intended to limit the invention.For those skilled in the art For, the invention may be variously modified and varied.All any modifications made within spirit and principles of the present invention, be equal Replace, improve etc., it should be included within scope of the presently claimed invention.

Claims (12)

  1. A kind of 1. based reminding method of Changes in weather, it is characterised in that the described method includes:
    Obtain current Weather information;
    According to the current Weather information and the last Weather information obtained, Changes in weather information is determined;
    When the Changes in weather information meets default Changes in weather rule, the use state of mobile terminal is obtained;
    According to the Changes in weather information and the use state of the mobile terminal, Changes in weather prompting is carried out.
  2. 2. according to the method described in claim 1, it is characterized in that, described obtain current Weather information, including:
    Obtain first position information during last acquisition Weather information;
    According to the first position information, obtain and the corresponding current Weather information of the first position information;
    It is described that Changes in weather prompting is carried out according to the Changes in weather information and the use state of the mobile terminal, including:
    According to the Changes in weather information, the Changes in weather that the use state of generation and the mobile terminal matches notifies;
    The Changes in weather notice is sent to the mobile terminal, so that the mobile terminal is notified according to the Changes in weather, Carry out Changes in weather prompting.
  3. 3. according to the method described in claim 1, it is characterized in that, described obtain current Weather information, including:
    When reaching the default Weather information update cycle, current Weather information is obtained;Alternatively,
    Obtain the second place information that user is presently in position;
    If determining that the change in location value of user reaches predetermined distance threshold according to the second place information, obtain currently Weather information.
  4. 4. according to the method described in claim 1, it is characterized in that, the default Changes in weather rule includes following one kind or more Kind:It is super more than predetermined threshold of visibility, wind-force change that the temperature difference of temperature exceedes predetermined temperature threshold, precipitation, visibility variation Cross predetermined wind-force threshold value and air quality change and exceed predetermined air quality threshold.
  5. 5. according to the described method of any one of claim 1-4, it is characterised in that it is described according to the Changes in weather information and The use state of the mobile terminal, carries out Changes in weather prompting, including:
    If the use state of the mobile terminal indicates that the mobile terminal is in screen lock state, carried out by screen locking wallpaper Changes in weather is reminded;Alternatively,
    If the use state of the mobile terminal indicates that the mobile terminal is in by use state, by desktop wallpaper or The mode of voice broadcast carries out Changes in weather prompting.
  6. 6. a kind of alarm set of Changes in weather, it is characterised in that described device includes:
    Data obtaining module, for obtaining current Weather information;
    Change information determining module, for according to the current Weather information and the last Weather information obtained, determining day Gas change information;
    Use state acquisition module, for when the Changes in weather information meets default Changes in weather rule, obtaining mobile whole The use state at end;
    Reminding module, for the use state according to the Changes in weather information and the mobile terminal, carries out Changes in weather and carries Wake up.
  7. 7. device according to claim 6, it is characterised in that described information acquisition module, including:
    First position acquiring unit, for obtaining first position information during last acquisition Weather information;
    Information acquisition unit, for according to the first position information, obtaining corresponding current with the first position information Weather information;
    The reminding module, including:
    Change notification generation unit, for according to the Changes in weather information, generating the use state phase with the mobile terminal Matched Changes in weather notice;
    Transmitting element, notifies for sending the Changes in weather to the mobile terminal, so that the mobile terminal is according to Changes in weather notifies, carries out Changes in weather prompting.
  8. 8. device according to claim 6, it is characterised in that described information acquisition module, for when the default day of arrival During the gas information updating cycle, current Weather information is obtained;Alternatively, obtain the second place information that user is presently in position; If the change in location value for determining user according to the second place information reaches predetermined distance threshold, current weather is obtained Information.
  9. 9. device according to claim 6, it is characterised in that the default Changes in weather rule includes following a kind of or more Kind:It is super more than predetermined threshold of visibility, wind-force change that the temperature difference of temperature exceedes predetermined temperature threshold, precipitation, visibility variation Cross predetermined wind-force threshold value and air quality change and exceed predetermined air quality threshold.
  10. 10. according to the device any one of claim 6-9, it is characterised in that the reminding module, if for described The use state of mobile terminal indicates that the mobile terminal is in screen lock state, then carrying out Changes in weather by screen locking wallpaper carries Wake up;If alternatively, the use state of the mobile terminal indicates that the mobile terminal is in by use state, pass through desktop wall The mode of paper or voice broadcast carries out Changes in weather prompting.
  11. 11. a kind of mobile terminal, it is characterised in that including processor, memory and be stored on the memory and can be in institute The computer program run on processor is stated, such as claim 1 to 5 is realized when the computer program is performed by the processor Any one of Changes in weather based reminding method the step of.
  12. 12. a kind of computer-readable recording medium, it is characterised in that computer journey is stored on the computer-readable recording medium Sequence, realizes the prompting of the Changes in weather as any one of claim 1 to 5 when the computer program is executed by processor The step of method.
CN201711381169.6A 2017-12-20 2017-12-20 A kind of based reminding method of Changes in weather, device and mobile terminal Pending CN107977276A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711381169.6A CN107977276A (en) 2017-12-20 2017-12-20 A kind of based reminding method of Changes in weather, device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711381169.6A CN107977276A (en) 2017-12-20 2017-12-20 A kind of based reminding method of Changes in weather, device and mobile terminal

Publications (1)

Publication Number Publication Date
CN107977276A true CN107977276A (en) 2018-05-01

Family

ID=62006836

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711381169.6A Pending CN107977276A (en) 2017-12-20 2017-12-20 A kind of based reminding method of Changes in weather, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN107977276A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111092985A (en) * 2018-10-23 2020-05-01 奇酷互联网络科技(深圳)有限公司 Reminding method of mobile terminal, mobile terminal and computer storage medium
CN111259270A (en) * 2020-01-15 2020-06-09 上海掌门科技有限公司 Weather reminding method, equipment and computer readable medium
CN111629073A (en) * 2020-07-28 2020-09-04 广州汽车集团股份有限公司 Method, device and system for acquiring weather information by intelligent terminal
CN113988379A (en) * 2021-09-30 2022-01-28 携程商旅信息服务(上海)有限公司 Travel track identification method, system, equipment and storage medium
CN115357317A (en) * 2022-07-18 2022-11-18 荣耀终端有限公司 Display control method and device of terminal equipment, chip and equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101964136A (en) * 2010-09-19 2011-02-02 优视科技有限公司 Method and device for prompting special weather by mobile terminal
CN102098631A (en) * 2011-01-26 2011-06-15 华为终端有限公司 Method for processing weather information, and terminal
CN102104678A (en) * 2010-12-01 2011-06-22 宇龙计算机通信科技(深圳)有限公司 Weather information update reminding method and system, and communication terminal
CN102263858A (en) * 2011-07-22 2011-11-30 深圳市无线开锋科技有限公司 Weather forecast prompting method, system and mobile terminal thereof
CN102821351A (en) * 2011-06-08 2012-12-12 中兴通讯股份有限公司 Mobile communication terminal and method of mobile communication terminal for feeding back position and weather information
CN103064713A (en) * 2012-12-31 2013-04-24 广东欧珀移动通信有限公司 Method of changing terminal wallpaper automatically with weather
CN104601807A (en) * 2014-12-30 2015-05-06 西安乾易企业管理咨询有限公司 Mobile terminal type intelligent reminding method for sudden changes of weather
CN106060278A (en) * 2016-07-29 2016-10-26 乐视控股(北京)有限公司 Weather information prompting method, device and terminal
CN106295861A (en) * 2016-08-01 2017-01-04 北京小米移动软件有限公司 The acquisition methods of weather forecast information, device and equipment
CN106599314A (en) * 2016-12-30 2017-04-26 深圳天珑无线科技有限公司 Weather variation prompt method and device
CN107332986A (en) * 2017-06-21 2017-11-07 深圳传音控股有限公司 Obtain method, device and the terminal of Weather information

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101964136A (en) * 2010-09-19 2011-02-02 优视科技有限公司 Method and device for prompting special weather by mobile terminal
CN102104678A (en) * 2010-12-01 2011-06-22 宇龙计算机通信科技(深圳)有限公司 Weather information update reminding method and system, and communication terminal
CN102098631A (en) * 2011-01-26 2011-06-15 华为终端有限公司 Method for processing weather information, and terminal
CN102821351A (en) * 2011-06-08 2012-12-12 中兴通讯股份有限公司 Mobile communication terminal and method of mobile communication terminal for feeding back position and weather information
CN102263858A (en) * 2011-07-22 2011-11-30 深圳市无线开锋科技有限公司 Weather forecast prompting method, system and mobile terminal thereof
CN103064713A (en) * 2012-12-31 2013-04-24 广东欧珀移动通信有限公司 Method of changing terminal wallpaper automatically with weather
CN104601807A (en) * 2014-12-30 2015-05-06 西安乾易企业管理咨询有限公司 Mobile terminal type intelligent reminding method for sudden changes of weather
CN106060278A (en) * 2016-07-29 2016-10-26 乐视控股(北京)有限公司 Weather information prompting method, device and terminal
CN106295861A (en) * 2016-08-01 2017-01-04 北京小米移动软件有限公司 The acquisition methods of weather forecast information, device and equipment
CN106599314A (en) * 2016-12-30 2017-04-26 深圳天珑无线科技有限公司 Weather variation prompt method and device
CN107332986A (en) * 2017-06-21 2017-11-07 深圳传音控股有限公司 Obtain method, device and the terminal of Weather information

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111092985A (en) * 2018-10-23 2020-05-01 奇酷互联网络科技(深圳)有限公司 Reminding method of mobile terminal, mobile terminal and computer storage medium
CN111259270A (en) * 2020-01-15 2020-06-09 上海掌门科技有限公司 Weather reminding method, equipment and computer readable medium
CN111629073A (en) * 2020-07-28 2020-09-04 广州汽车集团股份有限公司 Method, device and system for acquiring weather information by intelligent terminal
CN113988379A (en) * 2021-09-30 2022-01-28 携程商旅信息服务(上海)有限公司 Travel track identification method, system, equipment and storage medium
CN115357317A (en) * 2022-07-18 2022-11-18 荣耀终端有限公司 Display control method and device of terminal equipment, chip and equipment
CN115357317B (en) * 2022-07-18 2023-11-21 荣耀终端有限公司 Display control method, device, chip and equipment of terminal equipment

Similar Documents

Publication Publication Date Title
CN107977276A (en) A kind of based reminding method of Changes in weather, device and mobile terminal
CN107920163A (en) A kind of indicating mode switching method and mobile terminal, cloud server
CN108052368B (en) A kind of application display interface control method and mobile terminal
CN106027108B (en) A kind of indoor orientation method, device and wearable device and mobile terminal
CN108762640A (en) A kind of display methods and terminal of barrage information
CN109831689A (en) A kind of data buffering method and mobile terminal
CN109168038A (en) A kind of processing method of resource, device and equipment
CN107407955A (en) Reduce the method and its equipment of battery consumption for the use pattern based on user
CN108828692A (en) A kind of weather prediction method and terminal device
CN110069180A (en) A kind of function control method and terminal device
CN110162254A (en) A kind of display methods and terminal device
CN108391123A (en) A kind of method and terminal generating video
CN107979697A (en) A kind of based reminding method and mobile terminal
CN107957843A (en) A kind of control method and mobile terminal
CN109348019A (en) A kind of display methods and device
CN108810226A (en) A kind of electricity method for early warning and mobile terminal
CN109445547A (en) A kind of wearable device heat dissipating method, wearable device and readable storage medium storing program for executing
CN109410535A (en) A kind for the treatment of method and apparatus of scene information
CN108551525A (en) A kind of state of motion track determines method and mobile terminal
CN108429856A (en) A kind of location information acquisition methods and mobile terminal
CN108008892A (en) The method and terminal that a kind of function enables
CN107911777A (en) A kind of ear returns processing method, device and the mobile terminal of function
CN110022235A (en) Information processing method, terminal and server
CN108228357A (en) A kind of memory method for cleaning and mobile terminal
CN108459893A (en) A kind of based reminding method, terminal and computer readable storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180501