CN111076373A - Display method, display device, terminal and readable storage medium - Google Patents

Display method, display device, terminal and readable storage medium Download PDF

Info

Publication number
CN111076373A
CN111076373A CN201811220078.9A CN201811220078A CN111076373A CN 111076373 A CN111076373 A CN 111076373A CN 201811220078 A CN201811220078 A CN 201811220078A CN 111076373 A CN111076373 A CN 111076373A
Authority
CN
China
Prior art keywords
air quality
value
interval
target
displaying
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.)
Granted
Application number
CN201811220078.9A
Other languages
Chinese (zh)
Other versions
CN111076373B (en
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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201811220078.9A priority Critical patent/CN111076373B/en
Publication of CN111076373A publication Critical patent/CN111076373A/en
Application granted granted Critical
Publication of CN111076373B publication Critical patent/CN111076373B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F2110/00Control inputs relating to air properties
    • F24F2110/50Air quality properties
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B30/00Energy efficient heating, ventilation or air conditioning [HVAC]
    • Y02B30/70Efficient control or regulation technologies, e.g. for control of refrigerant flow, motor or heating

Landscapes

  • Air Conditioning Control Device (AREA)

Abstract

The invention discloses a display method, a display device, a terminal and a readable storage medium, wherein the method comprises the following steps: acquiring a current first air quality value; determining a first numerical interval in which the first air quality value is located according to a pre-stored numerical interval for identifying the air quality grade; and displaying the target air quality grade identified by the first numerical value interval. According to the embodiment of the invention, the air quality grade marked by the value interval where the current air quality value is located is displayed, so that a user can visually check the air quality grade corresponding to the current air quality value, and the user experience is improved.

Description

Display method, display device, terminal and readable storage medium
Technical Field
The invention relates to the technical field of smart home, in particular to a display method, a display device, a terminal and a readable storage medium.
Background
As the environment deteriorates and air pollution increases, the indoor air quality is more and more concerned by consumers, and thus the air purifier is also a hot product in the market. In order to make products of own manufacturers attract users to choose and purchase in a plurality of purifier products, how to enable the users to clearly know the current air quality when using the air purifier, and the improvement of the purifying effect of the air purifier of the own manufacturers become topics concerned by research and development personnel.
A sensor for detecting air quality is installed at an air inlet of a general air purifier, and a numerical value which is collected by the sensor and represents the current air quality, such as a PM2.5 value, can be displayed on a display screen of the air purifier; the air purifier can also be provided with a WiFi (WIreless-Fidelity) communication module, the air purifier transmits the numerical value acquired by the sensor to the server through the WiFi communication module, the numerical value is transmitted to the corresponding user terminal by the server and displayed on the user terminal, the displayed numerical value changes along with the change of the air quality, and most users cannot directly judge the current air quality grade according to the numerical value because the users are insensitive to objective numbers, and if the air quality grade exists, the degree of the air quality when the air quality exists, and the like.
Disclosure of Invention
The invention provides a display method, a display device, a terminal and a readable storage medium, which are used for solving the problem that a user cannot directly determine the current air quality grade in the prior art.
The invention provides a display method, which is applied to a terminal and comprises the following steps:
acquiring a current first air quality value;
determining a first numerical interval in which the first air quality value is located according to a pre-stored numerical interval for identifying the air quality grade;
and displaying the target air quality grade identified by the first numerical value interval.
Further, the acquiring the current first air quality value includes:
receiving a first air quality value collected and sent by an air purifier; or
Receiving a first air quality value sent by a server, wherein the first air quality value is collected by an air purifier and then sent to the server.
Further, the displaying the target air quality level identified by the first value interval comprises at least one of the following:
displaying the first air quality value according to a target display color corresponding to the target air quality grade identified by the first value interval;
displaying the target air quality grade of the first numerical value interval identification in a text manner; and
displaying an identifier of a target air quality level identified by the first interval of values.
Further, the displaying the first air quality value according to the target display color corresponding to the target air quality level identified by the first value interval includes:
determining the transparency ratio of the target display color according to the difference value between the first air quality value and the initial value of the first value interval and the interval range of the first value interval;
and displaying the first air quality value according to the target display color and the transparency ratio corresponding to the target air quality grade identified by the first value interval.
Further, the displaying the first air quality value according to the target display color corresponding to the target air quality level identified by the first value interval includes:
generating a first background picture of the target display color according to the target display color corresponding to the target air quality grade identified by the first numerical value interval;
displaying the first air quality value on the first background picture.
Further, before generating the first background picture of the target display color according to the target display color corresponding to the target air quality level identified by the first numerical value interval, the method further includes:
judging whether a second numerical value interval in which a second air quality value obtained last time is located is consistent with the first numerical value interval or not;
if not, the subsequent steps are carried out.
Further, if the second numerical interval is inconsistent with the first numerical interval, the displaying the first air quality value on the first background picture comprises:
replacing a second background picture corresponding to the second numerical value interval with the first background picture;
and displaying the first air quality value on the first background picture.
Further, the method further comprises:
and destroying the second background picture.
Further, if the second value interval coincides with the first value interval, the method further comprises:
and displaying the first air quality value on a second background picture corresponding to the second value interval.
Further, the displaying the first air quality value according to the target display color corresponding to the target air quality level identified by the first value interval includes:
judging whether the initial values of the first value interval are all larger than the initial values of all the other value intervals except the first value interval;
if so, modifying the first air quality value into an invalid value, and displaying the invalid value according to a target display color corresponding to the target air quality grade identified by the first value interval;
and if not, displaying the first air quality value according to the target display color corresponding to the target air quality grade identified by the first value interval.
The invention provides a display device, which is applied to a terminal and comprises:
the acquisition module is used for acquiring a current first air quality value;
the determining module is used for determining a first numerical value interval in which the first air quality value is located according to a pre-stored numerical value interval used for identifying the air quality grade;
and the display module is used for displaying the target air quality grade of the first numerical value interval identifier.
Further, the acquisition module is specifically used for receiving a first air quality value collected and sent by the air purifier; or receiving a first air quality value sent by the server, wherein the first air quality value is collected by the air purifier and then sent to the server.
Further, the display module is specifically configured to display the target air quality level identified by the first value interval in at least one of the following manners: displaying the first air quality value according to a target display color corresponding to the target air quality grade identified by the first value interval; displaying the target air quality grade of the first numerical value interval identification in a text manner; and an identifier displaying the target air quality level identified by the first interval of values.
Further, the display module is specifically configured to determine a transparency ratio of a target display color according to a difference between the first air quality value and a starting value of the first value interval and an interval range of the first value interval; and displaying the first air quality value according to the target display color and the transparency ratio corresponding to the target air quality grade identified by the first value interval.
Further, the display module is specifically configured to generate a first background picture of the target display color according to the target display color corresponding to the target air quality level identified by the first numerical value interval; displaying the first air quality value on the first background picture.
Further, the display module is further configured to determine whether a second numerical interval in which the second air quality value obtained last time is located is consistent with the first numerical interval; and if not, generating a first background picture of the target display color according to the target display color corresponding to the target air quality grade identified by the first numerical value interval.
Further, the display module is further configured to replace a second background picture corresponding to the second numerical value interval with the first background picture if the second numerical value interval is inconsistent with the first numerical value interval; displaying the first air quality value on the first background picture.
Further, the display module is further configured to destroy the second background picture.
Further, the display module is further configured to display the first air quality value on a second background picture corresponding to the second value interval if the second value interval is consistent with the first value interval.
Further, the display module is specifically configured to determine whether the initial value of the first value interval is greater than the initial value of each of the remaining value intervals except the first value interval; if so, modifying the first air quality value into an invalid value, and displaying the invalid value according to a target display color corresponding to the target air quality grade identified by the first value interval; and if not, displaying the first air quality value according to the target display color corresponding to the target air quality grade identified by the first value interval.
The present invention provides a terminal, including: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
the memory has stored therein a computer program which, when executed by the processor, causes the processor to perform the steps of any of the methods described above.
The present invention provides a computer readable storage medium storing a computer program executable by a terminal, the program, when run on the terminal, causing the terminal to perform the steps of any of the methods described above.
The invention provides a display method, a display device, a terminal and a readable storage medium, wherein the method comprises the following steps: acquiring a current first air quality value; determining a first numerical interval in which the first air quality value is located according to a pre-stored numerical interval for identifying the air quality grade; and displaying the target air quality grade identified by the first numerical value interval. According to the invention, the air quality grade marked by the value interval where the current air quality value is located is displayed, so that a user can visually check the air quality grade corresponding to the current air quality value, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a display process provided in embodiment 1 of the present invention;
FIG. 2 is a schematic illustration of a display provided in accordance with embodiment 3 of the present invention;
FIG. 3 is a schematic illustration of a display provided in embodiment 3 of the present invention;
fig. 4 is a schematic diagram of a display process provided in embodiment 8 of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to embodiment 9 of the present invention;
fig. 6 is a schematic diagram of a display device according to an embodiment of the invention.
Detailed Description
In order to enable a user to visually check the air quality grade corresponding to the current air quality value, the embodiment of the invention provides a display method, a display device, a terminal and a readable storage medium.
The display method provided by the embodiment of the invention can be applied to a terminal, and the terminal comprises a hardware layer, an operating system layer running on the hardware layer and an application layer running on the operating system.
The hardware layer includes hardware such as a Central Processing Unit (CPU), a Memory Management Unit (MMU), and a Memory.
The operating system may be any one or more computer operating systems that enable display through a Process (Process), such as a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a windows operating system.
In the embodiment of the present invention, the terminal may be a handheld device such as a smart phone and a tablet computer, or may be a terminal device such as a desktop computer and a portable computer, which is not particularly limited in the embodiment of the present invention, as long as the display can be realized by running a program recorded with codes of the display method in the embodiment of the present invention.
The execution main body displayed in the embodiment of the present invention may be a terminal, or a functional module capable of calling a program and executing the program in the terminal.
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1:
fig. 1 is a schematic diagram of a display process provided in an embodiment of the present invention, where the process includes the following steps:
s101: a current first air quality value is obtained.
The display method provided by the embodiment of the invention is applied to the terminal and is mainly used for displaying the air quality. An application APP for displaying air quality may be installed in the terminal.
The terminal can acquire a current first air quality value, and the first air quality value can be an outdoor or indoor air quality value. The first air mass value comprises PM 2.5.
The terminal may obtain the current first air quality value in real time, or may obtain the current first air quality value at a set time interval.
The current first air quality numerical value that this terminal obtained can be for this terminal is provided with the sensor that is used for air quality detection in the terminal the local current first air quality numerical value that acquires on the weather server, and this sensor gathers current first air quality numerical value, can be that this terminal is direct or indirect to be connected with air purifier, and this terminal receives current first air quality numerical value that air purifier gathered etc..
S102: and determining a first numerical interval in which the first air quality value is located according to a pre-stored numerical interval for identifying the air quality grade.
The terminal is pre-stored with a value interval for identifying the air quality level, the value interval may be a continuous value interval, the value interval may be set according to the division of the air quality level when being set, the air quality level of the air purifier may include N (M1, M2, M3 … … MN), where N is greater than or equal to 2, i.e. the corresponding value interval may include N, and the air quality level and the value interval may be added and deleted according to the actual situation. For example, the value ranges may be 0-35, 36-115, 116-1000, 1001, with different value ranges representing different air quality levels. The numerical value interval can be determined by different manufacturers during setting, and can also be set by a user according to the requirements of the user.
The terminal can determine a first value interval in which the first air quality value is located according to a pre-stored value interval and the current first air quality value, and the value interval in which the first air instruction value falls is the first value interval in which the first air quality value is located.
S103: and displaying the target air quality grade identified by the first numerical value interval.
Because the value interval is used for identifying the air quality grade, after the first value interval in which the first air quality value is located is determined, the target air quality grade identified by the first value interval can be determined, so that the target air quality grade is displayed, and a user can visually check the air quality grade corresponding to the current air quality value.
And the terminal displays the target air quality grade on a display interface displaying the APP of which the target air quality grade can be installed by the terminal.
In addition, the terminal can also display the first air quality value when displaying the target air quality grade. Further, the terminal can also show air purifier's running condition, like air purifier's operational mode, whether open light in wind speed gear. The user can real time monitoring air purifier's operation conditions, judges according to audio-visual demonstration whether satisfy own demand, if unsatisfied, can change the setting through the terminal to reach the effect of oneself ideal.
According to the embodiment of the invention, the air quality grade marked by the value interval where the current air quality value is located is displayed, so that a user can visually check the air quality grade corresponding to the current air quality value, and the user experience is improved.
Example 2:
in order to improve flexibility in acquiring the air quality value, on the basis of the above embodiment, in an embodiment of the present invention, the acquiring the current first air quality value includes:
receiving a first air quality value collected and sent by an air purifier; or
Receiving a first air quality value sent by a server, wherein the first air quality value is collected by an air purifier and then sent to the server.
The last sensor that is used for air quality to detect that can install of air purifier, for the testing result is more accurate, this sensor can be the air intake of installing at air purifier, and air purifier can gather current first air quality numerical value through the sensor, then directly or indirectly sends this first air quality numerical value for the terminal to make the terminal acquire current first air quality.
When the air purifier is started, the air quality detection function can be turned on by default, the air purifier can send the current first air quality value to the terminal in real time, the current first air quality value can be sent to the terminal according to a set time interval, and if the current first air quality value is sent according to the set time interval, the time interval can be any, such as 5 seconds, 30 seconds or 1 minute.
Air purifier can be connected with the terminal, specifically can be connected through modes such as wiFi, bluetooth or zigBee connection when connecting.
If air purifier passes through bluetooth or zigBee with the terminal and is connected, air purifier can directly send the first air quality numerical value of gathering to the terminal.
If air purifier passes through wiFi with the terminal and is connected, can regard as air purifier and terminal to be located same LAN, air purifier sends the first air quality numerical value of gathering to the terminal through the server. Specifically, after the air purifier acquires a current first air environment value P, the server is uploaded through the WIFI module, the server acquires update data and then issues the update data to the client, namely, the APP installed on the terminal, the client acquires the value P through analyzing Json data, and the air quality grade Np represented by the value is known through a series of judgment and processing.
In the embodiment of the invention, the air purifier can directly or indirectly send the acquired air quality value to the terminal, so that the flexibility of acquiring the air quality value is improved.
Example 3:
on the basis of the foregoing embodiments, in an embodiment of the present invention, the target air quality level displaying the first value interval identifier includes at least one of:
displaying the first air quality value according to a target display color corresponding to the target air quality grade identified by the first value interval;
displaying the target air quality grade marked by the first numerical interval and the first air quality numerical value in a text manner; and
and displaying the identifier of the target air quality grade identified by the first value interval, and displaying the first air quality value.
The terminal can display in multiple modes when displaying the target air quality grade of the first numerical value interval identifier, so that better display experience is provided for a user.
When the terminal displays the target air quality grade identified by the first value interval, at least one of the following modes can be adopted:
the first air quality value is displayed according to a target display color corresponding to the target air quality level, for example, the first air quality value may be displayed by using a background corresponding to the target display color, or the first air quality value may be displayed by using the target display color.
The text displays the target air quality rating. For example, as shown in fig. 2, the direct text display target air quality rating is "poor", or as shown in fig. 3, the direct text display target air quality rating is "excellent". Further, when the target air quality level is displayed, the first air quality value may also be displayed.
The identifier displaying the target air quality class identified by the first numerical value interval, such as displaying a good air quality class by a sun icon, displaying a poor air quality class by frost, etc., is not limited in the embodiment of the present invention, as long as each air quality class can be distinguished.
In the embodiment of the invention, the target air quality grade can be displayed in one or more modes, so that the diversity of display modes is provided.
Example 4:
on the basis of the foregoing embodiments, in an embodiment of the present invention, the displaying the first air quality value according to the target display color corresponding to the target air quality class identified by the first value interval includes:
determining the transparency ratio of the target display color according to the difference value between the first air quality value and the initial value of the first value interval and the interval range of the first value interval;
and displaying the first air quality value according to the target display color and the transparency ratio corresponding to the target air quality grade identified by the first value interval.
In order to more intuitively display the first air quality value when the target air quality grade is displayed, the first air quality value can be displayed according to the determined transparency ratio of the color according to the first interval where the first air quality value is located and the target display color corresponding to the target air quality grade.
When the terminal displays according to the corresponding transparency ratio, the target display color of the transparency ratio can be directly displayed, a mask is arranged on the upper layer of the content surface of the display interface, and the display is performed by changing the transparency ratio of the mask.
The terminal may determine a difference between the first air quality value and a starting value of the first value interval, where the difference between the first air quality value and the starting value of the first value interval is P-Np, and the difference between the first air quality value and the starting value of the first value interval is P-Np.
And the terminal may determine an interval range of the first value interval, i.e. Np+1-Np
When the terminal determines the transparency ratio according to the difference between the first air quality value and the initial value of the first value interval and the interval range of the first value interval, the ratio between the difference and the interval range can be directly determined as the transparency ratio, or the ratio between the difference, the rated value and the interval range can be determined as the transparency ratio, the rated value is arbitrary, generally the rated value does not exceed the interval range, for example, when the rated value is 1, the transparency ratio a is (P-Np + 1)/(N)p+1-Np)。
The terminal may display the first air quality value according to a target display color and a transparency ratio corresponding to the target air quality level, specifically, the transparency ratio may be used as a final transparency and then displayed, or a transparency range may be preset, and the final transparency may be used according to the transparency ratio and the transparency range and then displayed.
If the transparency range is preset, the initial transparency and the final transparency of the transparency range can be arbitrary, and the preset transparency is taken as 50% -100%, and the final transparency is calculated to be 50% + a x 50%.
According to the embodiment of the invention, the transparency ratio of the target display color can be determined according to the first air quality value, and the first air quality value is displayed, so that a user can determine the current air quality value more intuitively through the difference of the transparency.
Example 5:
on the basis of the foregoing embodiments, in an embodiment of the present invention, the displaying the first air quality value according to the target display color corresponding to the target air quality class identified by the first value interval includes:
generating a first background picture of the target display color according to the target display color corresponding to the target air quality grade identified by the first numerical value interval;
displaying the first air quality value on the first background picture.
In order to further visually display the first air quality value, the terminal can display the background picture corresponding to the target display color on the first air quality value, and when the first value interval where the first air quality value is located changes, the background picture can be dynamically displayed for the user in a changing manner, so that the user experience is improved.
When the terminal generates the first background picture of the target display color according to the target display color, the target display color may be directly used as the final display color to generate the first background picture with the color consistent with that of the target display color, or the final display color may be determined according to the target display color and the determined transparency ratio, so as to generate the first background picture of the final display color. And the size of the generated first background picture may be determined according to a resolution and/or a set value of a display screen of the terminal.
The process of generating the background picture after the terminal determines the final display color and size belongs to the prior art, and is not described in detail in the embodiment of the present invention.
After the terminal generates the first background picture, the terminal may display the first air quality value on the first background picture, and further, the terminal may display the first background picture at a preset position, and then display the first air quality value on the first background picture, where the preset position is arbitrary, for example, as shown in fig. 2 or fig. 3, and the preset position is located at an upper half portion (upper and lower portions shown in fig. 2 or fig. 3) of a display screen of the terminal.
In the embodiment of the invention, the first air quality value is displayed on the first background picture of the target display color, so that the user can more intuitively see the current target air quality grade, and the user experience is further improved.
Example 6:
on the basis of the foregoing embodiments, in an embodiment of the present invention, before generating a first background picture of a target display color according to the target display color corresponding to the target air quality level identified by the first numerical value interval, the method further includes:
judging whether a second numerical value interval in which a second air quality value obtained last time is located is consistent with the first numerical value interval or not;
if not, the subsequent steps are carried out.
If the second interval of values is consistent with the first interval of values, the method further comprises:
and displaying the first air quality value on a second background picture corresponding to the second value interval.
The air quality grade corresponding to the last collected air quality value may be consistent with the air quality grade corresponding to the current first air quality value and may be inconsistent, the air quality grade corresponding to the last collected air quality value can be directly displayed when consistent with the air quality grade, regeneration is not needed, terminal resources are saved, and when inconsistent with the air quality grade, the regeneration is displayed, so that a user can visually check the change of the current air quality grade, and user experience is further improved.
The terminal may store the second air quality value acquired last time and/or a second numerical interval in which the second air quality value acquired last time is located, so that the terminal may determine whether the air quality level is changed according to a determination result of whether the second numerical interval is consistent with the first numerical interval.
When the second numerical interval is consistent with the first numerical interval, the air quality level may be considered to be unchanged, and when the second numerical interval is inconsistent with the first numerical interval, the air quality level may be considered to be changed.
When the air quality level is not changed, the second background picture corresponding to the second numerical value interval may be directly determined as the first background picture corresponding to the first numerical value interval, and in order to save resources consumed when the background picture is generated by the terminal, the first air quality value may be directly displayed on the second background picture.
When the air quality level changes, in order to ensure that a user can visually check the change of the air quality level, the terminal needs to regenerate a first background picture of the target display color according to the target display color corresponding to the target air quality level identified by the first value interval, and then display the first air quality value on the first background picture.
According to the embodiment of the invention, the air quality grade corresponding to the last acquired air quality value can be judged to be possibly consistent with the air quality grade corresponding to the current first air quality value and possibly inconsistent, the air quality grade can be directly displayed when consistent, the terminal resource is saved without regenerating, and the change of the current air quality grade can be visually checked by a user when inconsistent, so that the user experience is further improved.
Example 7:
in the foregoing embodiments, in an embodiment of the present invention, if the second value interval is not consistent with the first value interval, the displaying the first air quality value on the first background picture includes:
replacing a second background picture corresponding to the second numerical value interval with the first background picture;
displaying the first air quality value on the first background picture.
The method further comprises the following steps:
and destroying the second background picture.
When the air quality grade is changed, in order to ensure that a user can visually check the change of the air quality grade, the terminal needs to replace the second background picture with the first background picture for displaying, namely, the currently displayed second background picture is replaced with the first background picture, and the first air quality value is displayed on the first background picture.
However, if the air quality level is high or the number of times of air quality level changes is high, the terminal may generate a plurality of background pictures, and if the background pictures are stored in the memory, the terminal may occupy too much memory, which may cause the terminal to be stuck and affect the user experience.
Therefore, the second background picture can be destroyed, that is, the second background picture is destroyed from the memory, so that the situation that a plurality of pictures occupy the memory, which causes the terminal to be blocked and affects the user experience is prevented.
Example 8:
on the basis of the foregoing embodiments, in an embodiment of the present invention, the displaying the first air quality value according to the target display color corresponding to the target air quality class identified by the first value interval includes:
judging whether the initial values of the first value interval are all larger than the initial values of all the other value intervals except the first value interval;
if so, modifying the first air quality value into an invalid value, and displaying the invalid value according to a target display color corresponding to the target air quality grade identified by the first value interval;
and if not, displaying the first air quality value according to the target display color corresponding to the target air quality grade identified by the first value interval.
When the air purifier is just started, namely the sensor in the air purifier is unstable just starting to work, the acquired air quality value is overlarge, but the air quality value at the moment is not a real value, so that the air quality value within the set time length just started by the controller can be extremely large, such as 1000, 1001 or 10000, and the like, and the limitation is not made here, so that bad values irrelevant to the user viewing and using are hidden, and the user experience is improved.
The maximum air quality value within the set time length which is appointed to be started with the controller can be the maximum air quality value and the set time length which are stored in the terminal in advance, or the maximum air quality value and the set time length in the controller of the air purifier.
The set time length is not limited in the embodiment of the invention, and can be related to air purifiers of different models produced by different manufacturers, and specifically can be a time length determined by a research and development staff through a plurality of tests in advance.
The maximum air quality value can be located in the maximum value interval of each value interval, namely the initial value of the first value interval in which the maximum air quality value is located is larger than the initial values of all the rest value intervals except the first value interval, so that the maximum air quality value can be determined according to whether the initial value of the first value interval in which the first air quality value is located is larger than the initial values of all the rest value intervals except the first value interval.
If it is determined that the initial value of the first value interval in which the first air quality value is located is greater than the initial values of all the other value intervals except the first value interval, the currently acquired first air quality value can be considered as an unstable value, and if not, the currently acquired first air quality value can be considered as a normal value.
If it is determined that the currently acquired first air quality value is an unstable value, in order to avoid discomfort in user experience when the unstable value is directly displayed to the user, the unstable value may be hidden, specifically, the first air quality value may be modified into an invalid value to be displayed, and when the invalid value is displayed, the process of displaying the target display color corresponding to the target air quality level identified according to the first value interval when the normal first air quality value is displayed may be similar to that in the embodiment of the present invention, which is not repeated. In order to enable the user to accurately know the currently displayed air quality value, the currently displayed air quality value may be displayed on a gray background.
If the currently acquired first air quality value is determined to be a normal value, the first air quality value can be directly displayed according to the target display color corresponding to the target air quality grade identified by the first air quality value, and the process is not repeated in the embodiment of the invention.
In the following, each of the above embodiments is described with a specific embodiment, as shown in fig. 4, four value ranges of 0 to 35, 36 to 115, 116 and 1000 and 1001 or more are provided, the air quality levels corresponding to the four value ranges are L0, L1, L2 and L3, respectively, and the air quality value in the set time length just started is designated 1001 by the controller. The terminal receives the collected air quality value sent by the air sensor, judges whether the air quality value is in a range of 0-35, if so, displays an air quality level L0 and continues to perform repeated detection, if not, judges whether the air quality value is in a range of 36-115, if so, displays an air quality level L1 and continues to perform repeated detection, if not, judges whether the air quality value is above 116 and not equal to the range of 1001, if so, displays an air quality level L2 and continues to perform repeated detection, if not, judges whether the air quality value is equal to 1001, if so, displays an air quality level L3 and continues to perform repeated detection.
In the embodiment of the invention, when the initial value of the first value interval is greater than the initial values of all the other value intervals except the first value interval, the acquired first air quality value is modified into an invalid value to be displayed, so that bad values irrelevant to the checking and use of a user are hidden, and the user experience is improved.
Example 9:
on the basis of the foregoing embodiments, an embodiment of the present invention further provides a terminal 500, as shown in fig. 5, including: the system comprises a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502 and the memory 503 are communicated with each other through the communication bus 504;
the memory 503 has stored therein a computer program which, when executed by the processor 501, causes the processor 501 to perform the steps of:
acquiring a current first air quality value;
determining a first numerical interval in which the first air quality value is located according to a pre-stored numerical interval for identifying the air quality grade;
and displaying the target air quality grade identified by the first numerical value interval.
The embodiment of the invention provides a display method applied to a terminal.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface 502 is used for communication between the above-described terminal and other devices.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The processor may be a general-purpose processor, including a central processing unit, a Network Processor (NP), and the like; but may also be a Digital instruction processor (DSP), an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like.
In the embodiment of the invention, when the processor executes the program stored in the memory, the air quality grade marked by the value interval where the current air quality value is located is displayed, so that a user can visually check the air quality grade corresponding to the current air quality value, and the user experience is improved.
Example 10:
on the basis of the foregoing embodiments, an embodiment of the present invention further provides a computer storage readable storage medium, in which a computer program executable by a terminal is stored, and when the program is run on the terminal, the terminal is caused to execute the following steps:
acquiring a current first air quality value;
determining a first numerical interval in which the first air quality value is located according to a pre-stored numerical interval for identifying the air quality grade;
and displaying the target air quality grade identified by the first numerical value interval.
The above-mentioned computer readable storage medium may be any available medium or data storage device that can be accessed by a processor in a terminal, including but not limited to magnetic memory such as a flexible disk, a hard disk, magnetic tape, magneto-optical disk (MO), etc., optical memory such as CD, DVD, BD, HVD, etc., and semiconductor memory such as ROM, EPROM, EEPROM, nonvolatile memory (NANDFLASH), Solid State Disk (SSD), etc.
The computer-readable storage medium provided in the embodiment of the present invention stores a computer program, and when the computer program is executed by the processor, the air quality level identified by the value interval in which the current air quality value is located is displayed, so that a user can visually check the air quality level corresponding to the current air quality value, and user experience is improved.
Fig. 6 is a schematic diagram of a display device 600 according to an embodiment of the present invention, applied to a terminal, the device including:
an obtaining module 601, configured to obtain a current first air quality value;
a determining module 602, configured to determine, according to a pre-stored numerical interval for identifying an air quality level, a first numerical interval in which the first air quality value is located;
and a display module 603, configured to display the target air quality level identified by the first numerical value interval.
The obtaining module 601 is specifically configured to receive a first air quality value collected and sent by an air purifier; or receiving a first air quality value sent by the server, wherein the first air quality value is collected by the air purifier and then sent to the server.
The display module 603 is specifically configured to display the target air quality level identified by the first value interval in at least one of the following manners: displaying the first air quality value according to a target display color corresponding to the target air quality grade identified by the first value interval; displaying the target air quality grade of the first numerical value interval identification in a text manner; and an identifier displaying the target air quality level identified by the first interval of values.
The display module 603 is specifically configured to determine a transparency ratio of a target display color according to a difference between the first air quality value and an initial value of the first value interval, and an interval range of the first value interval; and displaying the first air quality value according to the target display color and the transparency ratio corresponding to the target air quality grade identified by the first value interval.
The display module 603 is specifically configured to generate a first background picture of a target display color according to the target display color corresponding to the target air quality level identified by the first numerical value interval; displaying the first air quality value on the first background picture.
The display module 603 is further configured to determine whether a second numerical interval in which the second air quality value obtained last time is located is consistent with the first numerical interval; and if not, generating a first background picture of the target display color according to the target display color corresponding to the target air quality grade identified by the first numerical value interval.
The display module 603 is further configured to replace the second background picture corresponding to the second numerical value interval with the first background picture if the second numerical value interval is inconsistent with the first numerical value interval; displaying the first air quality value on the first background picture.
The display module 603 is further configured to destroy the second background picture.
The display module 603 is further configured to display the first air quality value on a second background picture corresponding to the second value interval if the second value interval is consistent with the first value interval.
The display module 603 is specifically configured to determine whether the initial value of the first value interval is greater than the initial value of each of the remaining value intervals except the first value interval; if so, modifying the first air quality value into an invalid value, and displaying the invalid value according to a target display color corresponding to the target air quality grade identified by the first value interval; and if not, displaying the first air quality value according to the target display color corresponding to the target air quality grade identified by the first value interval.
According to the embodiment of the invention, the air quality grade marked by the value interval where the current air quality value is located is displayed, so that a user can visually check the air quality grade corresponding to the current air quality value, and the user experience is improved.
For the system/apparatus embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
It is to be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or operation from another entity or operation without necessarily requiring or implying any actual such relationship or order between such entities or operations.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (22)

