CN117857621A - Data pushing method and device, storage medium and electronic equipment - Google Patents

Data pushing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN117857621A
CN117857621A CN202311865842.9A CN202311865842A CN117857621A CN 117857621 A CN117857621 A CN 117857621A CN 202311865842 A CN202311865842 A CN 202311865842A CN 117857621 A CN117857621 A CN 117857621A
Authority
CN
China
Prior art keywords
time
data
water
target
household appliance
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
CN202311865842.9A
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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd, Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202311865842.9A priority Critical patent/CN117857621A/en
Publication of CN117857621A publication Critical patent/CN117857621A/en
Pending legal-status Critical Current

Links

Landscapes

  • Selective Calling Equipment (AREA)

Abstract

The application discloses a data pushing method and device, a storage medium and electronic equipment, and relates to the technical field of smart families, wherein the data pushing method comprises the following steps: and a prediction step: predicting first water data of a target household appliance at a second time according to historical water data of the target household appliance before the first time, wherein the second time is a time after the first time; a transmitting step: pushing the first water data to a first object at the second time; and circularly executing the prediction step and the sending step to determine water consumption data of the target household appliance at different times, wherein the first time for executing the prediction step is different each time. By adopting the technical scheme, the problem that data cannot be pushed to a user uninterruptedly and stably in the prior art is solved.

Description

