CN111314471A - Weather early warning pushing method and system - Google Patents

Weather early warning pushing method and system Download PDF

Info

Publication number
CN111314471A
CN111314471A CN202010107548.1A CN202010107548A CN111314471A CN 111314471 A CN111314471 A CN 111314471A CN 202010107548 A CN202010107548 A CN 202010107548A CN 111314471 A CN111314471 A CN 111314471A
Authority
CN
China
Prior art keywords
terminal
early warning
weather
warning information
long connection
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
CN202010107548.1A
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.)
Guangdong Huanwang Technology Co Ltd
Original Assignee
Guangdong Huanwang Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Huanwang Technology Co Ltd filed Critical Guangdong Huanwang Technology Co Ltd
Priority to CN202010107548.1A priority Critical patent/CN111314471A/en
Publication of CN111314471A publication Critical patent/CN111314471A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Alarm Systems (AREA)

Abstract

The invention discloses a weather early warning pushing method, which relates to the field of weather early warning pushing. Carry out real-time monitoring to weather to ensure that the fastest condition of needing the early warning such as rain and snow, haze, strong wind, sand and dust storm, generate early warning information, can in time send real-time weather early warning information for the terminal and pop out early warning information on the terminal when the early warning appears through long connection technology. By the method, the user can conveniently acquire the weather condition at any time without actively acquiring, and convenience is provided for the user.

Description