1. A display method is applied to a terminal, and comprises the following steps:
acquiring a current first air quality value;
determining a first numerical interval in which the first air quality value is located according to a pre-stored numerical interval for identifying the air quality grade;
and displaying the target air quality grade identified by the first numerical value interval.
2. The method of claim 1, wherein the obtaining a current first air quality number value comprises:
receiving a first air quality value collected and sent by an air purifier; or
Receiving a first air quality value sent by a server, wherein the first air quality value is collected by an air purifier and then sent to the server.
3. The method of claim 1, wherein displaying the target air quality level identified by the first interval of values comprises at least one of:
displaying the first air quality value according to a target display color corresponding to the target air quality grade identified by the first value interval;
displaying the target air quality grade of the first numerical value interval identification in a text manner; and
displaying an identifier of a target air quality level identified by the first interval of values.
4. The method of claim 3, wherein the displaying the first air quality value according to the target display color corresponding to the target air quality class identified by the first value interval comprises:
determining the transparency ratio of the target display color according to the difference value between the first air quality value and the initial value of the first value interval and the interval range of the first value interval;
and displaying the first air quality value according to the target display color and the transparency ratio corresponding to the target air quality grade identified by the first value interval.
5. The method of claim 3 or 4, wherein the displaying the first air quality value according to the target display color corresponding to the target air quality level identified by the first value interval comprises:
generating a first background picture of the target display color according to the target display color corresponding to the target air quality grade identified by the first numerical value interval;
displaying the first air quality value on the first background picture.
6. The method of claim 5, wherein before generating the first background picture of the target display color according to the target display color corresponding to the target air quality level identified by the first value interval, the method further comprises:
judging whether a second numerical value interval in which a second air quality value obtained last time is located is consistent with the first numerical value interval or not;
if not, the subsequent steps are carried out.
7. The method of claim 6, wherein if the second interval of values does not coincide with the first interval of values, the displaying the first air quality value on the first background picture comprises:
replacing a second background picture corresponding to the second numerical value interval with the first background picture;
displaying the first air quality value on the first background picture.
8. The method of claim 7, wherein the method further comprises:
and destroying the second background picture.
9. The method of claim 6, wherein if the second interval of values coincides with the first interval of values, the method further comprises:
and displaying the first air quality value on a second background picture corresponding to the second value interval.
10. The method of claim 3, wherein the displaying the first air quality value according to the target display color corresponding to the target air quality class identified by the first value interval comprises:
judging whether the initial values of the first value interval are all larger than the initial values of all the other value intervals except the first value interval;
if so, modifying the first air quality value into an invalid value, and displaying the invalid value according to a target display color corresponding to the target air quality grade identified by the first value interval;
and if not, displaying the first air quality value according to the target display color corresponding to the target air quality grade identified by the first value interval.
11. A display device, applied to a terminal, the device comprising:
the acquisition module is used for acquiring a current first air quality value;
the determining module is used for determining a first numerical value interval in which the first air quality value is located according to a pre-stored numerical value interval used for identifying the air quality grade;
and the display module is used for displaying the target air quality grade of the first numerical value interval identifier.
12. The device of claim 11, wherein the acquisition module is specifically configured to receive a first air quality value collected and sent by the air purifier; or receiving a first air quality value sent by the server, wherein the first air quality value is collected by the air purifier and then sent to the server.
13. The apparatus of claim 11, wherein the display module is specifically configured to display the target air quality level identified by the first value interval in at least one of: displaying the first air quality value according to a target display color corresponding to the target air quality grade identified by the first value interval; displaying the target air quality grade of the first numerical value interval identification in a text manner; and an identifier displaying the target air quality level identified by the first interval of values.
14. The apparatus of claim 13, wherein the display module is specifically configured to determine a transparency ratio of a target display color according to a difference between the first air quality value and a starting value of the first value interval, and an interval range of the first value interval; and displaying the first air quality value according to the target display color and the transparency ratio corresponding to the target air quality grade identified by the first value interval.
15. The apparatus according to claim 13 or 14, wherein the display module is specifically configured to generate a first background picture of a target display color according to the target display color corresponding to the target air quality level identified by the first numerical value interval; displaying the first air quality value on the first background picture.
16. The apparatus according to claim 15, wherein the display module is further configured to determine whether a second numerical interval in which the second air quality value obtained last time is located is consistent with the first numerical interval; and if not, generating a first background picture of the target display color according to the target display color corresponding to the target air quality grade identified by the first numerical value interval.
17. The apparatus of claim 16, wherein the display module is further configured to replace a second background picture corresponding to the second value interval with the first background picture if the second value interval is inconsistent with the first value interval; displaying the first air quality value on the first background picture.
18. The apparatus of claim 17, wherein the display module is further configured to destroy the second background picture.
19. The apparatus of claim 16, wherein the display module is further configured to display the first air quality value on a second background picture corresponding to the second value interval if the second value interval is consistent with the first value interval.
20. The apparatus according to claim 13, wherein the display module is specifically configured to determine whether the initial values of the first numerical range are all greater than the initial values of each of the remaining numerical ranges except the first numerical range; if so, modifying the first air quality value into an invalid value, and displaying the invalid value according to a target display color corresponding to the target air quality grade identified by the first value interval; and if not, displaying the first air quality value according to the target display color corresponding to the target air quality grade identified by the first value interval.
21. A terminal, comprising: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
the memory has stored therein a computer program which, when executed by the processor, causes the processor to carry out the steps of the method of any one of claims 1 to 10.
22. A computer-readable storage medium, characterized in that it stores a computer program executable by a terminal, which program, when run on the terminal, causes the terminal to carry out the steps of the method according to any one of claims 1 to 10.
CN201811220078.9A 2018-10-19 2018-10-19 Display method, display device, terminal and readable storage medium Active CN111076373B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811220078.9A CN111076373B (en) 2018-10-19 2018-10-19 Display method, display device, terminal and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811220078.9A CN111076373B (en) 2018-10-19 2018-10-19 Display method, display device, terminal and readable storage medium