Data pushing method and device, storage medium and electronic equipment
Technical Field
The application relates to the technical field of smart families, in particular to a data pushing method and device, a storage medium and electronic equipment.
Background
In the prior art, the daily data amount required to be predicted by the smart home system may exceed 500 ten thousand, and the data required to be predicted may be distributed in different periods of the day. The method of predicting data and issuing to a device is typically: 1) By way of a Java toolkit (Java Development Kit, abbreviated as JDK) with its own delay queue: and sequencing the data to be predicted according to the prediction time, inserting the data into a Delay Queue, and taking out the data if the time is reached through the head information of the training Queue which is continuously operated by one thread. However, with the above technical solution, the following technical problems may occur: the data may be lost after the service is restarted, and when the massive data are sequenced and all the predicted data are loaded into Delay Queue, the occupied service memory is too large, the distributed processing of the massive data cannot be realized, and the data processing efficiency is low. 3) The data is processed by means of timed task batch processing or middleware, and the data is processed at proper time by means of continuous training prediction results or message placement into a message queue. But this approach may have the following problems: and the timeliness is low, so that the system is unstable.
Aiming at the problem that the data cannot be stably pushed to a user without interruption in the prior art, an effective solution is not proposed yet.
Disclosure of Invention
The embodiment of the application provides a data pushing method and device, a storage medium and electronic equipment, which are used for at least solving the problem that data cannot be continuously and stably pushed to a first object in the prior art.
According to an embodiment of the present application, there is provided a data pushing method, including: and a prediction step: predicting first water data of a target household appliance at a second time according to historical water data of the target household appliance before the first time, wherein the second time is a time after the first time; a transmitting step: pushing the first water data to a first object at the second time; and circularly executing the prediction step and the sending step to determine water consumption data of the target household appliance at different times, wherein the first time for executing the prediction step is different each time.
In one exemplary embodiment, the method further comprises, after predicting the first water data of the target home device at the second time from the historical water data of the target home device before the first time: determining a third time when the target home device needs to predict second water usage data; and under the condition that the third time is earlier than the second time, predicting second water consumption data of the target household appliance at a fourth time according to historical water consumption data of the target household appliance before the third time, wherein the fourth time is the time after the third time.
In one exemplary embodiment, the method further comprises, after predicting the first water data of the target home device at the second time from the historical water data of the target home device before the first time: determining a third time when the target home device needs to predict second water usage data; and under the condition that the third time is later than the second time, after the first water data is pushed to a first object at the second time, predicting second water data of the target household appliance at a fourth time according to historical water data of the target household appliance before the third time, wherein the fourth time is the time after the third time.
In one exemplary embodiment, the method further comprises, after predicting the first water data of the target home device at the second time from the historical water data of the target home device before the first time: pushing a prediction result to the first object, wherein the prediction result is used for indicating that the first water data of the target household appliance is predicted; and receiving a setting operation of the first object to modify first water data of the target household appliance at the second time into the first water data of the target household appliance at a fifth time.
In one exemplary embodiment, after predicting the first water data of the target home device at the second time based on the historical water data of the target home device before the first time, the method further comprises: determining a first time period for acquiring the historical water usage data and a second time period for predicting the first water usage data; in the event that it is determined that an upgrade is required for a smart home analysis system, a target time period for the smart home analysis system to upgrade is determined, wherein the target time period includes other time periods than the first time period and the second time period.
In one exemplary embodiment, before the second time pushes the first water data to the first object, the method further comprises: determining whether the second time corresponding to the first water data is within a mask time period set by the first object; determining to allow pushing of the first water data to the first object if the second time is not within a mask period; in the event that the second time is within a mask period of the first object, it is determined that pushing the first water data to the first object is not allowed.
In an exemplary embodiment, the predicting step and the transmitting step are performed in a loop to determine the water usage data of the target home device at different times, and the method further includes: determining whether the first object opens a data sharing right; determining one or more second objects associated with the first object in a data sharing way under the condition that the first object has opened the data sharing permission; and sending the water use data at different times to the one or more second objects.
According to another embodiment of the embodiments of the present application, there is also provided a device for determining a location of a problem code, including: and a prediction module: for performing the prediction step: predicting first water data of a target household appliance at a second time according to historical water data of the target household appliance before the first time, wherein the second time is a time after the first time; a transmitting module, configured to perform the transmitting step: pushing the first water data to a first object at the second time; and the determining module is used for circularly executing the predicting step and the sending step so as to determine water consumption data of the target household appliance at different times, wherein the first time for executing the predicting step is different each time.
According to yet another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to perform the above-described data pushing method when run.
According to still another aspect of the embodiments of the present application, there is further provided an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the data pushing method described above through the computer program.
In the embodiment of the application, the first water data of the target household appliance at the second time is predicted according to the water data of the target household appliance before the first time, and the first water data is pushed to the first object at the second time. And under the condition of changing the first time, the steps are circularly executed to determine the water consumption data of the target household appliance at different times. That is, the water consumption data of the target home device at different times is determined by cycling the technical scheme of predicting the first water consumption data of the target home device at the first time and pushing the first water consumption data to the first object at the second time. Through the technical scheme, the problem that data cannot be continuously and stably pushed to the first object in the prior art can be solved, and then the effect that the data can be continuously and stably pushed to a user can be achieved, and then the message processing capacity and the message processing efficiency of the system are improved can be achieved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic diagram of a hardware environment of a method for determining a location of a problem code according to an embodiment of the present application;
FIG. 2 is a flow chart of a method of determining a location of a problem code according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a method of determining a location of a problem code according to an embodiment of the present application;
FIG. 4 is a block diagram of a problem code location determination apparatus according to an embodiment of the present application;
fig. 5 is a block diagram (two) of a problem code location determining apparatus according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiments of the present application, a data pushing method is provided. The data pushing method is widely applied to full-house intelligent digital control application scenes such as intelligent Home (Smart Home), intelligent Home equipment ecology, intelligent Home (Intelligence House) ecology and the like. Alternatively, in the present embodiment, the above-described data pushing method may be applied to a hardware environment constituted by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be used to provide services (such as application services and the like) for a terminal or a client installed on the terminal, a database may be set on the server or independent of the server, for providing data storage services for the server 104, and cloud computing and/or edge computing services may be configured on the server or independent of the server, for providing data computing services for the server 104.
The network may include, but is not limited to, at least one of: wired network, wireless network. The wired network may include, but is not limited to, at least one of: a wide area network, a metropolitan area network, a local area network, and the wireless network may include, but is not limited to, at least one of: WIFI (Wireless Fidelity ), bluetooth. The terminal device 102 may not be limited to a PC, a mobile phone, a tablet computer, an intelligent air conditioner, an intelligent smoke machine, an intelligent refrigerator, an intelligent oven, an intelligent cooking range, an intelligent washing machine, an intelligent water heater, an intelligent washing device, an intelligent dish washer, an intelligent projection device, an intelligent television, an intelligent clothes hanger, an intelligent curtain, an intelligent video, an intelligent socket, an intelligent sound box, an intelligent fresh air device, an intelligent kitchen and toilet device, an intelligent bathroom device, an intelligent sweeping robot, an intelligent window cleaning robot, an intelligent mopping robot, an intelligent air purifying device, an intelligent steam box, an intelligent microwave oven, an intelligent kitchen appliance, an intelligent purifier, an intelligent water dispenser, an intelligent door lock, and the like.
In this embodiment, a data pushing method is provided and applied to the server, and fig. 2 is a flowchart of the data pushing method according to an embodiment of the present application, where the flowchart includes the following steps:
step S202, a prediction step: predicting first water data of a target household appliance at a second time according to historical water data of the target household appliance before the first time, wherein the second time is a time after the first time;
it will be appreciated that predicted at a first time is first water data of the target home device at a second time. Wherein, the determination of the second time may be: and determining the heating duration of the target household appliance for a plurality of times, and determining the second time through the maximum heating duration of the target appliance and the first time.
Step S204, a transmitting step: pushing the first water data to a first object at the second time;
and step S206, the prediction step and the sending step are circularly executed to determine water consumption data of the target household appliance at different times, wherein the first time for executing the prediction step is different each time.
The first time may be changed at intervals of a fixed time while the predicting step and the transmitting step are cycled, for example, assuming that the fixed time is one hour, predicting water data of the target home device between four and five afternoons at one afternoon at the target home device, and pushing the water data of four afternoon to the first object at four afternoon; and predicting water consumption data of the target household appliance between five and six pm at two pm, and pushing the water consumption data of the fifth and one-half pm to the first object at five pm. Similarly, the above-described prediction step and transmission step are cyclically performed. To determine water usage data for the target home device at different times.
According to the steps, the first water data of the target household appliance at the second time is predicted according to the water data of the target household appliance before the first time, and the first water data is pushed to the first object at the second time. And under the condition of changing the first time, the steps are circularly executed to determine the water consumption data of the target household appliance at different times. That is, the water consumption data of the target home device at different times is determined by cycling the technical scheme of predicting the first water consumption data of the target home device at the first time and pushing the first water consumption data to the first object at the second time. Through the technical scheme, the problem that data cannot be continuously and stably pushed to the first object in the prior art can be solved, and then the effect that the data can be continuously and stably pushed to a user can be achieved, and then the message processing capacity and the message processing efficiency of the system are improved can be achieved.
Optionally, after predicting the first water data of the target home device at the second time according to the historical water data of the target home device before the first time in step S202, the following technical scheme may be further executed:
1) Determining a third time when the target home device needs to predict second water usage data; and under the condition that the third time is earlier than the second time, predicting second water consumption data of the target household appliance at a fourth time according to historical water consumption data of the target household appliance before the third time, wherein the fourth time is the time after the third time.
2) Determining a third time when the target home device needs to predict second water usage data; and under the condition that the third time is later than the second time, after the first water data is pushed to a first object at the second time, predicting second water data of the target household appliance at a fourth time according to historical water data of the target household appliance before the third time, wherein the fourth time is the time after the third time.
According to the method, the relationship between the second time of the last prediction of the first water data and the third/fourth time of the next start prediction is not limited. Either the third time is earlier than the second time or the fourth time is later than the second time. For example: assume that the first water data of the target home appliance is predicted from three pm (i.e., the first time of the present application) to four pm, and the second water data is predicted from four pm to five pm at two pm (i.e., the third time of the present application). A situation may occur in which the third time is earlier than the second time. For example: first water data between one and a half pm (i.e. the second time of the application) is predicted at one and a half pm (i.e. the fourth time of the application), and second water data between two and a half pm and a three pm (i.e. the fourth time of the application) is predicted at two and a half pm. A situation may occur in which the fourth time is later than the second time.
3) Pushing a prediction result to the first object, wherein the prediction result is used for indicating that the first water data of the target household appliance is predicted; and receiving a setting operation of the first object to modify first water data of the target household appliance at the second time into the first water data of the target household appliance at a fifth time.
According to the technical scheme, after the first water data of the target household appliance at the second time is predicted at the first time, the prediction result can be pushed to the first object, so that the first object can determine whether the second time of the first water data needs to be modified, and when the first object determines that the second time of the first water data needs to be modified, setting operation of the first object is received, wherein the setting operation is used for indicating that the second time is modified to be the fifth time. And when receiving the setting operation of the target object, modifying the first water data of the target household appliance at the second time into the first water data at the fifth time. That is, the first water data does not need to be pushed to the first object at the second time, but is pushed to the first object at the fifth time.
4) Determining a first time period for acquiring the historical water usage data and a second time period for predicting the first water usage data; in the event that it is determined that an upgrade is required for a smart home analysis system, a target time period for the smart home analysis system to upgrade is determined, wherein the target time period includes other time periods than the first time period and the second time period.
Wherein the intelligent home analysis system may be used to perform the steps S202, S204 and S206.
During operation of the intelligent home analysis system, there may be situations where a system upgrade is required. To ensure that system upgrades do not affect the acquisition of historical water data and the predictive process of the first water data, the upgrade time of the intelligent home analysis system may be limited. Specific: a target time period for an upgrade of the intelligent home analysis system may be defined, wherein the target time period is a first time period that does not include acquiring historical water usage data and a second time period that predicts the first water usage data.
Optionally, before pushing the first water data to the first object at the second time, the method further comprises: determining whether the second time corresponding to the first water data is within a mask time period set by the first object; determining to allow pushing of the first water data to the first object if the second time is not within a mask period; in the event that the second time is within a mask period of the first object, it is determined that pushing the first water data to the first object is not allowed.
That is, before pushing the first water data to the first object, it is also necessary to determine whether to allow the first water data to be sent to the first object. I.e. determining whether the second time is within the masking period of the first object. Wherein the first water data is not allowed to be received within the mask period of the first object.
After the predicting step and the transmitting step are performed in the loop of the above step S206 to determine the water consumption data of the target home appliance at different times, the following steps may be further performed: determining whether the first object opens a data sharing right; determining one or more second objects associated with the first object in a data sharing way under the condition that the first object has opened the data sharing permission; and sending the water use data at different times to the one or more second objects.
It can be understood that, in the case that the first object needs to share the water data of different times to the second object, the first object may open the sharing authority, and determine that there are one or more second objects in data association with the first object to share the water data of different times to the second object when the first object determines that the first object opens the sharing authority. The second object may be a family, a friend, etc. of the first object that is associated and shared with the first object presence data, and the identity of the second object is not specifically limited.
In order to better understand the process of the data pushing method, the implementation method flow of the data pushing method is described below in conjunction with the optional embodiment, but is not limited to the technical solution of the embodiment of the present application.
In this embodiment, a data pushing method is provided, and fig. 3 is a schematic diagram of the data pushing method according to an embodiment of the present application, as shown in fig. 3, specifically including the following steps:
step S301, the data producer produces a message, and continuously outputs a message (i.e. the first water data of the present application) with a validity period (i.e. the second time of the present application) according to an Active message queue (Active Message Queue, abbreviated as Active MQ, an open source message middleware);
for example: under the condition that the predicted heating time length of the water heater is within two hours, predicted data (i.e. first water data of the application) within three hours to four hours (i.e. second time of the application) can be pushed by an integral point (i.e. first time of the application), and the integral point of pushing the predicted data can be recorded currently, so that repeated pushing is avoided. The predictive data may be sent uninterrupted for 24 hours throughout the day.
Wherein, the prediction data may include: device identification of the water heater (i.e., the target home device of the present application), expiration time unit minutes (e.g., how long to issue a heating command to the water heater, etc.), etc.
In this case, in step S301, the message with the validity period may be continuously output in a page acquisition manner. Specific: the maximum number of request messages per second (Transactions Per Second, abbreviated TPS) that the analysis middleware can provide. Assuming that the maximum TPS that the middleware can withstand is theoretically 1000, 1000 messages are acquired at a time, i.e., paging acquisition. 1000 messages are pushed each time, the system can be dormant for 1 second (the dormant time can be set according to practical application), and the system abnormality caused by the fact that the middleware threshold value is reached and the self-protection mechanism of the middleware is triggered is avoided.
By the scheme of paging acquisition, the problem that in the prior art, the message middleware can only realize second-level processing of data when touching the data, but massive data is easy to exceed the load of the middleware, so that self-protection of the middleware is triggered, the message middleware is only suitable for small data volume, and the message middleware cannot be directly used for massive data is solved.
After outputting the message with the expiration date, it may be determined whether the system (including the data producer and the data consumer, etc.) needs to be upgraded, and in the case of determining that the system needs to be upgraded, the time for the system upgrade may be limited to ensure that the system upgrade does not affect the output of subsequent messages. Specific: assuming that the message is pushed completely between one and twenty afternoon and between two and eighteen afternoon, … … and so on, the message can be pushed completely within 20 minutes every whole point, namely the time after 20 minutes every whole point is set as the time of system upgrade. For example: setting up to make a system upgrade at forty afternoon (i.e., 40 minutes full), prescribing a system upgrade at thirty-five afternoon (i.e., 35 minutes full), etc.
Step S302, a message is sent to a first message queue through a normal switch;
a message with a validity period may be sent to the first message queue through the normal switch and pushed to the first object along with the validity period of the message. The first message queue is used for bearing messages in the validity period.
Further, in the case where the first object determines the validity period of the modified message, the modified message may be marked as modified and the validity period of the modified message may be replaced with the validity period of the message before modification. For example: the message before modification is to issue the prediction data at three pm, and the message after modification is to issue the prediction data at five pm. In this case, the prediction data is not issued at three pm, but the water data is issued at five pm.
Step S303, after any message in the first message queue expires (i.e. the time indicated by the validity period is reached), the message is sent to the dead letter switch, so that the message is sent to the second message queue through the dead letter switch, and the message in the second message queue is sent to the data consumer.
Step S304, the data consumer determines whether the message satisfies the winding part (that is, the data consumer makes a judgment of the message in combination with the device itself and external factors, and issues the message to the device after each inspection passes), and if the issuing condition is satisfied, step S305 is executed, and if the condition is not satisfied, the message is discarded and the cause is recorded.
Wherein the data consumer can turn on the multithreaded consume message to increase message processing capability.
Wherein, the process of determining whether the message meets the issuing condition, namely, the message is subjected to reliability verification, specifically comprises, but is not limited to, verification of the following aspects of the message:
(1) Whether the user turns on the intelligent manager switch;
(2) Whether the message is within a user-masked time (corresponding to whether the second time of the application is within the first object-masked time period);
(3) Whether the message has been issued (corresponding to whether the first water data of the present application has been pushed);
(4) Whether the user has received this message;
(5) Whether the message has expired.
In step S305, the message is pushed to the terminal (i.e. the first object of the present application) through the internet of things (Internet of Things, IOT for short).
It can be appreciated that in the above technical solution, the processing result of the message needs to be recorded no matter whether the message meets the issuing condition. The message processing result can be used for later analysis and investigation of problems.
Through the paging data acquisition mode in the technical scheme, the problem that in the prior art, data is possibly processed through the mode of background timing task training data retrieval (namely, the training database needs to be searched once in a full amount) can be solved: the training period of the mass data is not easy to be too short, so that the second-level processing of the mass data cannot be realized, and meanwhile, the database and the system resource are wasted greatly.
Furthermore, the embodiment of the application predicts the water consumption habit of the user by reporting data based on the equipment and carrying out self-learning of the equipment through big data, and sends the predicted fruit to the equipment. Meanwhile, mass data are scattered, and small data volume is continuously transmitted for 24 hours, and the reliable and reliable inspection of the information is carried out. The method can continuously submit the message in the load range of the middleware, and further can process the message in the second level through the middleware, thereby improving the efficiency of message processing. Furthermore, in the embodiment of the present application, the message processing result of each time may be recorded in a new table by referring to the device identifier instead of being recorded in the original table, so that the message processing efficiency is improved and the subsequent troubleshooting is facilitated.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the embodiments of the present application.
FIG. 4 is a block diagram (I) of a data pushing method according to an embodiment of the present application; as shown in fig. 4, includes:
prediction module 42: for performing the prediction step: predicting first water data of a target household appliance at a second time according to historical water data of the target household appliance before the first time, wherein the second time is a time after the first time;
a transmitting module 44, configured to perform the transmitting steps: pushing the first water data to a first object at the second time;
the determining module 46 is configured to perform the predicting step and the sending step in a circulating manner to determine water consumption data of the target home device at different times, where the first time for performing the predicting step is different each time.
By means of the device, the first water data of the target household appliance at the second time is predicted according to the water data of the target household appliance before the first time, and the first water data is pushed to the first object at the second time. And under the condition of changing the first time, the steps are circularly executed to determine the water consumption data of the target household appliance at different times. That is, the water consumption data of the target home device at different times is determined by cycling the technical scheme of predicting the first water consumption data of the target home device at the first time and pushing the first water consumption data to the first object at the second time. Through the technical scheme, the problem that data cannot be continuously and stably pushed to the first object in the prior art can be solved, and then the effect that the data can be continuously and stably pushed to a user can be achieved, and then the message processing capacity and the message processing efficiency of the system are improved can be achieved.
In one exemplary embodiment, fig. 5 is a data pushing device according to an embodiment of the present application; as shown in fig. 5, the apparatus further includes: a first determining sub-module 52 for determining a third time when the target home device needs to predict second water usage data; and under the condition that the third time is earlier than the second time, predicting second water consumption data of the target household appliance at a fourth time according to historical water consumption data of the target household appliance before the third time, wherein the fourth time is the time after the third time.
In an exemplary embodiment, the first determining submodule 52 is further configured to determine a third time at which the target home device needs to predict second water usage data; and under the condition that the third time is later than the second time, after the first water data is pushed to a first object at the second time, predicting second water data of the target household appliance at a fourth time according to historical water data of the target household appliance before the third time, wherein the fourth time is the time after the third time.
In an exemplary embodiment, the first determining submodule 52 is further configured to push a prediction result to the first object, where the prediction result is used to indicate that the first water data of the target appliance has been predicted; and receiving a setting operation of the first object to modify first water data of the target household appliance at the second time into the first water data of the target household appliance at a fifth time.
In an exemplary embodiment, the first determination submodule 52 is further configured to determine a first time period for acquiring the historical water use data and a second time period for predicting the first water use data; in the event that it is determined that an upgrade is required for a smart home analysis system, a target time period for the smart home analysis system to upgrade is determined, wherein the target time period includes other time periods than the first time period and the second time period.
In an exemplary embodiment, the sending module 44 is further configured to determine whether the second time corresponding to the first water data is within a mask period set by the first object; determining to allow pushing of the first water data to the first object if the second time is not within a mask period; in the event that the second time is within a mask period of the first object, it is determined that pushing the first water data to the first object is not allowed.
In an exemplary embodiment, as shown in fig. 5, the apparatus further includes: a second determining submodule 54, configured to determine whether the first object opens a data sharing right; determining one or more second objects associated with the first object in a data sharing way under the condition that the first object has opened the data sharing permission; and sending the water use data at different times to the one or more second objects.
Embodiments of the present application also provide a storage medium including a stored program, wherein the program performs the method of any one of the above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store program code for performing the steps of:
s1, a prediction step: predicting first water data of a target household appliance at a second time according to historical water data of the target household appliance before the first time, wherein the second time is a time after the first time;
s2, a sending step: pushing the first water data to a first object at the second time;
and S3, circularly executing the prediction step and the sending step to determine water consumption data of the target household appliance at different times, wherein the first time for executing the prediction step is different each time.
Embodiments of the present application also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, a prediction step: predicting first water data of a target household appliance at a second time according to historical water data of the target household appliance before the first time, wherein the second time is a time after the first time;
s2, a sending step: pushing the first water data to a first object at the second time;
and S3, circularly executing the prediction step and the sending step to determine water consumption data of the target household appliance at different times, wherein the first time for executing the prediction step is different each time.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be centralized on a single computing device, or distributed across a network of computing devices, or they may alternatively be implemented in program code executable by computing devices, such that they may be stored in a memory device for execution by the computing devices and, in some cases, the steps shown or described may be performed in a different order than what is shown or described, or they may be implemented as individual integrated circuit modules, or as individual integrated circuit modules. Thus, the present application is not limited to any specific combination of hardware and software.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application and are intended to be comprehended within the scope of the present application.

