CN111262899A - Method for monitoring refrigerator temperature based on small program - Google Patents

Method for monitoring refrigerator temperature based on small program Download PDF

Info

Publication number
CN111262899A
CN111262899A CN201811465971.8A CN201811465971A CN111262899A CN 111262899 A CN111262899 A CN 111262899A CN 201811465971 A CN201811465971 A CN 201811465971A CN 111262899 A CN111262899 A CN 111262899A
Authority
CN
China
Prior art keywords
temperature
refrigerator
small program
request
data
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
CN201811465971.8A
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.)
Zhuhai Hengqin Shengda Zhaoye Technology Investment Co Ltd
Original Assignee
Zhuhai Hengqin Shengda Zhaoye Technology Investment 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 Zhuhai Hengqin Shengda Zhaoye Technology Investment Co Ltd filed Critical Zhuhai Hengqin Shengda Zhaoye Technology Investment Co Ltd
Priority to CN201811465971.8A priority Critical patent/CN111262899A/en
Publication of CN111262899A publication Critical patent/CN111262899A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • 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]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Cold Air Circulating Systems And Constructional Details In Refrigerators (AREA)

Abstract

The invention relates to the field of WeChat small programs, in particular to a method for monitoring the temperature of a refrigerator based on a small program. The method of the present invention includes the following steps.1. interface according to the refrigerator temperature provided by the intelligent refrigerator supplier. 2. A Quartz task is defined by the applet background. 3. An http parent object is created and a request instance is created. And 4, configuring the request into the Quartz, and sending the request to the refrigerator temperature interface at regular time to acquire data. 5. And analyzing and processing the obtained data and storing the data in a cloud server. 6. When a user opens the small program, the background sends a request to the refrigerator, acquires the current temperature display and uploads the current temperature display to the cloud server. 7. And sending a request to a server to acquire the temperature data of the conventional refrigerator. 8. The canvas xpress plug-in is introduced to present the data to the user in a graphical form. The invention interacts with the refrigerator temperature database through the WeChat small program, thereby realizing the capture of the refrigerator temperature change. The method provides a quick and easy service for the user, and the user only needs to take out the mobile phone at idle time to easily master the change information of the refrigerator temperature.

Description