Weather early warning pushing method and system
Technical Field
The invention relates to the field of weather early warning pushing, in particular to a weather early warning pushing method and a weather early warning pushing system.
Background
In recent years, with the appearance of severe weather such as haze, great inconvenience is brought to people going out. At present, people acquire weather conditions through mobile phone weather applications or weather forecast watching, but the users acquire the weather conditions passively through the mobile phone weather applications or the weather forecast watching, and the users forget to acquire the weather conditions in many times. Therefore, the user cannot be helped to master the weather change in time by using the mobile phone weather application or watching the weather forecast.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention provides a weather early warning pushing method and a weather early warning pushing system which can actively push weather conditions on a terminal and are convenient for a user to obtain.
The technical scheme adopted by the invention for solving the technical problems is as follows:
on the one hand, the method comprises the following steps of,
a weather early warning pushing method comprises the following steps:
monitoring a terminal used by a user;
after a starting signal of the terminal is monitored, long connection is established with the terminal;
and popping up early warning information on the terminal, wherein the early warning information comprises weather conditions needing early warning and the time and the place of the weather.
Further, the terminal is display equipment based on an android system.
Further, the establishing the long connection with the terminal includes:
acquiring a login IP address of the long connection of the terminal and a unique serial number of equipment of the terminal;
and establishing long connection with the terminal through an xmpp protocol by taking the unique serial number of the terminal as a user name.
Further, when the login IP address of the terminal long connection cannot be acquired, the login IP address is continuously acquired at a set time interval.
And further, judging whether the long connection establishment with the terminal is successful or not, and reestablishing the long connection with the terminal when the long connection establishment with the terminal is unsuccessful.
Further, after the long connection is established with the terminal, the method further includes:
generating early warning information;
and sending the early warning information to the terminal.
Further, the generating the warning information includes:
acquiring equipment information of the terminal, wherein the equipment information is used for representing the equipment attribute and the regional characteristic of the terminal;
acquiring the latest weather condition according to the equipment information;
and judging whether the weather exceeds a preset standard, and if so, generating early warning information.
Further, before the early warning information is popped up on the terminal, whether the time and the place in the early warning information are matched with the current time and place is judged according to the equipment information of the terminal;
if the terminal is matched with the early warning information, popping up the early warning information on the terminal; and if not, not popping up the early warning information, and storing the early warning information so as to be convenient for a user to check.
Further, when a shutdown signal of the terminal is monitored, the long connection with the terminal is disconnected.
On the other hand, in the case of a liquid,
a weather early warning push system, comprising:
the monitoring module is used for monitoring the terminal used by the user;
the connection module is used for establishing long connection with the terminal after monitoring a starting signal of the terminal;
and the ejection module is used for ejecting early warning information on the terminal, wherein the early warning information comprises the weather condition needing early warning and the time and the place of the weather.
This application adopts above technical scheme, possesses following beneficial effect at least:
the technical scheme of the invention discloses a weather early warning pushing method and a weather early warning pushing system. Carry out real-time monitoring to weather to ensure that the fastest condition of needing the early warning such as rain and snow, haze, strong wind, sand and dust storm, generate early warning information, can in time send real-time weather early warning information for the terminal and pop out early warning information on the terminal when the early warning appears through long connection technology. By the method, the user can conveniently acquire the weather condition at any time without actively acquiring, and convenience is provided for the user.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a weather warning pushing method according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for establishing a weather warning at an intelligent television terminal according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a weather warning pushing system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following detailed description of the technical solutions of the present invention is provided with reference to the accompanying drawings and examples. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the examples given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, an embodiment of the present invention provides a weather warning pushing method, including the following steps:
monitoring a terminal used by a user;
after a starting signal of the terminal is monitored, long connection is established with the terminal;
and popping up early warning information on the terminal, wherein the early warning information comprises weather conditions needing early warning and the time and place of the weather.
According to the weather early warning pushing method provided by the embodiment of the invention, the terminal used by the user is monitored, and after the starting signal of the terminal is detected, long connection is established with the terminal. Carry out real-time monitoring to weather to ensure that the fastest condition of needing the early warning such as rain and snow, haze, strong wind, sand and dust storm, generate early warning information, can in time send real-time weather early warning information for the terminal and pop out early warning information on the terminal when the early warning appears through long connection technology. By the method, the user can conveniently acquire the weather condition at any time without actively acquiring, and convenience is provided for the user.
As a supplementary description of the above embodiment, the present invention further provides another embodiment of a weather warning pushing method, including the following steps:
monitoring a terminal used by a user;
as an optional implementation manner in the embodiment of the present invention, the terminal is a display device based on an android system, such as an intelligent television based on the android system and a mobile phone with the android system.
After a starting signal of the terminal is monitored, long connection is established with the terminal;
optionally, the establishing of the long connection with the terminal includes:
acquiring a login IP address of the long connection of the terminal through an interface;
generating a unique serial number of the terminal equipment through the attribute of the terminal equipment;
and establishing long connection with the terminal through an xmpp protocol by taking the unique serial number of the terminal as a user name.
Further, when the login IP address to which the terminal is connected for a long time cannot be acquired, the login IP address is continuously acquired at a set time interval. Illustratively, the set time is 2 minutes.
In practical applications, optionally, the method further includes: and judging whether the long connection establishment with the terminal is successful or not, and reestablishing the long connection with the terminal when the long connection establishment with the terminal is unsuccessful. This process is repeated until the connection is successful.
Optionally, after the long connection is established with the terminal, the method further includes:
generating early warning information;
wherein, the generating of the early warning information includes:
acquiring equipment information of the terminal, wherein the equipment information is used for representing the equipment attribute and the regional characteristic of the terminal;
acquiring the latest weather condition according to the equipment information;
and judging whether the weather exceeds a preset standard, and if so, generating early warning information.
And sending the early warning information to the terminal.
And popping up early warning information on the terminal, wherein the early warning information comprises weather conditions needing early warning and the time and the place of the weather.
It should be particularly noted that before the terminal pops up the warning information, whether the time and the place in the warning information are matched with the current time and place is judged according to the device information of the terminal;
if the terminal is matched with the terminal, popping up the early warning information on the terminal; and if not, not popping up the early warning information, and storing the early warning information so as to be convenient for a user to check.
Finally, it should be noted that the long connection with the terminal is disconnected only when the shutdown signal of the terminal is monitored.
According to the other weather early warning pushing method provided by the embodiment of the invention, the terminal used by the user is monitored in real time, after the startup signal is monitored, long connection is established with the terminal, the updated weather is taken out at the fastest speed, and if the weather conditions include rain, snow, haze, strong wind, sand storm and other conditions needing early warning, the weather conditions are packaged and directly pushed to the equipment end through the long connection technology, and the equipment passively receives messages without pulling. The long connection technology is that the intelligent television serving as the client keeps communication connection with the server in real time, so that weather can be pushed to a terminal used by a user in real time. Without the user actively viewing the weather application and viewing the weather forecast. The weather condition can be conveniently and timely acquired by the user, and convenience is provided for the user.
In order to facilitate understanding of the above embodiments, the present invention further provides an embodiment of a method for establishing a weather warning on an intelligent television terminal, as shown in fig. 2, including the following steps:
1) the intelligent television based on the android system sends the startup broadcast in a broadcast mode when equipment is started, and the application is started after receiving the startup broadcast.
2) The login IP address of the long connection is acquired through the interface, and if the login IP address of the long connection is not acquired, the login IP address of the long connection is acquired continuously at intervals of 2^ n (n is 1 to 6) minutes. And acquiring the IP address, taking the unique number of the equipment as a user name, and establishing a long connection login server through an xmpp protocol.
3) And if the long connection is successfully established, reporting the equipment information to the server for identifying the attribute and the regional characteristic of the equipment. When the early warning information is available, the server side can push the information conveniently. If the long connection is not established, reconnection is performed.
4) And if the information sent by the server is received, decrypting, after decryption is successful, carrying out region matching with the client according to the information, and if matching is successful, displaying the early warning information.
The program remains running in the background all the time, long connections are present all the time. And when the equipment is shut down, the program is closed.
The method for establishing the weather early warning on the intelligent television terminal can remind a user in real time when weather needing early warning appears. Meanwhile, various weathers including rain, snow, haze, sand storm and the like can be warned. The types included are many.
In an embodiment, the present invention further provides a weather warning pushing system, as shown in fig. 3, including:
a monitoring module 301, configured to monitor a terminal used by a user;
a connection module 302, configured to establish a long connection with the terminal after monitoring a power-on signal of the terminal;
specifically, the connection module is configured to obtain a login IP address of the long connection of the terminal through an interface; and when the login IP address of the long connection of the terminal cannot be acquired, acquiring the login IP address at set time intervals.
Acquiring the unique serial number of the terminal equipment through the IP address;
and establishing long connection with the terminal through an xxmp protocol by taking the unique serial number of the terminal as a user name.
In addition, the connection module is also used for judging whether the long connection establishment with the terminal is successful or not, and reestablishing the long connection with the terminal when the long connection establishment with the terminal is unsuccessful.
The pop-up module 303 is configured to pop-up warning information on the terminal, where the warning information includes a weather condition that needs to be warned, and a time and a place of the weather.
Optionally, the pop-up module is further configured to, after establishing a long connection with the terminal,
generating early warning information;
and sending the early warning information to the terminal.
The generating of the early warning information includes acquiring device information of the terminal, wherein the device information is used for representing device attributes and regional characteristics of the terminal;
acquiring the latest weather condition according to the equipment information;
and judging whether the weather exceeds a preset standard, and if so, generating early warning information.
Optionally, the pop-up module is further configured to, before the terminal pops up the warning information, determine whether the time and the place in the warning information are matched with the current time and place according to the device information of the terminal;
if the terminal is matched with the terminal, popping up the early warning information on the terminal; and if not, not popping up the early warning information, and storing the early warning information so as to be convenient for a user to check.
In the weather early warning push system, when the shutdown signal of the terminal is monitored, the long connection with the terminal is disconnected.
According to the weather early warning pushing system provided by the embodiment of the invention, when weather which is unfavorable for traveling occurs in a local area, people can be reminded through the terminal. The system can monitor the local weather change condition in real time, and when abnormal weather is detected, the server side can push messages to the currently opened terminal equipment (intelligent television) in real time through a long connection technology, so that a user watching the television receives early warning information. Even if the terminal is not opened currently, the terminal still receives the notification in time when the terminal is opened in the same day.
This system can carry out real-time monitoring to ensure that the fastest weather that updates of taking, if contain sleet, haze, strong wind, the condition that needs the early warning such as sand and dust storm, the server side packs the weather condition, directly pushes away the equipment end through long connection technology, and the passive receipt message of equipment need not be pulled and is got. The long connection technology is that the intelligent television serving as the client keeps communication connection with the server in real time, so that weather can be pushed to a terminal used by a user in real time.
It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar parts in other embodiments may be referred to for the content which is not described in detail in some embodiments.
It should be noted that, in the description of the present application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present application, the meaning of "a plurality" means at least two unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, and the program may be stored in a computer readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module may also be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (10)