Claims (10)

1. The data pushing method is characterized by comprising the following steps of:
and a prediction step: predicting first water data of a target household appliance at a second time according to historical water data of the target household appliance before the first time, wherein the second time is a time after the first time;
a transmitting step: pushing the first water data to a first object at the second time;
and circularly executing the prediction step and the sending step to determine water consumption data of the target household appliance at different times, wherein the first time for executing the prediction step is different each time.
2. The data pushing method of claim 1, wherein the predicting the first water data of the target home device at the second time based on the historical water data of the target home device before the first time, the method further comprises:
determining a third time when the target home device needs to predict second water usage data;
and under the condition that the third time is earlier than the second time, predicting second water consumption data of the target household appliance at a fourth time according to historical water consumption data of the target household appliance before the third time, wherein the fourth time is the time after the third time.
3. The data pushing method of claim 1, wherein the predicting the first water data of the target home device at the second time based on the historical water data of the target home device before the first time, the method further comprises:
determining a third time when the target home device needs to predict second water usage data;
and under the condition that the third time is later than the second time, after the first water data is pushed to a first object at the second time, predicting second water data of the target household appliance at a fourth time according to historical water data of the target household appliance before the third time, wherein the fourth time is the time after the third time.
4. The data pushing method of claim 1, wherein the predicting the first water data of the target home device at the second time based on the historical water data of the target home device before the first time, the method further comprises:
pushing a prediction result to the first object, wherein the prediction result is used for indicating that the first water data of the target household appliance is predicted;
and receiving a setting operation of the first object to modify first water data of the target household appliance at the second time into the first water data of the target household appliance at a fifth time.
5. The data pushing method of claim 1, wherein after predicting the first water data of the target home device at the second time based on the historical water data of the target home device before the first time, the method further comprises:
determining a first time period for acquiring the historical water usage data and a second time period for predicting the first water usage data;
in the event that it is determined that an upgrade is required for a smart home analysis system, a target time period for the smart home analysis system to upgrade is determined, wherein the target time period includes other time periods than the first time period and the second time period.
6. The data pushing method of claim 1, wherein before the second time pushes the first water data to a first object, the method further comprises:
determining whether the second time corresponding to the first water data is within a mask time period set by the first object;
determining to allow pushing of the first water data to the first object if the second time is not within a mask period;
in the event that the second time is within a mask period of the first object, it is determined that pushing the first water data to the first object is not allowed.
7. The data pushing method according to claim 1, wherein the predicting step and the transmitting step are performed in a loop to determine the water consumption data of the target home device at different times, the method further comprising:
determining whether the first object opens a data sharing right;
determining one or more second objects associated with the first object in a data sharing way under the condition that the first object has opened the data sharing permission;
and sending the water use data at different times to the one or more second objects.
8. A data pushing apparatus, comprising:
and a prediction module: for performing the prediction step: predicting first water data of a target household appliance at a second time according to historical water data of the target household appliance before the first time, wherein the second time is a time after the first time;
a transmitting module, configured to perform the transmitting step: pushing the first water data to a first object at the second time;
and the determining module is used for circularly executing the predicting step and the sending step so as to determine water consumption data of the target household appliance at different times, wherein the first time for executing the predicting step is different each time.
9. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program when run performs the method of any of the preceding claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 7 by means of the computer program.
CN202311865842.9A 2023-12-29 2023-12-29 Data pushing method and device, storage medium and electronic equipment Pending CN117857621A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311865842.9A CN117857621A (en) 2023-12-29 2023-12-29 Data pushing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311865842.9A CN117857621A (en) 2023-12-29 2023-12-29 Data pushing method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN117857621A true CN117857621A (en) 2024-04-09