Method for monitoring refrigerator temperature based on small program
Technical Field
The invention relates to the field of WeChat small programs, in particular to a method for monitoring the temperature of a refrigerator based on the WeChat small programs.
Background
The popularization of the internet makes the WeChat rise, but people's life seems to leave the WeChat, the WeChat occupies a large amount of fragmentary time, hang the program under the WeChat, when playing the WeChat, the information that wants to know is grasped carelessly.
Disclosure of Invention
The method mainly comprises the steps that a Quartz timing task sends a request to a refrigerator at regular time, temperature data are obtained and stored in a cloud server, a temperature monitoring module requests the cloud server, and the obtained data are displayed to a user in a chart mode.
The specific technical scheme for solving the technical problems is as follows:
the invention must first define a Quartz task in the applet background. And then creating an http client object and a request instance, and configuring the request method instance into a timing task. And according to the task of timing Quartz, acquiring refrigerator temperature information at regular time and storing the information in a cloud server. And acquiring current temperature information of the refrigerator according to the state of the small program, storing the current temperature information into a cloud server, and displaying the current temperature and the past temperature to a user in a chart form.
The method comprises the following steps:
step 1, defining a Quartz task:
(1) creating a Quartz configuration class in the project;
(2) the QuartTconfigurationl class is annotated with @ EnableScheduling.
Step 2, creating an HttpClient object and requesting a method instance:
(1) creating an http request class and an HttpRequest method;
(2) new an htttpclient object;
(3) a new Httppost object HttpPost transmits a request address, and sets request parameters;
(4) execute httpclient. execu (httpPost).
Step 3, configuring the request method into a Quartz task:
(1) creating a request method in a Quartz configuration class;
(2) adding an annotation @ Scheduled to a requestMethod to specify an execution time;
(3) the httpRequest method in the HttpRequest class is called in the requestMethod.
Step 4, acquiring refrigerator temperature information at regular time according to a task of the Quartz at regular time, and storing the refrigerator temperature information in a cloud server:
(1) obtaining data according to an httpRequest method, and converting the data into a Json data type;
(2) the second step is that: and storing the processed data into a server through sql.
And 5, acquiring the current refrigerator temperature according to the small program state, wherein the specific implementation of the current refrigerator temperature is as follows:
when the user opens the small program to obtain the temperature page of the refrigerator, a request is sent out immediately to obtain data.
Step 6, obtaining the current refrigerator temperature, and storing the current refrigerator temperature in the server to realize the following steps:
(1) converting the data obtained in the step 5 into a Json type;
(2) and storing the processed data into the server through sql.
Step 7, displaying the current temperature and the past temperature in an icon mode to realize the following concrete steps:
(1) the small program requests a server through Url to obtain temperature data;
(2) the canvas xpress plug-in was introduced to present the data graphically.
The invention has the beneficial effects that: and acquiring the data by utilizing the cloud terminal and storing the data. And reading the data to provide the small program display according to the request of the user. The method is efficient, convenient and fast, and the data storage, reading and display are completed.
The user can get the information of the refrigerator temperature in real time, and the problem that the temperature of the refrigerator cannot be obtained when the user is in other places is effectively solved.
Drawings
The invention is further described below with reference to the accompanying drawings:
FIG. 1 is a flow chart of the method of the present invention.
Detailed Description
Step 1, defining a Quartz task:
(1) creating a Quartz configuration class in the project;
(2) the QuartTconfigurationl class is annotated with @ EnableScheduling.
Step 2, creating an HttpClient object and requesting a method instance:
(1) creating an http request class and an HttpRequest method;
(2) new an htttpclient object;
(3) a new Httppost object HttpPost transmits a request address, and sets request parameters;
(4) execute httpclient. execu (httpPost).
Step 3, configuring the request method into a Quartz task:
(1) creating a request method in a Quartz configuration class;
(2) adding an annotation @ Scheduled to a requestMethod to specify an execution time;
(3) the httpRequest method in the HttpRequest class is called in the requestMethod.
Step 4, acquiring refrigerator temperature information at regular time according to a task of the Quartz at regular time, and storing the refrigerator temperature information in a cloud server:
(1) obtaining data according to an httpRequest method, and converting the data into a Json data type;
(2) the second step is that: and storing the processed data into a server through sql.
And 5, acquiring the current refrigerator temperature according to the small program state, wherein the specific implementation of the current refrigerator temperature is as follows:
when the user opens the small program to obtain the temperature page of the refrigerator, a request is sent out immediately to obtain data.
Step 6, obtaining the current refrigerator temperature, and storing the current refrigerator temperature in the server to realize the following steps:
(1) converting the data obtained by the full profit 6 into a Json type;
(2) and storing the processed data into the server through sql.
Step 7, displaying the current temperature and the past temperature in an icon mode to realize the following concrete steps:
(1) the small program requests a server through Url to obtain temperature data;
(2) the canvas xpress plug-in was introduced to present the data graphically.

Claims (8)