1. A weather early warning pushing method is characterized by comprising the following steps:
monitoring a terminal used by a user;
after a starting signal of the terminal is monitored, long connection is established with the terminal;
and popping up early warning information on the terminal, wherein the early warning information comprises weather conditions needing early warning and the time and the place of the weather.
2. The method of claim 1, wherein: the terminal is display equipment based on an android system.
3. The method of claim 1, wherein: the establishing of the long connection with the terminal comprises:
acquiring a login IP address of the long connection of the terminal and a unique serial number of equipment of the terminal;
and establishing long connection with the terminal through an xmpp protocol by taking the unique serial number of the terminal as a user name.
4. The method of claim 3, further comprising: and when the login IP address of the terminal long connection cannot be acquired, acquiring the login IP address continuously at a set time interval.
5. The method of claim 1, further comprising: and judging whether the long connection establishment with the terminal is successful or not, and reestablishing the long connection with the terminal when the long connection establishment with the terminal is unsuccessful.
6. The method of claim 1, wherein: after long connection is established with the terminal, the method further comprises the following steps:
generating early warning information;
and sending the early warning information to the terminal.
7. The method of claim 6, wherein: the generating of the early warning information includes:
acquiring equipment information of the terminal, wherein the equipment information is used for representing the equipment attribute and the regional characteristic of the terminal;
acquiring the latest weather condition according to the equipment information;
and judging whether the weather exceeds a preset standard, and if so, generating early warning information.
8. The method of claim 7, further comprising:
before popping up early warning information on the terminal, judging whether the time and the place in the early warning information are matched with the current time and place according to the equipment information of the terminal;
if the terminal is matched with the early warning information, popping up the early warning information on the terminal; and if not, not popping up the early warning information, and storing the early warning information so as to be convenient for a user to check.
9. The method of claim 1, further comprising: and when the shutdown signal of the terminal is monitored, the long connection with the terminal is disconnected.
10. A weather warning push system, comprising:
the monitoring module is used for monitoring the terminal used by the user;
the connection module is used for establishing long connection with the terminal after monitoring a starting signal of the terminal;
and the ejection module is used for ejecting early warning information on the terminal, wherein the early warning information comprises the weather condition needing early warning and the time and the place of the weather.
CN202010107548.1A 2020-02-21 2020-02-21 Weather early warning pushing method and system Pending CN111314471A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010107548.1A CN111314471A (en) 2020-02-21 2020-02-21 Weather early warning pushing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010107548.1A CN111314471A (en) 2020-02-21 2020-02-21 Weather early warning pushing method and system