Family

ID=90528537

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311865842.9A Pending CN117857621A (en) 2023-12-29 2023-12-29 Data pushing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117857621A (en)

Similar Documents

Publication Publication Date Title
CN101981531B (en) Aggregating recurrent schedules to optimize resource consumption
CN109167711B (en) Household appliance control method and device, storage medium and server
CN114697150B (en) Command issuing method and device, storage medium and electronic device
CN117857621A (en) Data pushing method and device, storage medium and electronic equipment
CN116225834A (en) Alarm information sending method and device, storage medium and electronic device
CN116107975A (en) Control method and device of equipment, storage medium and electronic device
CN114884975B (en) Service message processing method and device, storage medium and electronic device
CN116383172A (en) Data backtracking method, storage medium and electronic device
CN116431333A (en) Execution method and device of task to be executed, storage medium and electronic device
CN117749843A (en) Scene triggering method and device, storage medium and electronic device
CN115296977B (en) Fault information processing method and device, storage medium and electronic device
CN112511579A (en) Event notification method, system, server device, computer storage medium
CN117930668A (en) Method and device for sending operation instruction, storage medium and electronic device
CN115296950B (en) Prompt method for self-cleaning of equipment, storage medium and electronic device
CN114938365B (en) Function module updating method and device, storage medium and electronic device
CN117527459A (en) Control method and device of intelligent equipment, storage medium and electronic device
CN117914788A (en) Message current limiting processing method and device for intelligent household equipment
CN115296947B (en) Control command response method and device, storage medium and electronic device
CN116483449A (en) Equipment awakening method and device, storage medium and electronic device
CN115174289B (en) Log data storage method and device, storage medium and electronic device
CN115296948B (en) Scene information updating method and device, storage medium and electronic device
CN116436861A (en) Message sending method and device, storage medium and electronic device
CN115047797A (en) Equipment operation method and device combined with behavior preference and storage medium
CN116467070A (en) Task processing method and device, storage medium and electronic device
CN116737337A (en) Log sending method and device, storage medium and electronic equipment

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