CN110618839A - Reminding method and device and computer storage medium - Google Patents

Reminding method and device and computer storage medium Download PDF

Info

Publication number
CN110618839A
CN110618839A CN201810632327.9A CN201810632327A CN110618839A CN 110618839 A CN110618839 A CN 110618839A CN 201810632327 A CN201810632327 A CN 201810632327A CN 110618839 A CN110618839 A CN 110618839A
Authority
CN
China
Prior art keywords
consumption
detected
container
current
measured
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
CN201810632327.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.)
Foshan Shunde Midea Electrical Heating Appliances Manufacturing Co Ltd
Original Assignee
Foshan Shunde Midea Electrical Heating Appliances Manufacturing 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 Foshan Shunde Midea Electrical Heating Appliances Manufacturing Co Ltd filed Critical Foshan Shunde Midea Electrical Heating Appliances Manufacturing Co Ltd
Priority to CN201810632327.9A priority Critical patent/CN110618839A/en
Publication of CN110618839A publication Critical patent/CN110618839A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Medical Treatment And Welfare Office Work (AREA)

Abstract

The embodiment of the invention discloses a reminding method, which comprises the following steps: acquiring a container identifier for containing an object to be detected and the current residual amount of the object to be detected; acquiring a historical consumption record of the object to be measured matched with the container identifier according to the container identifier, wherein the historical consumption record of the object to be measured comprises consumption amounts used for indicating the object to be measured to respectively correspond to each historical time point; determining the expected consumption of the object to be measured within a set time length after the current time according to the historical consumption record of the object to be measured; and sending out a reminding message when the expected consumption of the object to be detected and the current residual quantity of the object to be detected meet the set conditions. The embodiment of the invention also discloses a reminding device and a computer storage medium.

Description