Publications (1)

Publication Number Publication Date
CN111314471A true CN111314471A (en) 2020-06-19

Family

ID=71148031

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010107548.1A Pending CN111314471A (en) 2020-02-21 2020-02-21 Weather early warning pushing method and system

Country Status (1)

Country Link
CN (1) CN111314471A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113127236A (en) * 2021-05-10 2021-07-16 广州欢网科技有限责任公司 Message pushing method and device and server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067851A (en) * 2011-10-20 2013-04-24 中国气象局公共气象服务中心 System and method for publishing meteorological disaster warning information and based on mobile phone clients
CN103728911A (en) * 2013-12-25 2014-04-16 力合科技(湖南)股份有限公司 Early warning method and device for data monitoring
CN103874032A (en) * 2014-03-24 2014-06-18 北京奇虎科技有限公司 Information pushing method and device based on mobile terminals
CN104252523A (en) * 2014-07-03 2014-12-31 珠海市君天电子科技有限公司 Information pushing method and information pushing device
CN109286648A (en) * 2017-07-21 2019-01-29 比亚迪股份有限公司 Data push method, device, system and terminal device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067851A (en) * 2011-10-20 2013-04-24 中国气象局公共气象服务中心 System and method for publishing meteorological disaster warning information and based on mobile phone clients
CN103728911A (en) * 2013-12-25 2014-04-16 力合科技(湖南)股份有限公司 Early warning method and device for data monitoring
CN103874032A (en) * 2014-03-24 2014-06-18 北京奇虎科技有限公司 Information pushing method and device based on mobile terminals
CN104252523A (en) * 2014-07-03 2014-12-31 珠海市君天电子科技有限公司 Information pushing method and information pushing device
CN109286648A (en) * 2017-07-21 2019-01-29 比亚迪股份有限公司 Data push method, device, system and terminal device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113127236A (en) * 2021-05-10 2021-07-16 广州欢网科技有限责任公司 Message pushing method and device and server

Similar Documents

Publication Publication Date Title
WO2006101556A3 (en) Enabling application wakeup on a mobile device with a hybrid client
EP3013114A1 (en) Method for sending heartbeat message and mobile terminal
WO2015149471A1 (en) Information pushing method, system and device and computer storage medium
CN103064732A (en) Method for taking over third-party application messages through message manager
CN105049270A (en) Information processing method, device and system
CN103297470A (en) Method for processing always-online service, application server, user terminal and system
CN111884861B (en) Real-time alarm method for Internet of things equipment based on Netty
CN111314471A (en) Weather early warning pushing method and system
US8686878B2 (en) Systems and methods for context sensitive notification
US20080005280A1 (en) Automatic data synchronization
CN114390451A (en) 5G message batch sending method and device based on message queue and electronic equipment
CN105553762A (en) Communication method and communication system between domestic appliance and mobile terminal and corresponding devices
CN104811342A (en) Method of managing EOC terminals with WIFI (Wireless Fidelity) in batches by EOC local side
CN105471719A (en) Method for solving communication problems of chatting software under weak signals via cloud server storage technology
CN108494951B (en) Unread data acquisition method, unread data acquisition device, unread data acquisition equipment and storage medium
CN111262731A (en) Alarm method, alarm device, server equipment and storage medium
CN107423130B (en) The display systems and method of mobile terminal broadcast and advertisement
CN116055812A (en) Quick wake-up method for television set for emergency broadcasting
CN115378977A (en) Intelligent monitoring method and device in family scene and readable storage medium
CN115543500B (en) Window processing method and electronic equipment
CN105227428A (en) The processing method of unread message, Apparatus and system
EP3672359B1 (en) Electrical equipment that accesses, in an alternating operating mode, a mobile telephone network, method, computer program product and storage means
CN108989467B (en) Centralized addressing method
CN112738337A (en) Information display method and device, computer equipment and storage medium
CN111262996A (en) Notification bar message processing method and device, electronic device and 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: 20200619