Publications (2)

Publication Number Publication Date
CN111076373A true CN111076373A (en) 2020-04-28
CN111076373B CN111076373B (en) 2020-12-15

Family

ID=70309032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811220078.9A Active CN111076373B (en) 2018-10-19 2018-10-19 Display method, display device, terminal and readable storage medium

Country Status (1)

Country Link
CN (1) CN111076373B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108415750A (en) * 2018-03-08 2018-08-17 广东美的制冷设备有限公司 Interface display method, terminal, air regulator and the server of environmental parameter
US20210379524A1 (en) * 2020-06-08 2021-12-09 Vitality Ventures HK Company Limited Air purifier

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011529192A (en) * 2008-07-28 2011-12-01 メソ リミテッド Air quality measuring device
CN105890103A (en) * 2014-12-04 2016-08-24 李民 Air quality control method and device
CN105959601A (en) * 2016-05-11 2016-09-21 四川友熙环保科技有限责任公司 Method for refreshing air quality display screen of air quality detection system
CN108278668A (en) * 2018-01-30 2018-07-13 广东美的制冷设备有限公司 Air conditioner, the indoor unit of air conditioner and air quality reminding method
CN108415750A (en) * 2018-03-08 2018-08-17 广东美的制冷设备有限公司 Interface display method, terminal, air regulator and the server of environmental parameter

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011529192A (en) * 2008-07-28 2011-12-01 メソ リミテッド Air quality measuring device
CN105890103A (en) * 2014-12-04 2016-08-24 李民 Air quality control method and device
CN105959601A (en) * 2016-05-11 2016-09-21 四川友熙环保科技有限责任公司 Method for refreshing air quality display screen of air quality detection system
CN108278668A (en) * 2018-01-30 2018-07-13 广东美的制冷设备有限公司 Air conditioner, the indoor unit of air conditioner and air quality reminding method
CN108415750A (en) * 2018-03-08 2018-08-17 广东美的制冷设备有限公司 Interface display method, terminal, air regulator and the server of environmental parameter

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108415750A (en) * 2018-03-08 2018-08-17 广东美的制冷设备有限公司 Interface display method, terminal, air regulator and the server of environmental parameter
CN108415750B (en) * 2018-03-08 2022-02-11 广东美的制冷设备有限公司 Interface display method of environmental parameters, terminal, air conditioner and server
US20210379524A1 (en) * 2020-06-08 2021-12-09 Vitality Ventures HK Company Limited Air purifier
US11633687B2 (en) * 2020-06-08 2023-04-25 Vitality Ventures HK Company Limited Air purifier