1. A small program based on WeChat, in particular to a method for monitoring the temperature of a refrigerator based on the small program; the method is characterized in that a Quartz task is defined in a small program background; then creating an http client object and a request instance, and configuring the request method instance into a timing task; according to the task of timing Quartz, acquiring refrigerator temperature information at regular time and storing the refrigerator temperature information in a cloud server; and acquiring current temperature information of the refrigerator according to the state of the small program, storing the current temperature information into a cloud server, and displaying the current temperature and the past temperature to a user in a chart form.
2. The method for monitoring the temperature of the refrigerator based on the small program implementation according to claim 1; the concrete implementation of defining the Quartz task is as follows:
the first step is as follows: creating a Quartz configuration class;
the second step is that: the QuartTconfigurationl class is annotated with @ EnableScheduling.
3. The method for monitoring the temperature of the refrigerator based on the small program implementation according to claim 1; the specific implementation of creating the http policy object and requesting the method instance is as follows:
the first step is as follows: creating an http request class and an HttpRequest method;
the second step is that: new an htttpclient object;
the third step: a new Httppost object HttpPost transmits a request address, and sets request parameters;
the fourth step: execute httpclient. execu (httpPost).
4. The method for monitoring the temperature of the refrigerator based on the small program implementation according to claim 1; the concrete implementation of configuring the request method into the Quartz task is as follows:
the first step is as follows: creating a request method in a Quartz configuration class;
the second step is that: adding an annotation @ Scheduled to a requestMethod to specify an execution time;
the third step: the httpRequest method in the HttpRequest class is called in the requestMethod.
5. The method for monitoring the temperature of the refrigerator based on the small program implementation according to claim 1; the refrigerator temperature information is acquired at regular time according to the task of the regular Quartz and stored in the cloud server, and the method is specifically realized as follows:
the first step is as follows: obtaining data according to an httpRequest method, and converting the data into a Json data type
The second step is that: and storing the processed data into a server through sql.
6. The method for monitoring the temperature of the refrigerator based on the small program implementation according to claim 1; the specific implementation of acquiring the current refrigerator temperature according to the small program state is as follows:
when the user opens the small program to obtain the temperature page of the refrigerator, a request is sent out immediately to obtain data.
7. The method for monitoring the temperature of the refrigerator based on the small program implementation according to claim 1; the specific implementation of acquiring the current refrigerator temperature and storing the current refrigerator temperature in the server is as follows:
the first step is as follows: converting the data obtained by the full profit 6 into a Json type;
the second step is that: and storing the processed data into the server through sql.
8. The method for monitoring the temperature of the refrigerator based on the small program implementation according to claim 1; the specific implementation that the current temperature and the past temperature are displayed in an icon mode is as follows:
the first step is as follows: the small program requests a server through Url to obtain temperature data;
the second step is that: the canvas xpress plug-in was introduced to present the data graphically.
CN201811465971.8A 2018-12-03 2018-12-03 Method for monitoring refrigerator temperature based on small program Pending CN111262899A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811465971.8A CN111262899A (en) 2018-12-03 2018-12-03 Method for monitoring refrigerator temperature based on small program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811465971.8A CN111262899A (en) 2018-12-03 2018-12-03 Method for monitoring refrigerator temperature based on small program

Publications (1)

Publication Number Publication Date
CN111262899A true CN111262899A (en) 2020-06-09

Family

ID=70951974

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811465971.8A Pending CN111262899A (en) 2018-12-03 2018-12-03 Method for monitoring refrigerator temperature based on small program

Country Status (1)

Country Link
CN (1) CN111262899A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115479447A (en) * 2022-08-26 2022-12-16 丽智电子(昆山)有限公司 Cloud monitoring and alarming system for temperature of raw material storage freezer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115479447A (en) * 2022-08-26 2022-12-16 丽智电子(昆山)有限公司 Cloud monitoring and alarming system for temperature of raw material storage freezer

Similar Documents

Publication Publication Date Title
US9703836B2 (en) Tactical query to continuous query conversion
US10013140B2 (en) Methods and apparatus for providing updated content in a user interface
US8078628B2 (en) Streaming faceted search
CN109902224A (en) Source of houses recommended method, device, equipment and medium based on user behavior analysis
WO2017166783A1 (en) Customized message pushing method and apparatus, and electronic device
WO2015043512A1 (en) Picture management method and device
CN107920103B (en) Information pushing method and system, client and server
TW201246096A (en) Push notifications for updating multiple dynamic icon panels
CN109522386B (en) Method and system for generating spatial information service across GIS platform
CN104767810A (en) Cloud-client cooperative service system and cloud-client cooperative work method
CN103218437A (en) Method and system for inquiring information of mobile terminal
JP5408570B2 (en) Attribute information update method and information update method
US10311160B2 (en) Cloud search analytics
CN111262899A (en) Method for monitoring refrigerator temperature based on small program
US20200250707A1 (en) Email-Based Promotion for User Adoption
CN111309674A (en) System and method for file management by mobile computing device
CN112966029B (en) Information display and transmission method, device, equipment and readable medium
EP4209933A1 (en) Data processing method and apparatus, and electronic device and storage medium
CN103294788A (en) Universal background processing method and system for websites
CN103491087A (en) Multimedia message processing method and device
CN112929751B (en) System, method and terminal for determining action execution
CN113792211A (en) Resource pushing processing method and device, electronic equipment and storage medium
Tamayo et al. Sensor observation service client for android mobile phones
CN104182443A (en) News searching method and device
CN105843812B (en) A kind of data presentation method, apparatus and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200609