Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention more comprehensible, the present invention is described in detail with reference to the accompanying drawings and the detailed description thereof.
One of the core ideas of the embodiment of the invention is that disaster early warning information is pushed in a popup mode through an input method, so that a user can be effectively reminded to check the disaster early warning information, and the early warning effect is enhanced.
In the embodiment of the present invention, the server of the input method may be connected to the disaster monitoring system through an API (Application Programming Interface) Interface provided by the disaster monitoring system. When the disaster monitoring system monitors that a disaster occurs, the disaster information can be pushed to the input method server through the API. The input method server estimates the area affected by the disaster according to the disaster message; then sending the disaster message to an input method client in the disaster affected area; the input method client may further perform the following steps 202-206 to push corresponding disaster warning information for the user. The connection relationship among the disaster monitoring system, the input method server, and the input method client can be referred to fig. 1.
The disaster monitoring system may include monitoring information of multiple disasters, such as earthquake, flood, typhoon, and the like, which is not limited in this embodiment of the present invention. The disaster message includes information related to a disaster, such as a disaster occurrence time, a disaster occurrence location, and the like, which is not limited in this embodiment of the present invention.
Referring to fig. 2, a flowchart illustrating steps of an embodiment of an information recommendation method according to the present invention is shown, which may specifically include the following steps:
step 202, receiving disaster information by an input method.
After the input method server sends the disaster message, all input method clients in the area affected by the disaster can receive the disaster message; each input method client can push disaster early warning information according to the disaster message, and refer to steps 204 to 206.
And 204, judging whether disaster early warning is needed or not according to the disaster message.
And step 206, if the disaster early warning is determined to be needed, generating disaster early warning information and pushing the disaster early warning information in a popup window mode.
In the embodiment of the invention, in the disaster affected area estimated by the server, some positions are possibly affected less by the disaster, and some positions are affected more by the disaster; in order to reduce unnecessary panic and resource waste, the input method client can firstly judge whether disaster early warning is needed or not according to the disaster message. When disaster early warning is determined to be needed, it is indicated that the current position of the input method client is greatly affected by the disaster, and at this time, disaster early warning information can be generated and pushed in a pop-up window mode. The disaster early warning information is used for performing disaster early warning on the user, and may include various information, such as a disaster state of a current location, a disaster occurrence location, a distance between the disaster occurrence location and the current location, a time when the disaster reaches the current location, and the like; the embodiments of the present invention are not limited in this regard.
When it is determined that disaster early warning is not needed, it is described that the current position of the input method client is less affected by the disaster, and at this time, the above process can be ended without pushing disaster early warning information for the user.
In conclusion, in the embodiment of the invention, the input method can receive the disaster message and then judge whether disaster early warning is needed or not according to the disaster message; if the disaster early warning is determined to be needed, generating disaster early warning information and pushing the disaster early warning information in a popup window mode; compared with the prior art, the embodiment of the invention can effectively remind the user to check the disaster early warning information, thereby enhancing the early warning effect.
The following description will be given by taking an example in which a disaster is an earthquake and a disaster message is an earthquake disaster message.
Referring to fig. 3, a flowchart illustrating steps of an alternative embodiment of the information recommendation method of the present invention is shown, which may specifically include the following steps:
step 302, the input method receives a disaster message.
In one example of the invention, when the disaster is an earthquake, the client of the input method may receive earthquake disaster information; the seismic disaster information may include the following information, as shown in table 1:
TABLE 1
Table 1 shows only a part of disaster information. Of course, the disaster information may also include other information, which is not limited in this embodiment of the present invention.
In the embodiment of the present invention, step 304 to step 310 may be referred to determine whether disaster early warning is required according to the disaster message.
And step 304, acquiring the position information of the current position.
And step 306, determining the seismic intensity of the current position and the arrival time of the seismic transverse wave to the current position according to the disaster message and the position information of the current position.
In the embodiment of the invention, the input method can acquire the position information corresponding to the current position of the terminal equipment; the location information may be latitude and longitude information. The position information corresponding to the current position of the terminal device can be obtained in various manners such as base station Positioning, IP (Internet Protocol) Positioning, GPS (Global Positioning System) Positioning, and the like; the embodiments of the present invention are not limited in this regard.
And then calculating the seismic intensity of the current position of the terminal equipment and the arrival time of the seismic transverse wave at the current position according to the disaster information and the position information. In an example of the present invention, an algorithm provided by a disaster monitoring system may be obtained in advance; and then, calculating the disaster information and the position information by adopting the algorithm, and determining the seismic intensity of the current position of the terminal equipment and the arrival time of the seismic transverse wave reaching the current position. In yet another example of the present invention, the disaster monitoring system may provide the input method with SDK (Software Development Kit) that can be used to calculate the arrival time of the seismic intensity and the seismic shear wave to the current location in order not to reveal the algorithm that calculates the arrival time of the seismic intensity and the seismic shear wave to the current location. And the input method client can input the disaster information and the current position information into the SDK for calculation to obtain the seismic intensity of the current position and the arrival time of the seismic transverse wave at the current position, which are output by the SDK.
And 308, acquiring the current time, and calculating the difference value between the arrival time of the seismic transverse wave at the current position and the current time.
Then, the current time can be obtained, and the difference between the arrival time of the seismic transverse wave at the current position and the current time is calculated; and judging whether disaster early warning is needed or not according to the seismic intensity and the difference value. In the embodiment of the present invention, the input method client may be synchronized with the disaster monitoring system by using NTP (network time Protocol), so that the input method client may be synchronized with the disaster monitoring system. Certainly, when the input method client and the disaster monitoring system are not synchronized, NTP can be adopted for synchronization, and the difference between the NTP time and the current time of the terminal device is recorded; and calculating the difference between the arrival time of the seismic transverse wave at the current position and the current time according to the difference between the NTP time and the current time.
In one example of the invention, it may be determined whether the seismic intensity is greater than a preset intensity threshold; and if the seismic intensity is greater than a preset intensity threshold, judging whether the difference value is greater than a preset time threshold. If the difference is greater than the preset time threshold, it is determined that disaster early warning is required, and at this time, step 310 may be executed to generate disaster early warning information. Otherwise, determining that disaster early warning is not needed, and ending the process. Of course, it may also be determined whether the difference is greater than a preset time threshold; and if the difference is greater than the preset time threshold, judging whether the seismic intensity is greater than the preset intensity threshold. If the seismic intensity is greater than the preset intensity threshold, it is determined that disaster early warning is required, and at this time, step 310 may be executed to generate disaster early warning information. Otherwise, determining that disaster early warning is not needed, and ending the process. Of course, it may also be determined whether the seismic intensity is greater than a preset intensity threshold, and whether the difference is greater than a preset time threshold. And when the seismic intensity is greater than the preset intensity threshold value and the difference value is greater than the preset time threshold value, determining that disaster early warning is needed, and executing step 310 to generate disaster early warning information. Otherwise, determining that disaster early warning is not needed, and ending the process.
Wherein, the earthquake intensity is different, and the corresponding feeling is different. In one example of the present invention, the relationship between seismic intensity and seismic sensation may be as shown in Table 2 below:
seismic intensity
|
Feeling of vibration
|
0 degree
|
Without feeling of vibration
|
0 to 2.0 DEG C
|
There may be a sense of vibration
|
2.0-3.0 degree
|
Slight vibration sensation
|
3.0 to less than 5.0 DEG C
|
Strong feeling of vibration
|
5.0-7.0 DEG C
|
May damage the product
|
Greater than or equal to 7.0 DEG
|
Has damage to occur |
TABLE 2
In an example of the present invention, a preset intensity threshold may be set according to a seismic sensation corresponding to the seismic intensity, for example, the preset intensity threshold may be set to 2; the embodiments of the present invention are not limited in this regard.
In the embodiment of the present invention, if the difference is obtained according to (arrival time of the seismic transverse wave at the current position) - (current time), when the difference is greater than 0, it may be determined that the seismic transverse wave does not arrive at the current position; when the difference is less than 0, it may be determined that the seismic shear wave has reached the current position. In an example of the invention, the preset time threshold may be set to be a negative number, such as-300 seconds, so that disaster early warning can be performed within a certain time period after the earthquake transverse wave does not reach the current position or reaches the current position.
And 310, if the earthquake intensity is greater than a preset intensity threshold value and the arrival time is greater than a preset time threshold value, generating disaster early warning information.
In the embodiment of the invention, if the earthquake intensity is greater than a preset intensity threshold value and the arrival duration is greater than a preset time threshold value, disaster early warning can be carried out; the disaster early warning can be realized by generating and displaying disaster early warning information.
In the embodiment of the invention, the disaster early warning information can be generated in the following way:
determining the area where the current position is located and corresponding risk avoidance related information according to the position information; wherein, the risk avoidance related information may include at least one of the following: notice, evacuation route, refuge location.
Searching a mapping relation according to the seismic intensity, and determining the seismic sensation of the current position of the terminal equipment; the mapping relation between the seismic intensity and the seismic sensation can be pre-established according to the table 2, and then the seismic sensation corresponding to the seismic intensity can be searched from the mapping relation.
And determining the distance between the epicenter and the current position according to the disaster message and the position information.
Determining the seismic transverse wave correlation information according to the difference between the arrival time of the seismic transverse wave at the current position and the current time; the seismic transverse wave related information may refer to information related to seismic transverse waves, and a manner of determining the seismic transverse wave related information will be described later.
Generating disaster early warning information by adopting at least one of the following information: the current area, danger avoidance related information, earthquake sensation, the distance between the earthquake center and the current position, earthquake transverse wave related information, earthquake intensity and disaster information.
And step 312, pushing disaster early warning information in a popup window mode.
In an embodiment of the present invention, during a disaster, the disaster monitoring system may continuously transmit a plurality of pieces of disaster information to the input method server so as to transmit the latest disaster information to the input method server. Correspondingly, the input method server may also continuously issue a plurality of pieces of disaster information to the input method client, and the input method client may perform the above steps 304 to 310 each time the input method client receives the disaster information. Then judging whether a popup window for pushing disaster early warning information exists in the terminal equipment interface or not; and if so, updating the disaster early warning information displayed in the pop-up window according to the generated disaster early warning information. If not, the popup window is carried out, and then disaster early warning information is displayed in the popup window.
In an optional embodiment of the invention, the disaster early warning information can be pushed in a full screen popup mode; thereby prompting the user with maximum strength.
Step 314, playing a warning tone and/or changing a flash and/or vibrating.
In an optional embodiment of the invention, disaster early warning can be performed on a user by combining various modes such as prompt tone playing, flash lamp changing, vibration and the like while disaster early warning information is pushed in a popup window mode; the input method can realize various system-specific operations such as playing prompt tones, changing flash lamps, vibrating and the like by calling a system interface. The prompt tone, the playing mode of the prompt tone, the conversion mode of the flash lamp, and the vibration mode may be set by an input method, or may be set by a user through customization, which is not limited in the embodiment of the present invention.
In one example of the present invention, the system volume may be adjusted to the maximum, and the prompt tone may be played at the maximum volume, so as to prompt the user with the maximum strength.
In an optional embodiment of the present invention, when the user is located at different positions, the corresponding risk avoidance related information may be different. For example, when an earthquake occurs in the future, if a house corresponding to an area where the user is located is a bungalow, the corresponding risk avoidance related information may be as follows: quickly run out of the door to avoid danger. If the house corresponding to the area where the user is located is a building, the corresponding risk avoidance related information can be as follows: the electric brake is immediately cut off, the gas is turned off, and the toilet and other places with small span are temporarily avoided. If the user is on the street, the corresponding hedge association information may be: the head is protected by hands and the head is quickly far away from the building. When the user checks the disaster early warning message and takes action, the position of the user changes, and the corresponding risk avoidance related information can also change accordingly; therefore, the embodiment of the invention can update the risk avoiding associated information displayed in the pop-up window by combining the position information so as to provide real-time and effective risk avoiding associated information for the user. For example, when a user runs from one-storey house to a street, the danger-avoiding related information displayed in the pop window can be updated from 'rapidly running to the outside of the door to avoid danger', to 'manually protecting the head and rapidly leaving away from the building'.
In an optional embodiment of the invention, when the residual time of the seismic transverse wave reaching the current position is different, the corresponding refuge related information may also be different. For example, when the user is in a building, if the remaining time of the seismic transverse wave reaching the current position is 20 seconds, the corresponding danger avoidance related information may be "cut off the switch immediately, turn off the gas, and temporarily avoid to a place with a small span, such as a washroom". If the remaining time of the seismic transverse wave reaching the current position is 8 seconds, the corresponding risk avoidance related information can be 'temporarily avoided to the toilet, the table bottom or the bed bottom'. Therefore, the embodiment of the invention can update the risk avoiding related information displayed in the pop-up window by combining the countdown remaining time so as to provide real-time and effective risk avoiding related information for the user.
Certainly, the embodiment of the present invention may also update the risk avoidance related information displayed in the pop-up window by simultaneously combining the position information and the remaining countdown time; so as to further improve the effectiveness of the risk avoidance related information. The embodiment of the invention does not limit the way of updating the risk avoidance related information displayed in the pop-up window.
In summary, in the embodiment of the present invention, after receiving a disaster message, an input method may obtain location information of a current location, determine seismic intensity of the current location and arrival time of a seismic transverse wave at the current location according to the disaster message and the location information, obtain the current time, and calculate a difference between the arrival time of the seismic transverse wave at the current location and the current time; if the earthquake intensity is larger than a preset intensity threshold value and the difference value is larger than a preset time threshold value, generating disaster early warning information and pushing the disaster early warning information in a popup window mode; when the earthquake intensity is determined to be greater than the preset intensity threshold value and the difference value is determined to be greater than the preset time threshold value, the disaster early warning information is pushed, and the effectiveness of the disaster early warning information can be improved; and the panic of users in areas with small disaster influence can be reduced, and resources are saved.
Secondly, in the embodiment of the invention, the area where the current position is located and the corresponding risk avoidance related information can be determined according to the position information; searching a mapping relation according to the seismic intensity, and determining the seismic sensation of the current position; determining the distance between the epicenter and the current position according to the disaster message and the position information; determining seismic transverse wave correlation information according to the difference value between the arrival time of the seismic transverse wave at the current position and the current time; generating disaster early warning information by adopting at least one of the following information: the area of the current position, danger avoidance related information, earthquake sensation, the distance between the earthquake center and the current position, earthquake transverse wave related information, earthquake intensity and disaster information. The diversity of disaster early warning information is further increased; and the displayed danger avoiding associated information can provide avoiding knowledge for the user and help the user to take refuge.
Furthermore, in the embodiment of the invention, disaster early warning information can be pushed in a full-screen popup mode, and a prompt tone and/or a flash lamp and/or vibration can be played while the disaster early warning information is pushed in a popup mode; the early warning effect is further enhanced.
Thirdly, in the embodiment of the invention, the risk avoidance related information displayed in the pop-up window can be updated by combining the position information and/or the countdown remaining time; and further real-time and effective risk avoidance associated information can be provided for the user.
The following describes how to determine the seismic transverse wave related information according to the difference between the arrival time of the seismic transverse wave at the current position and the current time.
Referring to fig. 4, a flow chart of steps of yet another alternative embodiment of the information pushing method of the present invention is shown.
Step 402, the input method receives a disaster message.
And step 404, judging whether disaster early warning is needed or not according to the disaster message.
Wherein, when it is determined that disaster early warning is required, step 406 may be executed; when it is determined that disaster warning is not required, the above process may be ended.
And step 406, judging whether the seismic transverse wave reaches the current position according to the difference.
In the embodiment of the invention, whether the seismic transverse wave reaches the current position can be judged according to the difference; when it is determined that the seismic shear wave does not reach the current position, step 408 may be performed; step 412 may be performed when it is determined that the seismic shear wave has reached the current location of the terminal device.
Wherein, it can be judged whether the difference is greater than 0; if the difference is larger than 0, determining that the seismic transverse wave does not reach the current position; if the difference is less than 0, the seismic transverse wave can be determined to reach the current position.
And step 408, determining the arrival time of the seismic transverse wave at the current position as the seismic transverse wave correlation information.
And step 410, counting down the arrival time of the seismic transverse wave at the current position in the popup window.
In the embodiment of the invention, when the seismic transverse wave is determined not to reach the current position, the arrival time of the seismic transverse wave reaching the current position can be determined as the seismic transverse wave related information. The arrival time of the seismic shear wave at the current location may then be displayed in the pop-up window.
In one example of the present invention, when it is determined that the seismic shear wave does not reach the current position, the arrival time of the seismic shear wave at the current position may be counted down in the popup. As an example of the present invention, fig. 5a may be referred to, which shows a schematic diagram of a disaster warning information display interface according to an embodiment of the present invention. In addition, fig. 5a also shows other disaster warning information, such as disaster information, for example, earthquake center location name such as "AA city S area", earthquake level such as "6.0 level", and signature unit such as "S area emergency administration AA city disaster reduction institute". And as the current location, such as "AA City D zone"; and the vibration sense of the current position is like 'slight vibration sense'; and the distance between the epicenter and the current position is "201 km from the epicenter". As for danger avoiding related information, as for the attention item of refuge, "deposit cool quiet fast danger avoiding far away from the suspension without taking the elevator to select a nearby safe place to avoid danger"; disaster reduction and risk avoidance knowledge link is as' more disaster reduction and risk avoidance knowledge > >; after the user triggers more disaster reduction and risk avoidance knowledge, the input method can enter a disaster reduction and risk avoidance knowledge interface to display the disaster reduction and risk avoidance knowledge.
And step 412, judging whether the time length of the seismic transverse wave reaching the current position is greater than a preset time length or not according to the difference.
In the embodiment of the invention, when the fact that the seismic transverse wave reaches the current position is determined, whether the time length of the seismic transverse wave reaching the current position is longer than the preset time length is judged according to the difference. If the time length of the seismic transverse wave reaching the current position is less than or equal to the preset time length, the step 414 may be executed; if the time period for the seismic transverse wave to reach the current position is longer than the preset time period, step 418 may be executed.
And 414, determining the prompt information of the arrival of the seismic transverse wave as the seismic transverse wave correlation information.
And step 416, displaying prompt information that the seismic transverse wave arrives in a popup window.
In the embodiment of the invention, if the time length for the seismic transverse wave to reach the current position is determined to be less than or equal to the preset time length, the prompt information that the seismic transverse wave has reached can be determined as the seismic transverse wave correlation information; and then displaying prompt information that the seismic transverse wave arrives in a pop window, such as 'the seismic transverse wave arrives'. As an example of the present invention, reference may be made to fig. 5 b.
And 418, determining prompt information of disaster early warning ending as the seismic transverse wave correlation information.
And step 420, displaying prompt information of disaster early warning end in the pop-up window.
In the embodiment of the invention, if the time for the transverse seismic wave to reach the current position is determined to be longer than the preset time, the prompt information of the completion of the disaster early warning can be determined as the transverse seismic wave correlation information; and then displaying prompt information of the completion of the disaster early warning in a pop-up window, such as 'the early warning is completed this time'. As an example of the invention, reference may be made to fig. 5c. In an optional embodiment of the invention, while the prompt information of the completion of the disaster early warning is displayed in the popup window, an early warning duration which is the difference between the starting push time of the disaster early warning information and the arrival time of the earthquake transverse wave at the current position can be displayed in the popup window. The information "early warning system advanced the early warning of the just earthquake by seconds" as shown in fig. 5c.
After the arrival time of the seismic transverse wave at the current position is counted down in the pop-up window, whether the counting down is finished or not can be judged. When the countdown is finished, prompt information that the seismic transverse wave arrives can be displayed in the pop-up window; and after the preset time length of the prompt information showing that the earthquake transverse wave arrives is displayed, the prompt information showing that the disaster early warning is finished is displayed in the popup window.
In conclusion, in the embodiment of the present invention, whether the seismic transverse wave reaches the current position of the terminal device may be determined according to the difference; if the fact that the seismic transverse wave does not reach the current position of the terminal device is determined, determining the arrival time of the seismic transverse wave reaching the current position as seismic transverse wave related information; and then, the arrival time of the seismic transverse wave at the current position is counted down in the pop-up window, so that the early warning effect is further improved.
Secondly, in the embodiment of the invention, when the earthquake transverse wave correlation information is prompt information of disaster early warning ending, the prompt information of disaster early warning ending can be displayed in a pop-up window, and early warning duration can be displayed in the pop-up window; the early warning duration is the difference between the starting pushing time of the disaster early warning information and the arrival time of the earthquake transverse wave at the current position, so that the trust of the user is increased, the attention of the user to the disaster early warning information pushed by the popup window is aroused, and the user can quickly prepare for risk avoidance when looking at the disaster early warning information next time.
In an alternative embodiment of the invention, a cue tone may be played in conjunction with the countdown. The mode of playing the alert tone in combination with the countdown can include various modes, for example, the alert tone can be played while the countdown is displayed in the pop-up window for the first time and then the alert tone is stopped to be played until the last N seconds, and the alert tone is played once every M seconds. Where M and N are positive integers, M is smaller than N, and N and M may be set as required, for example, N is 10, and M is 1, which is not limited in this embodiment of the present invention. For example, the first time the countdown is shown in the pop-up window is 40s, N is 10, M is 1; then, from the beginning of the countdown displayed in the pop-up window for the first time to the end of the countdown, the manner of playing the alert tone may be: droplet (40 th s) -stop play (39 th to 11 th s) -droplet (10 th s) -droplet (9 th s) -droplet (8 th s) -droplet (7 th s) -droplet (6 th s) -droplet (5 th s) -droplet (4 th s) -droplet (3 rd s) -droplet (2 nd s) -droplet (1 st s). For another example, the alert tone may be played and then stopped while the countdown is first shown in the pop-up window, and the alert tone may be played again until the last N seconds, and may be stopped after the last N seconds. In the above example, from the beginning of the countdown to the end of the countdown when the popup is first shown, the manner of playing the alert tone may be: droplet (40 th) stop play (39 th to 11 th) droplet (10 th to 1 st). For example, the first time the countdown played alert tone is shown in the pop-up window and the last N seconds played alert tone may be different; in the above example, from the beginning of the countdown to the end of the countdown when the popup is first shown, the manner of playing the alert tone may be: whiting (40 s) -stop playing (39 s to 11 s) (10 s) -drop (9 s) -drop (8 s) -drop (7 s) -drop (6 s) -drop (5 s) -drop (4 s) -drop (3 s) -drop (1 s). For another example, the volume of each time the alert sound is played may be different, for example, the volume is gradually increased, for example, from the beginning of the countdown displayed in the pop-up window for the first time to the end of the countdown, the manner of playing the alert sound may be: drop (40s, 50%) -stop play (39 s-11 s) -drop (10s 45%) -drop (9s, 50%) -drop (8s, 55%) -drop (7s, 60%) -drop (6s, 65%) -drop (5s, 70%) -drop (4s, 75%) -drop (3s, 80%) -drop (2s, 85%) -drop (1s, 90%). In addition, after the countdown is finished, a prompt tone with a preset duration can be continuously played; of course, other ways of playing the alert tone in combination with the countdown may also be included, and the embodiment of the present invention is not limited thereto.
In an alternative embodiment of the invention, a warning tone may be played in conjunction with the seismic intensity. The mode of playing the warning tone in combination with the seismic intensity can include multiple modes, for example, the larger the seismic intensity is, the larger the volume of the warning tone is; if the earthquake intensity is 3.0 degrees, the volume of the prompt tone is 60 percent of the maximum volume, the volume of the prompt tone is 70 percent of the maximum volume when the earthquake intensity is 4.0 degrees, the volume of the prompt tone is 80 percent of the maximum volume when the earthquake intensity is 5.0 degrees, the volume of the prompt tone is 80 percent of the maximum volume when the earthquake intensity is 6.0 degrees, and the volume of the prompt tone is 100 percent of the maximum volume when the earthquake intensity is more than or equal to 7.0 degrees. For another example, the larger the seismic intensity, the longer the duration of each cue tone play; for example, when the seismic intensity is less than 5 degrees, the duration of each warning tone is 0.25s; when the earthquake intensity is greater than or equal to 5 degrees, the duration of each prompt tone is 0.5s. In addition, when the seismic intensity is different, the warning tone may also be different, for example, when the seismic intensity is less than 5 degrees, the corresponding warning tone may be "dribble", and when the seismic intensity is greater than or equal to 5, the corresponding warning tone may be "whine"; and so on. Of course, other ways of playing the warning tone in combination with the seismic intensity may also be included, and the embodiment of the present invention is not limited thereto.
In an alternative embodiment of the invention, the alert tone may be played in conjunction with the seismic intensity and countdown. The mode of playing the warning tone by combining the seismic intensity and the countdown comprises various modes, for example, in the above example, the countdown displayed in the pop-up window for the first time is 40s; if the seismic intensity is 3.0 degrees, the mode of playing the prompt tone from the beginning of displaying the countdown in the pop-up window for the first time to the end of the countdown can be as follows: drop (40s, 60% volume) -stop play (39 s to 11 s) -drop (10s 60%) -drop (9s, 60% volume) -drop (8s, 60% volume) -drop (7s, 60% volume) -drop (6s, 60% volume) -drop (5s, 60% volume) -drop (4s, 60% volume) -drop (3s, 60% volume) -drop (2s, 60% volume) -drop (1s, 60% volume). If the seismic intensity is 5.0 degrees, the prompt tone playing mode can be from the beginning of displaying the countdown in the popup window for the first time to the end of the countdown: whining (40s, 80% volume) -stop play (39 s to 11 s) -whining (10s 80%) -whining (9s, 80% volume) -whining (8s, 80% volume) -whining (7s, 80% volume) -whining (6s, 80% volume) -whining (5s, 80% volume) -whining (4s, 80% volume) -whining (3s, 80% volume) -whining (2s, 80% volume) -whining (1s, 80% volume). Of course, other ways of playing the warning tone in combination with the seismic intensity and the countdown are also included, and the embodiment of the present invention is not limited thereto.
In addition, in the embodiment of the invention, the flash lamp can be changed by combining the earthquake intensity and the countdown, and the earthquake intensity and the countdown vibration can be combined; this is similar to the above-described combined seismic intensity and countdown play alert tone and will not be described further herein.
In an optional embodiment of the invention, after the disaster early warning information is displayed in the pop-up window, the displayed early warning information can be broadcasted in voice; so as to enhance the early warning effect. For example, disaster information, the distance between the epicenter and the current position, the current area and the earthquake feeling are broadcasted firstly; then broadcasting danger avoiding associated information, and then broadcasting countdown of the arrival of the earthquake transverse wave at the current position. Of course, the disaster warning information may be played in other sequences, which is not limited in this embodiment of the present invention.
In an optional embodiment of the invention, after the disaster early warning information is pushed by the input method client, the pushing result can be uploaded to the input method server; the input method server returns the push result to the disaster monitoring system; so that the disaster monitoring system can count the pushing effect of the disaster early warning information. The pushing result may include multiple types, the time when the input method client receives the disaster message, the time when the disaster early warning message is pushed, the location information, the area where the input method client is located, the pushed disaster early warning message, and the like, which is not limited in this embodiment of the present invention.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 6, a block diagram of an embodiment of an information pushing apparatus according to the present invention is shown, and specifically, the structure may include the following modules:
a receiving module 602, configured to receive a disaster message by an input method;
a judging module 604, configured to judge whether disaster early warning is needed according to the disaster message;
and an early warning module 606, configured to generate disaster early warning information and push the disaster early warning information in a pop-up window manner if it is determined that disaster early warning is required.
Referring to fig. 7, a block diagram of an alternative embodiment of an information pushing device of the present invention is shown.
In an optional embodiment of the present invention, the determining module 604 is configured to obtain location information of a current location if the disaster message is an earthquake disaster message; according to the disaster message and the position information, determining the seismic intensity of the current position and the arrival time of the seismic transverse wave to the current position; acquiring current time, and calculating the difference between the arrival time of the seismic transverse wave at the current position and the current time; and if the seismic intensity is greater than a preset intensity threshold value and the difference value is greater than a preset time threshold value, determining that disaster early warning is required.
In an optional embodiment of the present invention, the early warning module 606 includes an information generating sub-module 6062, where the information generating sub-module 6062 includes:
a region and risk avoidance association information generating unit 60622 configured to determine, according to the location information, a region where the current location is located and corresponding risk avoidance association information;
a seismic sense determination unit 60624 configured to find a mapping relationship according to the seismic intensity, and determine a seismic sense of the current position;
a distance determining unit 60626 for determining a distance between the epicenter and the current location according to the disaster message and the location information;
a transverse wave related information generating unit 60628 configured to determine seismic transverse wave related information according to a difference between arrival time at which the seismic transverse wave arrives at the current position and the current time;
an early warning information generating unit 606210 configured to generate disaster early warning information using at least one of: the area of the current position, danger avoidance related information, earthquake sensation, the distance between the earthquake center and the current position, earthquake transverse wave related information, earthquake intensity and disaster information.
In an optional embodiment of the present invention, the transverse wave correlation information generating unit 60628 is configured to determine, according to the difference, whether the seismic transverse wave reaches the current position; if the fact that the seismic transverse wave does not reach the current position is determined, determining the arrival time of the seismic transverse wave reaching the current position as seismic transverse wave correlation information; if the fact that the transverse seismic wave reaches the current position is determined, whether the time length of the transverse seismic wave reaching the current position is longer than the preset time length is judged according to the difference value; if the time length of the arrival of the seismic transverse wave at the current position is less than or equal to the preset time length, determining the prompt information of the arrival of the seismic transverse wave as the seismic transverse wave correlation information; and if the time length of the earthquake transverse wave reaching the current position is longer than the preset time length, determining prompt information of disaster early warning ending as the earthquake transverse wave correlation information.
In an optional embodiment of the present invention, the early warning module 606 includes:
and a countdown submodule 6064 configured to count down the arrival time of the seismic transverse wave at the current position in the popup window when the seismic transverse wave related information is the arrival time of the seismic transverse wave at the current position.
In an optional embodiment of the present invention, the apparatus further comprises:
an early warning duration display module 608, configured to display an early warning duration in the pop window when the seismic transverse wave related information is prompt information of completion of disaster early warning, where the early warning duration is a difference between a start pushing time of the disaster early warning information and an arrival time of the seismic transverse wave at the current position.
In an optional embodiment of the present invention, the apparatus further comprises:
and the prompting module 610 is used for playing prompt tones and/or changing flash lamps and/or vibrating.
In an optional embodiment of the present invention, the prompt module 610 is configured to play a prompt sound in combination with the seismic intensity and/or countdown.
In an optional embodiment of the present invention, the early warning module 606 includes:
and a full screen display sub-module 6066 for pushing disaster warning information in a full screen popup window manner.
In an optional embodiment of the present invention, the apparatus further comprises:
an early warning information updating module 612, configured to update the risk avoidance related information displayed in the pop window in combination with the position information and/or the remaining time of countdown; the risk avoidance related information comprises at least one of the following: notice, evacuation route, refuge location.
In conclusion, in the embodiment of the invention, the input method can receive the disaster message and then judge whether disaster early warning is needed or not according to the disaster message; if disaster early warning is determined to be needed, disaster early warning information is generated and pushed in a pop-up window mode; compared with the prior art, the embodiment of the invention can effectively remind the user to check the disaster early warning information, thereby enhancing the early warning effect.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
Fig. 8 is a block diagram illustrating a structure of an electronic device 800 for information recommendation according to an example embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 8, electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power components 806 provide power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 800 is in an operation mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open/closed state of the device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 can also detect a change in position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 814 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 814 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the electronic device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform a method of information recommendation, the method comprising: receiving a disaster message by an input method; judging whether disaster early warning is needed or not according to the disaster message; and if determining that disaster early warning is required, generating disaster early warning information and pushing the disaster early warning information in a pop-up window mode.
Optionally, if the disaster message is an earthquake disaster message, the determining whether disaster early warning is required according to the disaster message includes: acquiring position information of a current position; according to the disaster message and the position information, determining the seismic intensity of the current position and the arrival time of the seismic transverse wave to the current position; acquiring current time, and calculating the difference between the arrival time of the seismic transverse wave at the current position and the current time; and if the seismic intensity is greater than a preset intensity threshold value and the difference value is greater than a preset time threshold value, determining that disaster early warning is required.
Optionally, the generating disaster warning information includes: determining the area where the current position is located and corresponding risk avoidance related information according to the position information; searching a mapping relation according to the seismic intensity, and determining the seismic sensation of the current position; determining the distance between the epicenter and the current position according to the disaster message and the position information; determining seismic transverse wave correlation information according to the difference value between the arrival time of the seismic transverse wave at the current position and the current time; generating disaster early warning information by adopting at least one of the following information: the area of the current position, danger avoiding related information, earthquake sensation, distance between the earthquake center and the current position, earthquake transverse wave related information, earthquake intensity and disaster information.
Optionally, the determining seismic shear wave related information according to a difference between an arrival time of the seismic shear wave at the current position and the current time includes: judging whether the seismic transverse wave reaches the current position or not according to the difference; if the fact that the seismic transverse wave does not reach the current position is determined, determining the arrival time of the seismic transverse wave reaching the current position as seismic transverse wave related information; if the fact that the transverse seismic wave reaches the current position is determined, whether the time length of the transverse seismic wave reaching the current position is longer than a preset time length is judged according to the difference value; if the time length of the arrival of the seismic transverse wave at the current position is less than or equal to the preset time length, determining the prompt information of the arrival of the seismic transverse wave as the seismic transverse wave correlation information; and if the time length of the earthquake transverse wave reaching the current position is longer than the preset time length, determining prompt information of disaster early warning ending as the earthquake transverse wave correlation information.
Optionally, when the seismic transverse wave related information is arrival time of the seismic transverse wave at the current position, pushing the seismic transverse wave related information in a pop-up window manner, including: and counting down the arrival time of the seismic transverse wave at the current position in the pop-up window.
Optionally, when the seismic transverse wave related information is prompt information for ending disaster early warning, the method further includes: and displaying early warning duration in the pop-up window, wherein the early warning duration is the difference between the starting pushing time of the disaster early warning information and the arrival time of the earthquake transverse wave to the current position.
Optionally, the method further comprises: playing a warning tone and/or changing a flashing light and/or shaking.
Optionally, the playing the alert tone includes: and playing a prompt tone in combination with the seismic intensity and/or the countdown.
Optionally, the pushing of disaster warning information in a pop-up window manner includes: and pushing disaster early warning information in a full-screen popup window mode.
Optionally, the method further comprises: updating the risk avoidance related information displayed in the pop-up window in combination with the position information and/or the countdown remaining time; the risk avoidance related information comprises at least one of the following: notice, evacuation route, refuge location.
Fig. 9 is a schematic structural diagram of an electronic device 900 for information recommendation according to another exemplary embodiment of the present invention. The electronic device 900 may be a server, which may vary widely depending on configuration or performance, and may include one or more Central Processing Units (CPUs) 922 (e.g., one or more processors) and memory 932, one or more storage media 930 (e.g., one or more mass storage devices) storing applications 942 or data 944. Memory 932 and storage media 930 can be, among other things, transient storage or persistent storage. The program stored on the storage medium 930 may include one or more modules (not shown), each of which may include a series of instruction operations on a server. Still further, the central processor 922 may be arranged to communicate with the storage medium 930 to execute a series of instruction operations in the storage medium 930 on the server.
The server may also include one or more power supplies 926, one or more wired or wireless network interfaces 950, one or more input-output interfaces 958, one or more keyboards 956, and/or one or more operating systems 941, such as Windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM, etc.
An electronic device comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors the one or more programs including instructions for: receiving a disaster message by an input method; judging whether disaster early warning is needed or not according to the disaster message; and if the disaster early warning is determined to be needed, generating disaster early warning information and pushing the disaster early warning information in a pop-up window mode.
Optionally, if the disaster message is an earthquake disaster message, the determining whether disaster early warning is required according to the disaster message includes: acquiring position information of a current position; according to the disaster message and the position information, determining the seismic intensity of the current position and the arrival time of the seismic transverse wave to the current position; acquiring current time, and calculating the difference between the arrival time of the seismic transverse wave at the current position and the current time; and if the seismic intensity is greater than a preset intensity threshold value and the difference value is greater than a preset time threshold value, determining that disaster early warning is required.
Optionally, the generating disaster warning information includes: determining the area where the current position is located and corresponding risk avoidance related information according to the position information; searching a mapping relation according to the seismic intensity, and determining the seismic sensation of the current position; determining the distance between the epicenter and the current position according to the disaster message and the position information; determining seismic transverse wave correlation information according to the difference value between the arrival time of the seismic transverse wave at the current position and the current time; generating disaster early warning information by adopting at least one of the following information: the area of the current position, danger avoidance related information, earthquake sensation, the distance between the earthquake center and the current position, earthquake transverse wave related information, earthquake intensity and disaster information.
Optionally, the determining seismic shear wave related information according to a difference between an arrival time of the seismic shear wave at the current position and the current time includes: judging whether the seismic transverse wave reaches the current position or not according to the difference value; if the fact that the seismic transverse wave does not reach the current position is determined, determining the arrival time of the seismic transverse wave reaching the current position as seismic transverse wave related information; if the fact that the transverse seismic wave reaches the current position is determined, whether the time length of the transverse seismic wave reaching the current position is longer than the preset time length is judged according to the difference value; if the time length of the arrival of the seismic transverse wave at the current position is less than or equal to the preset time length, determining the prompt information of the arrival of the seismic transverse wave as the seismic transverse wave correlation information; and if the time length of the earthquake transverse wave reaching the current position is longer than the preset time length, determining prompt information of disaster early warning ending as the earthquake transverse wave correlation information.
Optionally, when the seismic transverse wave related information is arrival time of the seismic transverse wave at the current position, pushing the seismic transverse wave related information in a pop-up window manner, including: and counting down the arrival time of the seismic transverse wave at the current position in the popup window.
Optionally, when the seismic transverse wave related information is prompt information for ending disaster early warning, the method further includes instructions for: and displaying early warning duration in the pop-up window, wherein the early warning duration is the difference between the starting pushing time of the disaster early warning information and the arrival time of the earthquake transverse wave to the current position.
Optionally, the electronic device further includes: playing a warning tone and/or changing a flashing light and/or shaking.
Optionally, the playing the alert tone includes: and playing a prompt tone in combination with the seismic intensity and/or the countdown.
Optionally, the pushing disaster early warning information in a pop-up window manner includes: and pushing disaster early warning information in a full-screen popup window mode.
Optionally, further comprising instructions for: updating the risk avoidance related information displayed in the pop-up window in combination with the position information and/or the countdown remaining time; the risk avoidance related information comprises at least one of the following: notice, evacuation route, refuge location.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrases "comprising one of \ 8230; \8230;" does not exclude the presence of additional like elements in a process, method, article, or terminal device that comprises the element.
The information recommendation method, the information recommendation device and the electronic device provided by the invention are described in detail, and specific examples are applied in the text to explain the principle and the implementation of the invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.