Also Published As

Publication number Publication date
CN111076373B (en) 2020-12-15

Similar Documents

Publication Publication Date Title
US10234162B2 (en) Controller, indoor environment adjustment system, and indoor environment adjustment method
CN109520076B (en) Service time prompting method of air conditioner component, air conditioner, terminal and medium
CN106558916A (en) Information cuing method and information presentation device
WO2017049893A1 (en) Application program testing method, testing apparatus, and mobile terminal
CN111076373B (en) Display method, display device, terminal and readable storage medium
WO2017016025A1 (en) Indoor environment monitoring method and internet-of-things terminal
WO2023020081A1 (en) Method and apparatus for controlling air conditioner, and server
CN104572086A (en) Method and system for acquiring FPS (Frames Per Second) value based on Android Device
CN116482598A (en) Power consumption data monitoring method and device
JP2018048774A (en) Information providing system, information providing method and control program
CN114385287B (en) Presentation content determining method, apparatus, electronic device and storage medium
JP5918661B2 (en) Equipment diagnostic device and setting change reminding method
CN107943652B (en) Hard disk control method and device in storage system and readable storage medium
CN103595999A (en) Automatic detection method and automatic detection device of intelligent television
CN108920337A (en) A kind of device exception information methods of exhibiting and computer equipment
CN116737515B (en) Flash memory parameter visualization method, system and storage medium
CN111176958B (en) Information monitoring method, system and storage medium
US20110282824A1 (en) Technologies for mapping a set of criteria
CN108168023A (en) Method and system for detecting state of return air filter screen
CN114402268A (en) Presenting a current state of a device depending on a privacy mode
CN106482742A (en) The acquisition methods of meter step data and device
US20130232467A1 (en) Program generating device, program generating program, and program generating method
CN112682301B (en) Water pump inspection method, inspection system, water pump and computer readable storage medium
CN100501669C (en) Screen protection system and method
CN111352793A (en) Method and device for monitoring application use data

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
GR01 Patent grant
GR01 Patent grant