Reminding method and device and computer storage medium
Technical Field
The invention relates to the field of smart home, in particular to a reminding method and device and a computer storage medium.
Background
In daily life, a user often encounters a problem that when cooking is prepared, the user needs to rush to purchase food materials or borrow food materials from neighbors due to the fact that the food materials such as rice or vegetables are insufficient. For example, the user has eaten rice at noon, but when preparing to cook rice at night, finds that the amount of remaining rice in the rice box is not sufficient for eating at night.
Disclosure of Invention
In view of this, embodiments of the present invention provide a reminding method, a device and a computer storage medium capable of avoiding inconvenience to a user due to insufficient objects to be tested.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a reminding method, where the method includes:
acquiring a container identifier for containing an object to be detected and the current residual amount of the object to be detected;
acquiring a historical consumption record of the object to be measured matched with the container identifier according to the container identifier, wherein the historical consumption record of the object to be measured comprises consumption amounts used for indicating the object to be measured to respectively correspond to each historical time point;
determining the expected consumption of the object to be measured within a set time length after the current time according to the historical consumption record of the object to be measured;
and sending out a reminding message when the expected consumption of the object to be detected and the current residual quantity of the object to be detected meet the set conditions.
In the foregoing solution, the determining the expected consumption of the object to be tested within a set time period after the current time according to the historical consumption record of the object to be tested includes:
determining that a non-working day and a working day are included in a set time length after the current time, obtaining a first target expected consumption of the object to be tested on the non-working day included in the set time length after the current time according to the consumption of the object to be tested corresponding to the historical non-working day in the historical consumption record of the object to be tested, and obtaining a second target expected consumption of the object to be tested on the working day included in the set time length after the current time according to the consumption of the object to be tested corresponding to the historical working day in the historical consumption record of the object to be tested;
and determining the expected consumption of the object to be tested in a set time length after the current time according to the first target expected consumption and the second target expected consumption.
In the above scheme, the method further comprises:
acquiring the current position of the container, and determining the climate environment where the container is currently corresponding according to the current position and the current time;
the determining the expected consumption of the object to be tested within a set time length after the current time according to the historical consumption record of the object to be tested comprises the following steps:
and determining a set time length according to the climate environment where the container is currently corresponding to, and determining the expected consumption of the object to be tested in the set time length after the current time according to the historical consumption record of the object to be tested.
In the above scheme, the method further comprises:
acquiring target brand information and receiving information of the object to be detected;
determining relevant resource information of a resource provider which provides the object to be detected within the set time length after the current time and aims at the object to be detected, and determining a target resource provider according to the relevant resource information;
and sending order information to the target resource provider, wherein the order information carries the purchase quantity, the target brand information and the receiving information of the object to be detected.
In the above-mentioned scheme, the obtaining target brand information and the receiving information of the object to be measured includes:
acquiring a historical order record of the object to be detected;
and determining target brand information and receiving information of the object to be detected according to the historical order record of the object to be detected.
In the above-mentioned scheme, acquire the container sign that holds the determinand with the current surplus of determinand includes:
acquiring current consumption data of the object to be detected, wherein the current consumption data carries a container identifier for containing the object to be detected, consumption time and consumption;
and updating the current residual quantity of the object to be detected according to the current consumption data of the object to be detected.
In a second aspect, an embodiment of the present invention provides a reminding method, which is applied to a container for containing an object to be detected, and the method includes:
when a first preset operation on the container is detected, detecting the current quantity of the object to be detected to obtain first detection data;
when second preset operation on the container is detected, detecting the current quantity of the object to be detected to obtain second detection data, and sending the first detection data and the second detection data to corresponding terminals or cloud servers, and/or sending the difference value of the first detection data and the second detection data to corresponding terminals or cloud servers.
In a third aspect, an embodiment of the present invention provides a reminding apparatus, including:
the first acquisition module is used for acquiring a container identifier for containing an object to be detected and the current residual amount of the object to be detected;
the second obtaining module is used for obtaining a historical consumption record of the object to be measured matched with the container identifier according to the container identifier, wherein the historical consumption record of the object to be measured comprises consumption amounts used for indicating the object to be measured to respectively correspond to historical time points;
the processing module is used for determining the expected consumption of the object to be measured within a set time length after the current time according to the historical consumption record of the object to be measured;
and the first sending module is used for sending out a reminding message when the expected consumption of the object to be detected and the current residual quantity of the object to be detected meet the set conditions.
In a fourth aspect, an embodiment of the present invention provides a reminding device, including:
the detection module is used for detecting the current amount of the object to be detected to obtain first detection data when a first preset operation on the container is detected; when a second preset operation on the container is detected, detecting the current quantity of the object to be detected to obtain second detection data;
the second sending module is configured to send the first detection data and the second detection data to corresponding terminals or cloud servers, and/or send a difference value between the first detection data and the second detection data to corresponding terminals or cloud servers.
In a fifth aspect, an embodiment of the present invention provides a reminding device, including: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is configured to implement the reminding method of the first aspect or the second aspect when running the computer program.
In a sixth aspect, an embodiment of the present invention provides a computer storage medium, which stores a computer program, and when the computer program is executed by a processor, the method for reminding according to the first aspect or the second aspect is implemented.
According to the reminding method, the reminding device and the computer storage medium provided by the embodiment of the invention, the container identification for containing the object to be detected and the current residual amount of the object to be detected are obtained; acquiring a historical consumption record of the object to be measured matched with the container identifier according to the container identifier, wherein the historical consumption record of the object to be measured comprises consumption amounts used for indicating the object to be measured to respectively correspond to each historical time point; determining the expected consumption of the object to be measured within a set time length after the current time according to the historical consumption record of the object to be measured; and sending out a reminding message when the expected consumption of the object to be detected and the current residual quantity of the object to be detected meet the set conditions. Therefore, when the current residual amount of the object to be tested and the expected consumption amount of the object to be tested meet the set conditions, namely the current residual amount of the object to be tested is not enough to maintain the consumption within the set time after the current time, a reminding message is sent out in time to remind a user of knowing the condition that the current residual amount of the object to be tested is not enough in advance, the user can be conveniently and reasonably arranged daily according to the corresponding condition, and inconvenience caused by the fact that the object to be tested is not enough is avoided.
Drawings
FIG. 1 is a schematic diagram of an application environment of a reminding method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an application environment of a reminding method according to another embodiment of the present invention;
FIG. 3 is a schematic diagram of an application environment of a reminding method according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of a cloud server according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
FIG. 6 is a flowchart illustrating a reminding method according to an embodiment of the present invention;
FIG. 7 is a flowchart illustrating a reminding method according to another embodiment of the present invention;
FIG. 8 is a schematic structural diagram of a reminder device according to an embodiment of the present invention;
FIG. 9 is a schematic structural diagram of a reminder device according to another embodiment of the present invention;
FIG. 10 is a schematic structural view of an intelligent rice bin according to an embodiment of the present invention;
fig. 11 is a flowchart illustrating a reminding method according to an embodiment of the present invention.
Detailed Description
The technical scheme of the invention is further elaborated by combining the drawings and the specific embodiments in the specification. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
Fig. 1 is a schematic view of an optional application environment of the reminding method according to the embodiment of the present invention, including a container 110 for containing an object to be detected and a cloud server 120, where the container 110 is an intelligent container with data acquisition and communication functions, and the container 110 is connected to the cloud server 120 through a network 130. The container 110 collects current consumption data of the object to be measured, and sends the current consumption data of the object to be measured, which carries the container identifier, the consumption time, and the consumption amount of the object to be measured, to the cloud server 120 through the network 130. After acquiring the container identifier for containing the object to be tested and the current residual amount of the object to be tested, the cloud server 120 determines the expected consumption amount of the object to be tested within a set time length after the current time according to the historical consumption record of the object to be tested matched with the container identifier, and sends out a reminding message when the expected consumption amount of the object to be tested and the current residual amount of the object to be tested meet the set conditions. Therefore, the problem that inconvenience is caused to a user due to the fact that the object to be detected is not enough is solved, and reliability and accuracy of reminding are improved. The container 110 may be an intelligent rice bin for containing rice, an intelligent oil cylinder for containing oil, or the like, which can contain a corresponding object to be tested, and the cloud server 120 may be a logical server formed by virtualizing one physical server or a plurality of physical servers, or may be a server cluster formed by a plurality of servers capable of communicating with each other.
Fig. 2 is a schematic diagram of another optional application environment of the reminding method according to the embodiment of the present invention, including a container 110 for containing an object to be measured and a terminal 140, where the container 110 is an intelligent container with data acquisition and communication functions, and the container 110 is connected to the terminal 140 through a network 130 or bluetooth. The container 110 collects current consumption data of the object to be measured, and sends the current consumption data of the object to be measured, which carries the container identifier, the consumption time, and the consumption amount of the object to be measured, to the terminal 140 through the network 130 or bluetooth. After acquiring a container identifier for containing an object to be measured and the current residual amount of the object to be measured, the terminal 140 determines the expected consumption amount of the object to be measured within a set time length after the current time according to the historical consumption record of the object to be measured matched with the container identifier, and sends out a reminding message when the expected consumption amount of the object to be measured and the current residual amount of the object to be measured meet set conditions. Therefore, the problem that inconvenience is caused to a user due to the fact that the object to be detected is not enough is solved, and reliability and accuracy of reminding are improved. The container 110 may be an intelligent rice box for containing rice, an intelligent oil cylinder for containing oil, or the like, and may contain a corresponding object to be measured, and the terminal 140 may be an intelligent device such as a personal computer, a mobile phone, a tablet computer, or the like.
Fig. 3 is a schematic view of another optional application environment of the reminding method according to the embodiment of the present invention, including a container 110 for containing an object to be detected, a cloud server 120, and a terminal 140, where the container 110 is an intelligent container with data acquisition and communication functions, the container 110 is connected to the terminal 140 through a network 130 or bluetooth, and the terminal 140 is connected to the cloud server 120 through the network 130. The container 110 collects current consumption data of an object to be tested, sends the current consumption data of the object to be tested carrying container identification, consumption time and consumption of the object to be tested to the terminal 140 through the network 130 or the bluetooth, and the terminal 140 sends the current consumption data of the object to be tested to the cloud server 120 through the network 130. After acquiring the container identifier for containing the object to be tested and the current remaining amount of the object to be tested, the cloud server 120 determines the expected consumption amount of the object to be tested within a set time length after the current time according to the historical consumption record of the object to be tested matched with the container identifier, and sends a reminding message to the terminal 140 when the expected consumption amount of the object to be tested and the current remaining amount of the object to be tested meet the set conditions. Therefore, the problem that inconvenience is caused to a user due to the fact that the object to be detected is not enough is solved, and reliability and accuracy of reminding are improved. The container 110 may be an intelligent rice bin for containing rice, an intelligent oil cylinder for containing oil, and the like, and may contain a device corresponding to an object to be measured, the terminal 140 may be an intelligent device such as a personal computer, a mobile phone, a tablet computer, and the like, and the cloud server 120 may be a logical server formed by a physical server or a plurality of physical servers in a virtual manner, or may be a server cluster formed by a plurality of servers capable of communicating with each other.
Here, the container 110 may include a gravity sensor for acquiring current consumption data of the object, and a communication module connected to the gravity sensor for performing network communication with the cloud server 120 and the terminal 140, and receiving or sending data, for example, sending first detection data, that is, current consumption data of the object, to the cloud server 120 or the terminal 140. The container 110 may further include a display module for displaying the reminding message sent by the cloud server 120. The display module may be a display screen, and the display screen may be a touch screen.
As shown in fig. 4, which is an optional schematic structural diagram of the cloud server 120 in fig. 1 and fig. 3, the cloud server 120 includes a processor, a storage medium, a memory, and a network interface, which are connected through a system bus, and the storage medium stores therein a reminding device for implementing the reminding method applied to the cloud server 120 provided in the embodiment of the present application. The processor has computing and control capabilities to support the operation of the entire cloud server 120. The memory in the cloud server 120 is used to provide an environment for the operation of the reminder device in the storage medium, and the network interface is used to perform network communication with the container 110 and/or the terminal 140, and receive or send data, for example, receive current consumption data of the object to be tested sent by the container 110.
As shown in fig. 5, which is an optional structural schematic diagram of the terminal 140 in fig. 2 and fig. 3, the terminal 140 includes a processor, a storage medium, a memory, a network interface, a display screen, and an input device, which are connected through a system bus, where the storage medium stores an operating system and a prompting apparatus for implementing the prompting method applied to the terminal 140 provided in the embodiment of the present application. The processor has computing and control capabilities for supporting the operation of the entire terminal 140. The memory in the terminal 140 is used to provide an environment for the operation of the reminder in the storage medium, and the network interface is used to perform network communication with the container 110 and/or the cloud server 120, and receive or transmit data, for example, obtain current consumption data of the object to be tested, and/or transmit the current consumption data of the object to be tested to the cloud server 120. The display screen is used for displaying the reminding message, and the input device is used for receiving a command or data input by a user, for example, receiving a user operating a client corresponding to the container 110 to run the client. For a terminal 140 with a touch screen, the display screen and input device may be a touch screen.
As shown in fig. 6, in one embodiment, a reminding method is provided, which can be applied to the container 110 in fig. 1 to 3, and the method includes:
s101: when a first preset operation on the container is detected, detecting the current quantity of the object to be detected to obtain first detection data;
here, the first preset operation on the container may be a preset operation on a setting portion of the container or a setting key, such as an operation of opening the container by a user. In an optional embodiment, the container comprises a container body with a containing cavity and a container cover covering the container body, and a data acquisition device for acquiring data is arranged on the container body or the container cover. The data acquisition device comprises a cover opening detection device, the cover opening detection device can comprise an infrared sensor, a pressure sensor or a magnetic circuit and the like, and the detection of the first preset operation on the container can be that the container cover is not covered on the container body. For example, when infrared rays emitted downward from an infrared sensor attached to the inside of the container lid are not reflected, it is determined that the container lid is not covered on the container body. Or, when the pressure generated by a pressure sensor which is installed on the container body and is contacted with the container cover is smaller than a set pressure threshold value, if the pressure generated by the pressure sensor is equal to zero, the container cover is judged not to cover the container body.
In an optional embodiment, the data acquisition device further comprises an electronic scale, a pressure sensor or a camera capable of detecting the current amount of the object to be measured contained in the container. For example, the container weighs the object to be measured by an electronic scale, and obtains the current amount of the object to be measured in the container. Or the container detects the height of the object to be measured in the container through the pressure sensor, and the current amount of the object to be measured in the container is estimated according to the volume of the container and the height of the object to be measured. The first detection data may be a value corresponding to the current amount of the object to be measured directly, or may also be other detection data capable of obtaining the value corresponding to the current amount of the object to be measured, such as a pressure value measured by a pressure sensor or a picture obtained by a camera. In this embodiment, the first detection data includes a value corresponding to a current amount of the object to be measured in the container when the first preset operation on the container is detected, that is, a current remaining amount. The first detection data may also include a time at which the first predetermined operation on the container was detected and may also include a container identification. The time when the first preset operation on the container is detected may be used as the consumption time of the analyte.
S102: when second preset operation on the container is detected, detecting the current quantity of the object to be detected to obtain second detection data, and sending the first detection data and the second detection data to corresponding terminals or cloud servers, and/or sending the difference value of the first detection data and the second detection data to corresponding terminals or cloud servers.
Here, the second preset operation on the container may be a preset operation on a setting portion of the container or a setting key, such as an operation of closing the container by a user. In an optional embodiment, the container comprises a container body with a containing cavity and a container cover covering the container body, and a data acquisition device for acquiring data is arranged on the container body or the container cover. The data acquisition device comprises a cover closing detection device, the cover closing detection device can comprise an infrared sensor, a pressure sensor or a magnetic circuit and the like, and the detection of the second preset operation on the container can be that the container is covered on the container body. For example, when infrared rays emitted downward from an infrared sensor attached to the inside of the container lid are reflected, it is determined that the container lid is closed on the container body. Or, when the pressure generated by a pressure sensor which is installed on the container body and is contacted with the container cover is larger than a set pressure threshold value, if the pressure generated by the pressure sensor is larger than zero, the container cover is judged to be covered on the container body.
In an optional embodiment, the data acquisition device further comprises an electronic scale, a pressure sensor or a camera capable of detecting the current amount of the object to be measured contained in the container. For example, the container weighs the object to be measured by an electronic scale, and obtains the current amount of the object to be measured in the container. Or the container detects the height of the object to be measured in the container through the pressure sensor, and the current amount of the object to be measured in the container is estimated according to the volume of the container and the height of the object to be measured. The second detection data may be a value corresponding to the current amount of the object to be detected directly, or may also be other detection data capable of obtaining the value corresponding to the current amount of the object to be detected, such as a pressure value measured by a pressure sensor or a picture obtained by a camera. In this embodiment, the second detection data includes a numerical value corresponding to the current amount of the object to be measured in the container when the second preset operation on the container is detected, that is, the current remaining amount, and the second detection data may further include time for detecting the second preset operation on the container, and may also include a container identifier. The time when the second preset operation on the container is detected can be used as the consumption time of the object to be measured.
Here, when the first detection data includes a current amount of the test object in the container at the time of detection of the first preset operation on the container and the second detection data includes a current amount of the test object in the container at the time of detection of the second preset operation on the container, a difference between the first detection data and the second detection data represents an amount of the test object taken out of the container between the detection of the first preset operation on the container and the detection of the second preset operation on the container. The object to be measured is rice, the container is a rice box, a rice box cover is detected to be opened from the rice box body in 2018, 1 month and 1 day 11:01:00, at the moment, 18 kg of rice is contained in the rice box, and the rice box cover is detected to be covered on the rice box body again in 2018, 1 month and 1 day 11:03:00, at the moment, 17 kg of rice is contained in the rice box, so that the situation that 1 kg of rice is taken out from the rice box in 2018, 1 month and 1 day 11:01: 00-11: 03:00 can be known. It is to be understood that a time period between a time when the first preset operation on the container is detected and a time when the second preset operation on the container is detected may be a consumption time of the object, and a difference value between the first detection data and the second detection data may be a consumption amount corresponding to the consumption time.
In summary, in the reminding method provided in the above embodiment, when the first preset operation on the container is detected, the current amount of the object to be detected is detected to obtain the first detection data; when the second preset operation of the container is detected, the current amount of the object to be detected is detected to obtain second detection data, the first detection data and the second detection data are sent to the corresponding terminal or cloud server, and/or the difference value of the first detection data and the second detection data is sent to the corresponding terminal or cloud server, so that the terminal or cloud server is informed of the current surplus of the object to be detected in the container in time, a reminding message can be sent out in time when the current surplus of the object to be detected in the container is insufficient through the terminal or cloud server, and inconvenience caused by the shortage of the object to be detected for a user is avoided.
In an optional embodiment, the method further comprises:
acquiring the position of the container;
and sending the position of the container to a corresponding terminal or a cloud server.
Here, the container further includes a global positioning system module or a beidou satellite navigation module for acquiring a position of the container. The position of the container is sent to a corresponding terminal or cloud server, so that the terminal or cloud server can acquire information such as a climate environment where the container is currently corresponding according to the position of the container. For example, a terminal or a cloud server may query a weather condition corresponding to a current time or a future set time period according to the position of the container, so as to obtain a weather environment where the container is currently located.
As shown in fig. 7, in another embodiment, a reminding method is provided, which can be applied to the cloud server 120 in fig. 1, or the terminal 140 in fig. 2, or the cloud server 120 and the terminal 140 in fig. 3, and the method includes:
s201: acquiring a container identifier for containing an object to be detected and the current residual amount of the object to be detected;
in an optional embodiment, the acquiring the container identifier for containing the object to be tested and the current remaining amount of the object to be tested includes: acquiring current consumption data of the object to be detected, wherein the current consumption data carries a container identifier for containing the object to be detected, consumption time and consumption; and updating the current residual quantity of the object to be detected according to the current consumption data of the object to be detected.
Here, the obtaining of the current consumption data of the object to be measured may be that the terminal receives the current consumption data of the object to be measured sent by a container holding the object to be measured, or the cloud server receives the current consumption data of the object to be measured sent by a terminal establishing a communication connection with the container holding the object to be measured. The consumption amount in the current consumption data of the object to be measured may refer to a remaining amount of the object to be measured before the object to be measured is currently taken out from the container and a remaining amount of the object to be measured after the object to be measured is currently taken out from the container, or may refer to an amount of the object to be measured currently taken out from the container, i.e., a difference between the remaining amount of the object to be measured before the object to be measured is taken out from the container and the remaining amount of the object to be measured after the object to be measured is. The container identifier is used for uniquely identifying the container containing the object to be detected, and can be a number uniquely corresponding to the container, a two-dimensional code uniquely corresponding to the container, an internet protocol address of a network connected uniquely corresponding to the container, and the like. The elapsed time may be a current time from the beginning of the sample removal from the container, a current time from the completion of the sample removal from the container, or a current time period from the beginning of the sample removal from the container to the completion of the sample removal from the container. The time for starting to take the object to be measured from the container can be the time for detecting that the container cover is not covered on the container body, and the time for finishing taking the object to be measured from the container can be the time for detecting that the container cover is covered on the container body again. The consumption amount refers to the amount of the object to be measured in the container which is consumed currently, namely the amount of the object to be measured which is taken out of the container currently.
Here, the updating of the current remaining amount of the object to be measured according to the current consumption data of the object to be measured may be directly updating the current remaining amount of the object to be measured according to the remaining amount of the object to be measured after the object to be measured is taken out from the container in the current consumption data of the object to be measured, or updating the current remaining amount of the object to be measured according to a difference value between the current remaining amount of the object to be measured and the amount of the object to be measured currently taken out from the container, which is stored in a database. Therefore, the current residual quantity of the object to be tested can be updated according to the current consumption data of the object to be tested. Through right the current surplus of determinand in time updates, can in time send out the warning message when the current surplus of determinand is not enough in the container, avoid causing inconvenience for the user because of the not enough of determinand.
In an optional embodiment, after acquiring the current consumption data of the object to be measured, the method further includes: and updating the historical consumption record of the object to be measured matched with the container identifier according to the current consumption data of the object to be measured. Specifically, the cloud server and/or the terminal correspondingly stores the current consumption data of the object to be measured and the container identifier as the historical consumption record of the object to be measured corresponding to the container identifier. And when the cloud server and/or the terminal establishes communication connection with the container, the cloud server and/or the terminal acquires the container identifier, and then a historical consumption record of the object to be measured matched with the container identifier is established in a database according to the container identifier. Taking the object to be measured as rice and the container as a rice box as an example, after the cloud server and/or the terminal obtains the rice box identifier, a historical consumption record of the rice corresponding to the rice box identifier can be established in a database. The historical consumption record of the object to be measured may include consumption amounts respectively corresponding to the object to be measured at each historical time point, and may further include remaining amounts respectively corresponding to the object to be measured at each historical time point. That is, the consumption amount of the object in the container at each historical time point may be recorded in the historical consumption record of the object, or the remaining amount of the object in the container at each historical time point may be recorded in the historical consumption record of the object. The time point can be a specific time, such as 12:01:00 in 2/1/2018, or a time period, such as 12:01: 00-12: 04:00 in 2/1/2018. The updating of the historical consumption record of the object to be tested matched with the container identifier according to the current consumption data of the object to be tested can be realized by adding the current consumption data of the object to be tested to the historical consumption record of the object to be tested, so that the data volume contained in the historical consumption record of the object to be tested is increased, and the accuracy of the result obtained by analyzing the data according to the historical consumption record of the object to be tested is improved.
S202: acquiring a historical consumption record of the object to be measured matched with the container identifier according to the container identifier, wherein the historical consumption record of the object to be measured comprises consumption amounts used for indicating the object to be measured to respectively correspond to each historical time point;
here, the historical consumption record of the object to be measured matching the container identifier may be formed based on the consumption or the remaining amount of the object to be measured in the container reported by the container at each historical time point. In an optional embodiment, the obtaining, according to the container identifier, a historical consumption record of the object to be tested that matches the container identifier includes: the cloud server or the terminal inquires the corresponding relation between the set container identifier and the historical consumption record of the object to be detected according to the container identifier for containing the object to be detected obtained in S201, and obtains the historical consumption record of the object to be detected matched with the container identifier; or, the terminal sends the container identifier for containing the object to be tested obtained in the step S201 to the cloud server, the cloud server queries the corresponding relation between the set container identifier and the historical consumption record of the object to be tested, and the cloud server obtains the historical consumption record of the object to be tested matched with the container identifier and returns the historical consumption record of the object to be tested to the terminal. It can be understood that the processing speed is increased by establishing the corresponding relationship between the container identifier and the historical consumption record of the object to be measured so as to quickly acquire the historical consumption record of the object to be measured matched with the container identifier by querying when needed.
S203: determining the expected consumption of the object to be measured within a set time length after the current time according to the historical consumption record of the object to be measured;
due to the influence of different living habits of different users, the weather environments of users in different areas and other factors, the consumption amounts of the object to be measured at different times may be different, for example, for a working user, the consumption amount of the object to be measured at a working day may be greatly different from the consumption amount of the object to be measured at a non-working day, the consumption amount of the object to be measured at a summer time may be greatly different from the consumption amount of the object to be measured at a winter time, and the like. For example, user a lives alone at home and does not have a meal at home on a weekday, but has a meal at home only on a non-weekday, i.e., user a has substantially zero consumption for rice on weekdays, which may be significantly different than user a's consumption for rice on non-weekdays. Therefore, the expected consumption of the object to be measured in the set time length after the current time is determined according to the historical consumption record of the object to be measured, whether working days and non-working days occur in the set time length after the current time or not, the weather environment and other factors can be comprehensively considered, and the consumption of the object to be measured corresponding to the working days and the non-working days, the consumption of the object to be measured corresponding to each season and other factors are combined, so that the accuracy of predicting the expected consumption of the object to be measured is improved. The set time length can be set according to actual needs, and can be set to be 5 days, 7 days and the like.
In an optional embodiment, the determining, by the cloud server or the terminal, the expected consumption of the object to be tested within a set time period after the current time according to the historical consumption record of the object to be tested includes:
determining that a non-working day and a working day are included in a set time length after the current time, obtaining a first target expected consumption of the object to be tested on the non-working day included in the set time length after the current time according to the consumption of the object to be tested corresponding to the historical non-working day in the historical consumption record of the object to be tested, and obtaining a second target expected consumption of the object to be tested on the working day included in the set time length after the current time according to the consumption of the object to be tested corresponding to the historical working day in the historical consumption record of the object to be tested;
and determining the expected consumption of the object to be tested in a set time length after the current time according to the first target expected consumption and the second target expected consumption.
Here, since the consumption of the object to be measured corresponding to the historical non-working day can substantially reflect the consumption of the object to be measured corresponding to the non-working day, the first target expected consumption of the object to be measured on the non-working day included in the set time period after the current time can be obtained according to the consumption of the object to be measured corresponding to the historical non-working day. Taking the object to be measured as rice, the container as a rice box, and the set time length after the current time includes one saturday and one sunday as an example, if it is known that the average consumption of the saturday in the year is 1 liter and the average consumption of the sunday is 1.5 liters according to the consumption record of the rice in a certain rice box within one year, the first target expected consumption of the non-working day to the rice included in the set time length after the current time is 2.5 liters. It should be noted that, the average consumption of saturday and sunday in a year may also be known from the consumption records of the rice in the rice bin within the year, and the first target expected consumption may be determined based on the average consumption of saturday and sunday. Correspondingly, the consumption of the object to be measured corresponding to the historical working day can basically reflect the consumption of the object to be measured corresponding to the working day, so that the second target expected consumption of the object to be measured on the working day included in the set time length after the current time can be obtained according to the consumption of the object to be measured corresponding to the historical working day. Taking the object to be measured as rice, the container as a rice box, and the set time length after the current time includes one monday and one tuesday as an example, if it is known that the average consumption of the monday in the one year and the average consumption of the tuesday in the one year are 0.8 liters and 1.0 liter according to the consumption record of the rice in a certain rice box within the one year, the second target expected consumption of the working day to the rice included in the set time length after the current time is 1.8 liters. Further, if it is known that the average consumption per day of one week to friday in a year is 0.85 liters from the consumption record of rice in a certain rice box within the year, it is also possible to determine that the second target expected consumption of rice for working days included in a set period of time after the present time is 1.7 liters. By adding the first target expected consumption and the second target expected consumption, the expected consumption of the object to be tested in a set time length after the current time can be determined.
In this way, the expected consumption of the object to be measured in the set time length after the current time is determined according to the consumption of the object to be measured corresponding to the historical non-working day and the consumption of the object to be measured corresponding to the historical working day, and compared with the method that the difference between the consumption of the object to be measured corresponding to the non-working day and the consumption of the object to be measured corresponding to the working day is not considered, the reliability and the accuracy of the expected consumption of the object to be measured are improved.
S204: and sending out a reminding message when the expected consumption of the object to be detected and the current residual quantity of the object to be detected meet the set conditions.
Here, the setting condition may be set according to actual needs, for example, when the expected consumption of the object to be measured is greater than 1.2 times of the current remaining amount of the object to be measured, or when the current remaining amount of the object to be measured is less than the expected consumption of the object to be measured, it may be set that the expected consumption of the object to be measured and the current remaining amount of the object to be measured satisfy the setting condition. The sending of the reminding message may be that the cloud server or the terminal sends the reminding message to the container to trigger the container to display or play the reminding message. In addition, when the reminding method is applied to a cloud server, the sending of the reminding message may be that the cloud server sends the reminding message to the terminal to trigger the terminal to display or play the reminding message, so as to remind a user that the current residual amount of the object to be tested in the container is not enough to maintain the consumption within a set time length after the current time, and inform the user that the object to be tested needs to be purchased in time or the object to be tested needs to be added into the container in time.
In summary, in the reminding method provided in the above embodiment, the expected consumption of the object to be tested within the set duration after the current time is determined according to the historical consumption record of the object to be tested, and when it is determined that the current remaining amount of the object to be tested and the expected consumption of the object to be tested satisfy the set condition, that is, the current remaining amount of the object to be tested is not enough to maintain the consumption within the set duration after the current time, a reminding message is sent out in time to remind the user of knowing the situation that the current remaining amount of the object to be tested is not enough in advance, so that the user can be reasonably arranged daily according to the corresponding situation, for example, the object to be tested is purchased in time or the object to be tested is added into a container in time, and inconvenience.
In an optional embodiment, the method further comprises:
acquiring the current position of the container, and determining the climate environment where the container is currently corresponding according to the current position and the current time;
the determining the expected consumption of the object to be tested within a set time length after the current time according to the historical consumption record of the object to be tested comprises the following steps:
and determining a set time length according to the climate environment where the container is currently corresponding to, and determining the expected consumption of the object to be tested in the set time length after the current time according to the historical consumption record of the object to be tested.
Here, the obtaining of the current position of the container may be that the cloud server or the terminal receives the current position of the container reported by the container, or that the cloud server or the terminal determines the current position according to information such as an internet protocol address of a wireless access hotspot to which the container is accessed. When the reminding method is applied to a cloud server, the current position of the container obtained can also be the current position of the container reported by a receiving terminal of the cloud server. The determining of the climate environment to which the container currently corresponds according to the current location and the current time may be understood that, because the climate environments corresponding to different locations at the same time may be different, the climate environment to which the container currently corresponds may be accurately determined by comprehensively considering the current location and the current time. If the climate environment where the container currently corresponds is determined only according to the current time, an error may occur in the judgment of the climate environment where the container currently corresponds. For example, the climate environments corresponding to san city and rasa city in march are completely different, and if the current time is considered to be march, the climate environment of rasa city is determined to be spring, and at this time, the climate environment of rasa city is actually similar to winter. The quality, the storage time and the like of the object to be measured in the container are influenced by the weather environment corresponding to the container, and the expected consumption of the object to be measured in the set time after the current time is influenced by the set time, so that the quantity of the object to be measured in the container is influenced. Taking the object to be measured as rice and the container as a rice box as an example, assuming that the set time length is set to 15 days, when the residual amount of the rice in the rice box is not enough to maintain the consumption within 15 days, a reminding message of purchasing the rice or a reminding message of adding the rice into the rice box is sent, so that the rice in the rice box can maintain the consumption over 15 days, however, because the air humidity is high in spring, the storage time of the rice is not suitable to be overlong, and the air humidity is low in summer, the storage time of the rice can be properly prolonged. Therefore, the set time length can be set to be 10 days or 5 days and the like in spring, and the set time length can be set to be 15 days or 18 days and the like in summer, so that the rice in the rice box can be ensured to be consumed within the set time length after the current time, the rice in the rice box can be ensured to be stored for proper time in the climate environment where the rice box is currently and correspondingly located, and the quality of the rice is ensured.
Therefore, the set time length is determined according to the climate environment where the container is currently located, so that the object to be measured in the container can be ensured to meet the requirements of users, and the quality of the object to be measured in the container can be ensured.
In an optional embodiment, the method further comprises:
acquiring target brand information and receiving information of the object to be detected;
determining relevant resource information of a resource provider which provides the object to be detected within the set time length after the current time and aims at the object to be detected, and determining a target resource provider according to the relevant resource information;
and sending order information to the target resource provider, wherein the order information carries the purchase quantity, the target brand information and the receiving information of the object to be detected.
Here, the target brand information of the object may include a brand of the object to be purchased, and may further include a feature of the object to be purchased. Taking the object to be measured as rice as an example, the target brand information of the rice can be long-grain rice of a golden dragon fish brand. The receiving information of the object to be tested is the information of the receiver who receives the purchased object to be tested, and can comprise the address of the receiver, the contact phone and the like. The target brand information and the receiving information of the object to be detected can be preset by a user or can be acquired by analyzing the preference, shopping records and the like of the user. In an optional embodiment, the obtaining the target brand information and the receiving information of the object to be tested includes: the cloud server or the terminal acquires a historical order record of the object to be detected; and determining target brand information and receiving information of the object to be detected according to the historical order record of the object to be detected.
It is understood that the historical order record of the object to be tested may be stored in a set database, so as to obtain the historical order record of the object to be tested from the database when needed, or the historical order record of the user may be called from a third-party server according to the user identifier, and the historical order record of the object to be tested may be obtained from the historical order record of the user to be tested. Determining the target brand information and the receiving information of the object to be tested according to the historical order record of the object to be tested, wherein the target brand information and the receiving information of the object to be tested can be obtained by analyzing the historical order record of the object to be tested, counting the brand of which brand is purchased most or the brand of the object to be tested which is purchased most recently, and taking the brand which is purchased most or the brand which is purchased most recently as the target brand information of the object to be tested so as to remind the user of purchasing the object to be tested which accords with the favorite brand of the user. Therefore, the target brand information and the receiving information of the object to be detected are determined through the historical order record of the object to be detected, the obtained target brand information of the object to be detected can better meet the user requirements, and the accuracy is higher.
Here, the relevant resource information of the object to be tested may include a purchase record, a purchase evaluation, a purchase quantity, a purchase price, a purchase reputation of the resource provider of the object to be tested, and the like corresponding to the object to be tested of the resource provider of the object to be tested. In an optional embodiment, the determining a target resource provider according to the related resource information includes: and the cloud server or the terminal selects the resource provider with the most purchase records from the resource providers providing the objects to be tested as the target resource provider. It is to be understood that the resource provider having the most purchase records may be understood as the resource provider having the most number of people or orders to purchase the object. Since the testee provided by the resource provider with the most purchase records can be generally accepted, the quality of the purchased testee can be ensured. In an optional embodiment, the determining a target resource provider according to the related resource information includes: and the cloud server or the terminal selects the resource provider with the highest purchase evaluation from the resource providers providing the to-be-tested object as the target resource provider. The resource provider with the highest purchase rating may be understood as the resource provider with the highest goodness, which refers to the proportion of good purchase ratings in all purchase ratings. Thus, the target resource provider is selected according to the purchase evaluation, and the object with satisfactory quality is guaranteed to be purchased. In an optional embodiment, the determining a target resource provider according to the related resource information includes: and the cloud server or the terminal selects the resource provider with the maximum purchase quantity from the resource providers providing the objects to be tested as the target resource provider. The resource provider having the largest purchase quantity may be understood as the resource provider having the largest quantity of the test object sold. In an optional embodiment, the determining a target resource provider according to the related resource information includes: and the cloud server or the terminal selects the resource provider with the lowest purchase price from the resource providers providing the objects to be tested as the target resource provider. Thus, the target resource provider is selected according to the purchase price, and the object to be tested with substantial price is guaranteed to be purchased.
Here, since there may be a purchase benefit day of the object, such as kyoto 618, dueleven shopping kaleides, etc., within the set time length after the current time, and the price for purchasing the same object on the purchase benefit day is generally lower than the price for purchasing the object on a non-purchase benefit day, the determining may determine, as the target resource provider, the resource provider that provides the resource provider of the object for the object within the set time length after the current time, and determine the target resource provider according to the related resource information, and accordingly, the resource provider that has the lowest purchase price on the purchase benefit day of the object may be determined to be the target resource provider, and accordingly, the transmitting order information to the target resource provider may be transmitting order information to the target resource provider on the purchase benefit day of the object, thereby ensuring that the object to be tested with substantial price is purchased. The sending of the order information to the target resource provider may be sending the order information to a third-party server corresponding to the website information according to the website information of the target resource provider, so that the target resource provider obtains the order information.
The purchase amount of the object to be tested can be set according to actual needs, and can also be obtained according to the historical consumption record of the object to be tested. In an optional embodiment, the method further comprises: determining the daily average consumption of the object to be detected in a preset target time length from the current time according to the historical consumption record of the object to be detected; and determining the purchase amount of the object to be tested according to the daily average consumption of the object to be tested and the set available consumption days. Here, since the container currently corresponds to the daily average consumption of the object to be measured by the influence of the climate environment, taking the object to be measured as rice as an example, the temperature is high in summer and the daily average consumption of the object to be measured is relatively low, and the temperature is low in winter and the daily average consumption of the object to be measured is relatively high. If the purchase amount of the object is set to a fixed value, it may cause that the number of purchases of the object is small in a certain period of time, the object is accumulated in the container for a long time, and the number of purchases of the object is frequent in another period of time, and a warning message is often sent. If the purchase quantity of the object to be tested is set according to the daily average consumption quantity of the object to be tested in the preset target time length from the current time, the object to be tested can be prevented from being accumulated in the container for a long time, and the purchase times can be reasonably controlled. Therefore, the purchase quantity of the object to be tested is determined according to the daily average consumption of the object to be tested in the preset target time length from the current time to the previous time and the set number of available consumption days, the object to be tested in the container can be stored for proper time in the weather environment where the container is currently and correspondingly located, the quality of the object to be tested is guaranteed, and frequent sending of reminding messages can be avoided.
Therefore, after the current residual amount of the object to be tested and the expected consumption amount of the object to be tested meet the set conditions, the order information is automatically sent to the target resource provider of the object to be tested according to the target brand information and the receiving information of the object to be tested, automatic purchase of the object to be tested is achieved, the problem that a user needs to purchase the object to be tested when the object to be tested is insufficient is solved, and the intelligent, convenient and flexible effects are achieved.
In order to implement the foregoing method, this embodiment further provides a reminding device, which is applied to a cloud server or a terminal, and as shown in fig. 8, the reminding device includes: a first obtaining module 10, a second obtaining module 11, a processing module 12 and a first sending module 13; wherein the content of the first and second substances,
the first obtaining module 10 is configured to obtain a container identifier for containing an object to be measured and a current remaining amount of the object to be measured;
the second obtaining module 11 is configured to obtain, according to the container identifier, a historical consumption record of the object to be tested, where the historical consumption record of the object to be tested includes consumption amounts used for indicating that the object to be tested corresponds to each historical time point;
the processing module 12 is configured to determine an expected consumption amount of the object to be measured within a set time length after a current time according to the historical consumption record of the object to be measured;
the first sending module 13 is configured to send a reminding message when the expected consumption of the object to be tested and the current remaining amount of the object to be tested meet set conditions.
In summary, in the reminding device provided in the above embodiment, the expected consumption of the object to be measured within the set duration after the current time is determined according to the historical consumption record of the object to be measured, and when it is determined that the current remaining amount of the object to be measured and the expected consumption of the object to be measured satisfy the set condition, that is, the current remaining amount of the object to be measured is not enough to maintain the consumption within the set duration after the current time, a reminding message is sent out in time to remind a user of knowing the situation that the current remaining amount of the object to be measured is not enough in advance, so that a daily routine is reasonably arranged according to a corresponding situation, for example, the object to be measured is purchased in time or the object to be measured is added into a container in time, and inconvenience caused by.
In an optional embodiment, the processing module 12 is specifically configured to:
determining that a non-working day and a working day are included in a set time length after the current time, obtaining a first target expected consumption of the object to be tested on the non-working day included in the set time length after the current time according to the consumption of the object to be tested corresponding to the historical non-working day in the historical consumption record of the object to be tested, and obtaining a second target expected consumption of the object to be tested on the working day included in the set time length after the current time according to the consumption of the object to be tested corresponding to the historical working day in the historical consumption record of the object to be tested;
and determining the expected consumption of the object to be tested in a set time length after the current time according to the first target expected consumption and the second target expected consumption.
In this way, the expected consumption of the object to be measured in the set time length after the current time is determined according to the consumption of the object to be measured corresponding to the historical non-working day and the consumption of the object to be measured corresponding to the historical working day, and compared with the method that the difference between the consumption of the object to be measured corresponding to the non-working day and the consumption of the object to be measured corresponding to the working day is not considered, the reliability and the accuracy of the expected consumption of the object to be measured are improved.
In an optional embodiment, the first obtaining module 10 is further configured to obtain a current location of the container, and determine, according to the current location and the current time, a climate environment where the container currently corresponds to;
the processing module 12 is specifically configured to: and determining a set time length according to the climate environment where the container is currently corresponding to, and determining the expected consumption of the object to be tested in the set time length after the current time according to the historical consumption record of the object to be tested.
Therefore, the set time length is determined according to the climate environment where the container is currently located, so that the object to be measured in the container can be ensured to meet the requirements of users, and the quality of the object to be measured in the container can be ensured.
In an optional embodiment, the apparatus further comprises: a third obtaining module 14; wherein the content of the first and second substances,
the third obtaining module 14 is configured to obtain target brand information and receiving information of the object to be tested;
the processing module 12 is further configured to determine relevant resource information of a resource provider that provides the object to be tested within the set duration after the current time, the resource provider being for the object to be tested, and determine a target resource provider according to the relevant resource information;
the first sending module 13 is configured to send order information to the target resource provider, where the order information carries the purchase amount of the object to be tested, target brand information, and receiving information.
Therefore, after the current residual amount of the object to be tested and the expected consumption amount of the object to be tested meet the set conditions, the order information is automatically sent to the target resource provider of the object to be tested according to the target brand information and the receiving information of the object to be tested, automatic purchase of the object to be tested is achieved, the problem that a user needs to purchase the object to be tested when the object to be tested is insufficient is solved, and the intelligent, convenient and flexible effects are achieved.
In an optional embodiment, the third obtaining module 14 is specifically configured to:
acquiring a historical order record of the object to be detected;
and determining target brand information and receiving information of the object to be detected according to the historical order record of the object to be detected.
Therefore, the target brand information and the receiving information of the object to be detected are determined through the historical order record of the object to be detected, the obtained target brand information of the object to be detected can better meet the user requirements, and the accuracy is higher.
In an optional embodiment, the first obtaining module 10 is specifically configured to:
acquiring current consumption data of the object to be detected, wherein the current consumption data carries a container identifier for containing the object to be detected, consumption time and consumption;
and updating the current residual quantity of the object to be detected according to the current consumption data of the object to be detected.
Therefore, the current surplus of the object to be tested is timely updated, a reminding message can be timely sent out when the current surplus of the object to be tested in the container is insufficient, and inconvenience caused by the shortage of the object to be tested for a user is avoided.
The present embodiment also provides a computer storage medium, in which a computer program is stored, where the computer storage medium may be a Memory such as a magnetic random access Memory (FRAM), a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM); or may be a variety of devices including one or any combination of the above memories, such as a mobile phone, computer, tablet device, personal digital assistant, etc.
A computer storage medium having a computer program stored therein, the computer program, when executed by a processor, performing the steps of:
acquiring a container identifier for containing an object to be detected and the current residual amount of the object to be detected;
acquiring a historical consumption record of the object to be measured matched with the container identifier according to the container identifier, wherein the historical consumption record of the object to be measured comprises consumption amounts used for indicating the object to be measured to respectively correspond to each historical time point;
determining the expected consumption of the object to be measured within a set time length after the current time according to the historical consumption record of the object to be measured;
and sending out a reminding message when the expected consumption of the object to be detected and the current residual quantity of the object to be detected meet the set conditions.
In an alternative embodiment, the computer program, when executed by the processor, further performs the steps of:
determining that a non-working day and a working day are included in a set time length after the current time, obtaining a first target expected consumption of the object to be tested on the non-working day included in the set time length after the current time according to the consumption of the object to be tested corresponding to the historical non-working day in the historical consumption record of the object to be tested, and obtaining a second target expected consumption of the object to be tested on the working day included in the set time length after the current time according to the consumption of the object to be tested corresponding to the historical working day in the historical consumption record of the object to be tested;
and determining the expected consumption of the object to be tested in a set time length after the current time according to the first target expected consumption and the second target expected consumption.
In an alternative embodiment, the computer program, when executed by the processor, further performs the steps of:
acquiring the current position of the container, and determining the climate environment where the container is currently corresponding according to the current position and the current time;
the determining the expected consumption of the object to be tested within a set time length after the current time according to the historical consumption record of the object to be tested comprises the following steps:
and determining a set time length according to the climate environment where the container is currently corresponding to, and determining the expected consumption of the object to be tested in the set time length after the current time according to the historical consumption record of the object to be tested.
In an alternative embodiment, the computer program, when executed by the processor, further performs the steps of:
acquiring target brand information and receiving information of the object to be detected;
determining relevant resource information of a resource provider which provides the object to be detected within the set time length after the current time and aims at the object to be detected, and determining a target resource provider according to the relevant resource information;
and sending order information to the target resource provider, wherein the order information carries the purchase quantity, the target brand information and the receiving information of the object to be detected.
In an alternative embodiment, the computer program, when executed by the processor, further performs the steps of:
acquiring a historical order record of the object to be detected;
and determining target brand information and receiving information of the object to be detected according to the historical order record of the object to be detected.
In an alternative embodiment, the computer program, when executed by the processor, further performs the steps of:
acquiring current consumption data of the object to be detected, wherein the current consumption data carries a container identifier for containing the object to be detected, consumption time and consumption;
and updating the current residual quantity of the object to be detected according to the current consumption data of the object to be detected.
In order to implement the above method, this embodiment further provides a reminding device, which is applied to a container for containing an object to be tested, as shown in fig. 9, the reminding device includes: a detection module 20 and a second transmission module 21; wherein the content of the first and second substances,
the detection module 20 is configured to detect a current amount of the object to be detected to obtain first detection data when a first preset operation on the container is detected; when a second preset operation on the container is detected, detecting the current quantity of the object to be detected to obtain second detection data;
the second sending module 21 is configured to send the first detection data and the second detection data to corresponding terminals or cloud servers, and/or send a difference between the first detection data and the second detection data to corresponding terminals or cloud servers.
In summary, in the reminding device provided in the above embodiment, when the first preset operation on the container is detected, the current amount of the object to be detected is detected to obtain the first detection data; when the second preset operation of the container is detected, the current amount of the object to be detected is detected to obtain second detection data, the first detection data and the second detection data are sent to the corresponding terminal or cloud server, and/or the difference value of the first detection data and the second detection data is sent to the corresponding terminal or cloud server, so that the terminal or cloud server is informed of the current surplus of the object to be detected in the container in time, a reminding message can be sent out in time when the current surplus of the object to be detected in the container is insufficient by the terminal or cloud server, and inconvenience caused by the shortage of the object to be detected to a user is avoided.
In an optional embodiment, the apparatus further comprises: a fourth acquisition module 22; wherein the content of the first and second substances,
the fourth position obtaining module 22 is configured to obtain a position of the container;
the second sending module 21 is configured to send the position of the container to a corresponding terminal or cloud server.
Therefore, the position of the container is sent to the corresponding terminal or cloud server, so that the terminal or cloud server can acquire the information such as the current corresponding climate environment of the container according to the position of the container.
The embodiment also provides a computer storage medium, wherein the computer storage medium stores a computer program, and the computer storage medium can be a Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk or CD-ROM; or may be a variety of devices including one or any combination of the above memories, such as a mobile phone, computer, tablet device, personal digital assistant, etc.
A computer storage medium having a computer program stored therein, the computer program, when executed by a processor, performing the steps of:
when a first preset operation on the container is detected, detecting the current quantity of the object to be detected to obtain first detection data;
when second preset operation on the container is detected, detecting the current quantity of the object to be detected to obtain second detection data, and sending the first detection data and the second detection data to corresponding terminals or cloud servers, and/or sending the difference value of the first detection data and the second detection data to corresponding terminals or cloud servers.
In an alternative embodiment, the computer program, when executed by the processor, further performs the steps of:
acquiring the position of the container;
and sending the position of the container to a corresponding terminal or a cloud server.
The embodiment of the present invention is further described in detail by using specific examples, in which the object to be measured is rice, the container is an intelligent rice bin, and the cloud server is a cloud. Referring to fig. 10, the structural schematic diagram of the intelligent rice bin in the embodiment of the present invention includes an uncovering/closing detection module 30, a rice quantity detection module 31 and a communication module 32, where the uncovering/closing detection module 30 may include an infrared sensor, a pressure sensor or a magnetic attraction loop, and uncovering and closing detection is performed in a manner of infrared sensing (infrared rays are emitted by the infrared sensor, and if a reflection is detected, it is a closed state, and otherwise, it is an uncovering state), pressure (pressure is generated by detecting whether the pressure sensor generates pressure, and when the cover is closed, the pressure sensor generates pressure, and when the cover is uncovered, the pressure sensor does not generate pressure), magnetic attraction (a circuit loop is generated by attracting an iron sheet through magnetic force, a magnet is far away from the iron sheet in the uncovering state to turn off the circuit loop, and when the cover is closed, the magnet is close. The rice quantity detection module 31 can comprise a gravity sensor, a pressure sensor or a camera, and the rice quantity detection module 31 can also detect the weight of rice in the intelligent rice bin in the following modes: the rice quantity detection module 31 can be a built-in electronic scale, and the bottom of the intelligent rice box is a scale pan; the inner wall of the intelligent rice box is provided with a pressure sensor, and the weight of the rice in the intelligent rice box is estimated by detecting the height of the rice in the intelligent rice box; the intelligent rice box is internally provided with a camera, and the weight of the rice in the intelligent rice box is estimated through the shot pictures in the intelligent rice box. The communication module 32 is configured to send the rice detection data obtained by the rice detection module 31 to a cloud, and the communication module 32 may be specifically implemented by a WiFi communication module, a bluetooth communication module (data is synchronized to the cloud by using terminals such as a bluetooth central control or a mobile phone), a Zigbee communication module (data is synchronized to the cloud by using a Zigbee central control), and the like.
Referring to fig. 11, a schematic flow chart of a reminding method provided in the embodiment of the present invention includes:
s301: the intelligent rice box reports rice data to the cloud;
specifically, when a user opens the intelligent rice box cover to take rice each time, the intelligent rice box detects the operation of opening the rice box cover by the user and records the residual rice amount in the intelligent rice box, when the user closes the intelligent rice box cover, the intelligent rice box detects the operation of closing the rice box cover by the user and records the residual rice amount in the intelligent rice box, and the intelligent rice box sends the current rice taking time T, the current rice taking amount C and the residual rice amount L to the cloud.
S302: calculating the remaining eating days D of the rice in the intelligent rice bin by the cloud;
specifically, the cloud calculates the remaining days D that the remaining rice in the intelligent rice box is edible by the rice taking time T, the rice taking amount C and the remaining rice amount L recorded by the cloud each time the user takes rice, and the remaining days D are equal to the remaining rice amount L divided by the daily average rice taking amount in N days, namely D is L/(the daily average rice taking amount in N days), wherein N is a configurable parameter and the size can be 2-30 days.
S303: the cloud judges whether the number D of the remaining eating days of the rice in the intelligent rice bin is smaller than the alarm value M, if so, S304 is executed, and if not, the operation is ended;
here, the alarm value M may be custom-configured by the user according to the personal and family conditions, for example, an initial default value of the alarm value M may be set to 5 days. The alarm value M can be set individually by a user terminal, such as a mobile phone, that is, after the user logs in the user terminal, the alarm value M is set according to personal preference.
S304: and the cloud sends a notice to remind of purchasing rice.
Here, when the remaining days D is less than the alarm value M, the cloud sends a message to notify the user terminal of the estimated edible days of the remaining rice amount, and at the same time, the intelligent rice bin can be triggered to remind the user in the form of an indicator light or sound.
It should be noted that, since the consumption of the remaining rice amount is not generally in a linear decreasing relationship, the demand of different households for the rice amount increases or decreases when holidays or double-holidays are encountered. The cloud end needs to perform statistical analysis according to the historical rice taking amount of the user on holidays and double holidays, predict the rice consumption, consider the peak time and the purchasing opportunity of holiday purchasing, and appropriately remind the user to purchase rice in advance. For example, in spring festival holidays, malls and logistics may pause business, not buy rice in spring festival holidays, but buy rice in advance of spring festival holidays. Alternatively, considering the peak time of purchase such as spring festival, double 11, etc., the logistics may become slow and the user needs to be reminded to purchase rice ahead of time. In addition, the reminding of the remaining days is combined with the climate environment condition, and rice should be stored less in seasons with high temperature and high humidity, so as to reduce the possibility of rice deterioration. Here, the cloud may learn the climate environment by: one method is that the address of the intelligent rice box is obtained by the modes of a positioning chip, a user contact way (number and address), ID information and signal strength of a wireless access hotspot, a mobile base station, an IP address, account registration information, a historical receiving address and the like, and then the information of the temperature, the humidity and the like of the place where the intelligent rice box is located is obtained by the calling of a weather API; the other method is that a temperature sensor and a humidity sensor are arranged in the intelligent rice box to acquire the temperature and the humidity of the intelligent rice box. The weight of rice purchased in a few bins is reduced, the weight of each rice purchased can be determined by predicting consumable days besides the weight set by a user, the weight of each rice purchased is calculated according to consumable K days (the value of K can be set by the user, the default value is 14 days), and the weight of each rice purchased is close to the average daily consumption of an N balance. If the rice consumption in summer is small and the rice consumption in winter is large, namely the rice consumption in summer is slow and the rice consumption in winter is fast, the weight of buying rice in winter is larger each time.
Here, when the remaining number of days D for eating of rice in the smart rice box reaches the alarm value M, the cloud automatically makes a purchase of rice for each order according to the rice type preference set by the user, and simultaneously notifies the user of receiving logistics. When purchasing rice for the first time, the user can select information such as a channel, a mailing address, rice types, a payment mode and the like of purchasing rice through the user terminal and appoint whether to automatically place an order or not in the later period. After the cloud automatically places the order, the cloud informs the user terminal of the order placing event and the logistics event in a message pushing mode, and automatic rice purchasing is completed.
It should be noted that the reminding method provided by the above embodiment can be applied to intelligent reminding of household consumable goods such as edible oil, soy sauce, washing powder and the like.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and scope of the present invention are included in the protection scope of the present invention.

Claims (11)

1. A method of alerting, the method comprising:
acquiring a container identifier for containing an object to be detected and the current residual amount of the object to be detected;
acquiring a historical consumption record of the object to be measured matched with the container identifier according to the container identifier, wherein the historical consumption record of the object to be measured comprises consumption amounts used for indicating the object to be measured to respectively correspond to each historical time point;
determining the expected consumption of the object to be measured within a set time length after the current time according to the historical consumption record of the object to be measured;
and sending out a reminding message when the expected consumption of the object to be detected and the current residual quantity of the object to be detected meet the set conditions.
2. The method of claim 1, wherein determining the expected consumption of the test object within a set time period after the current time based on the historical consumption record of the test object comprises:
determining that a non-working day and a working day are included in a set time length after the current time, obtaining a first target expected consumption of the object to be tested on the non-working day included in the set time length after the current time according to the consumption of the object to be tested corresponding to the historical non-working day in the historical consumption record of the object to be tested, and obtaining a second target expected consumption of the object to be tested on the working day included in the set time length after the current time according to the consumption of the object to be tested corresponding to the historical working day in the historical consumption record of the object to be tested;
and determining the expected consumption of the object to be tested in a set time length after the current time according to the first target expected consumption and the second target expected consumption.
3. The method of claim 1, further comprising:
acquiring the current position of the container, and determining the climate environment where the container is currently corresponding according to the current position and the current time;
the determining the expected consumption of the object to be tested within a set time length after the current time according to the historical consumption record of the object to be tested comprises the following steps:
and determining a set time length according to the climate environment where the container is currently corresponding to, and determining the expected consumption of the object to be tested in the set time length after the current time according to the historical consumption record of the object to be tested.
4. The method of claim 1, further comprising:
acquiring target brand information and receiving information of the object to be detected;
determining relevant resource information of a resource provider which provides the object to be detected within the set time length after the current time and aims at the object to be detected, and determining a target resource provider according to the relevant resource information;
and sending order information to the target resource provider, wherein the order information carries the purchase quantity, the target brand information and the receiving information of the object to be detected.
5. The method of claim 4, wherein the obtaining of the target brand information and the receiving information of the object to be tested comprises:
acquiring a historical order record of the object to be detected;
and determining target brand information and receiving information of the object to be detected according to the historical order record of the object to be detected.
6. The method of claim 1, wherein the obtaining of the container identifier for the object and the current remaining amount of the object comprises:
acquiring current consumption data of the object to be detected, wherein the current consumption data carries a container identifier for containing the object to be detected, consumption time and consumption;
and updating the current residual quantity of the object to be detected according to the current consumption data of the object to be detected.
7. A reminding method is applied to a container for containing an object to be detected, and is characterized by comprising the following steps:
when a first preset operation on the container is detected, detecting the current quantity of the object to be detected to obtain first detection data;
when second preset operation on the container is detected, detecting the current quantity of the object to be detected to obtain second detection data, and sending the first detection data and the second detection data to corresponding terminals or cloud servers, and/or sending the difference value of the first detection data and the second detection data to corresponding terminals or cloud servers.
8. A reminder device, comprising:
the first acquisition module is used for acquiring a container identifier for containing an object to be detected and the current residual amount of the object to be detected;
the second obtaining module is used for obtaining a historical consumption record of the object to be measured matched with the container identifier according to the container identifier, wherein the historical consumption record of the object to be measured comprises consumption amounts used for indicating the object to be measured to respectively correspond to historical time points;
the processing module is used for determining the expected consumption of the object to be measured within a set time length after the current time according to the historical consumption record of the object to be measured;
and the first sending module is used for sending out a reminding message when the expected consumption of the object to be detected and the current residual quantity of the object to be detected meet the set conditions.
9. A reminder device, comprising:
the detection module is used for detecting the current amount of the object to be detected to obtain first detection data when a first preset operation on the container is detected; when a second preset operation on the container is detected, detecting the current quantity of the object to be detected to obtain second detection data;
the second sending module is configured to send the first detection data and the second detection data to corresponding terminals or cloud servers, and/or send a difference value between the first detection data and the second detection data to corresponding terminals or cloud servers.
10. A reminder device, comprising: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is configured to implement the reminding method according to any one of claims 1 to 7 when running the computer program.
11. A computer storage medium, in which a computer program is stored, which, when executed by a processor, implements the reminder method of any one of claims 1 to 7.
CN201810632327.9A 2018-06-19 2018-06-19 Reminding method and device and computer storage medium Pending CN110618839A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810632327.9A CN110618839A (en) 2018-06-19 2018-06-19 Reminding method and device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810632327.9A CN110618839A (en) 2018-06-19 2018-06-19 Reminding method and device and computer storage medium

Publications (1)

Publication Number Publication Date
CN110618839A true CN110618839A (en) 2019-12-27

Family

ID=68920280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810632327.9A Pending CN110618839A (en) 2018-06-19 2018-06-19 Reminding method and device and computer storage medium

Country Status (1)

Country Link
CN (1) CN110618839A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111223012A (en) * 2020-01-03 2020-06-02 北京辰森世纪科技股份有限公司 Production reminding method, device, equipment and computer readable storage medium
CN112346420A (en) * 2020-11-05 2021-02-09 深圳Tcl新技术有限公司 Consumable detection method, consumable detection device, consumable detection equipment and computer-readable storage medium
CN113622137A (en) * 2021-07-26 2021-11-09 无锡小天鹅电器有限公司 Washing machine, control method and device thereof and storage medium
CN113762909A (en) * 2020-11-26 2021-12-07 北京京东拓先科技有限公司 Reminding method, reminding device, electronic equipment, reminding system and storage medium
CN114766088A (en) * 2020-10-19 2022-07-19 海信视像科技股份有限公司 Receiving apparatus, information processing apparatus, and information processing system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150379463A1 (en) * 2014-06-27 2015-12-31 Ritimukta Sarangi Systems and Methods for a Receptacle and Related Devices
CN105511304A (en) * 2015-11-25 2016-04-20 小米科技有限责任公司 Method and apparatus for prompting user to purchase food material intelligently
CN107634885A (en) * 2017-09-19 2018-01-26 三星电子(中国)研发中心 Equipment for contain things and the method in terminal progress article consumption management

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150379463A1 (en) * 2014-06-27 2015-12-31 Ritimukta Sarangi Systems and Methods for a Receptacle and Related Devices
CN105511304A (en) * 2015-11-25 2016-04-20 小米科技有限责任公司 Method and apparatus for prompting user to purchase food material intelligently
CN107634885A (en) * 2017-09-19 2018-01-26 三星电子(中国)研发中心 Equipment for contain things and the method in terminal progress article consumption management

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111223012A (en) * 2020-01-03 2020-06-02 北京辰森世纪科技股份有限公司 Production reminding method, device, equipment and computer readable storage medium
CN114766088A (en) * 2020-10-19 2022-07-19 海信视像科技股份有限公司 Receiving apparatus, information processing apparatus, and information processing system
CN112346420A (en) * 2020-11-05 2021-02-09 深圳Tcl新技术有限公司 Consumable detection method, consumable detection device, consumable detection equipment and computer-readable storage medium
CN113762909A (en) * 2020-11-26 2021-12-07 北京京东拓先科技有限公司 Reminding method, reminding device, electronic equipment, reminding system and storage medium
CN113622137A (en) * 2021-07-26 2021-11-09 无锡小天鹅电器有限公司 Washing machine, control method and device thereof and storage medium

Similar Documents

Publication Publication Date Title
CN110618839A (en) Reminding method and device and computer storage medium
US9922530B2 (en) Method and device for generating information
US10267667B2 (en) Sensor device configuration
US10664796B2 (en) Inventory management device
US10683198B2 (en) Beverage dispensing apparatus and method
KR20210129262A (en) Managed inventory
CN105747772A (en) Intelligent water cup system and intelligent water cup
US11274955B2 (en) Fouling mitigation and measuring vessel with container fill sensor
US20150379463A1 (en) Systems and Methods for a Receptacle and Related Devices
US20200033179A1 (en) Using a provided indication of fill level to track amount of content in a container
US10909610B1 (en) Method, system and computer-readable medium for automatic replenishment of items utilizing a sensor-based device
US10986475B1 (en) Consumable product storage system that monitors product consumption
US11138555B2 (en) Remotely programming an inventory management device to measure usage of material
KR102376301B1 (en) system for a platform that provides food recommendation and marketing services based on big data
CN111971700A (en) System and method for tracking promotions
JP2019138493A (en) Refrigerator, commodity order placement method and commodity order placement system
US11982557B2 (en) Apparatus, system, and method of providing a solids level monitor
WO2018045839A1 (en) Shopping trigger method and device for intelligent refrigerator, and computer-readable storage medium
CN109284951B (en) Address information processing method and device
CN110881877A (en) Device and method for controlling use amount of seasoning
CN108765063A (en) The generation method and device of order form
US20220027851A1 (en) Automated Beverage Monitoring System
US11939139B2 (en) Apparatus, system, and method of providing a sheet product replenishment monitor
CN112393521A (en) Refrigerator remote food selling and purchasing control method and refrigerator
JP7487545B2 (en) USAGE INFORMATION MANAGEMENT SYSTEM, USAGE INFORMATION MANAGEMENT METHOD, PROGRAM, AND SERVER DEVICE

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: 20191227