Disclosure of Invention
The invention mainly aims to provide a power consumption information sharing method, a power consumption information sharing device and a computer readable storage medium, and aims to solve the technical problem that a user cannot freely acquire power consumption data of an indoor unit in the prior art.
In order to achieve the above object, the present invention provides a power consumption information sharing method, including:
acquiring power utilization information of indoor units in a multi-split air conditioning system;
when an inquiry request sent by a user terminal is received, determining target electricity utilization information corresponding to the inquiry request;
detecting whether the user terminal is authorized to inquire the target electricity utilization information;
and if the user terminal has the right to inquire the target electricity utilization information, sharing the target electricity utilization information to the user terminal.
Optionally, the step of acquiring power consumption information of an indoor unit in the multi-split air conditioning system includes:
calculating the total electric quantity consumption of the multi-split air conditioning system in each sampling interval and the instantaneous energy demand value of each indoor unit;
and calculating to obtain the power consumption information of each indoor unit according to the total power consumption in each sampling interval and the instantaneous energy demand value of each indoor unit.
Optionally, the step of calculating the power consumption information of each indoor unit according to the total power consumption amount in each sampling interval and the instantaneous energy demand value of each indoor unit includes:
obtaining the total instantaneous energy demand of all the indoor units according to the instantaneous energy demand of each indoor unit;
obtaining an electric quantity consumption coefficient corresponding to each indoor unit according to the instantaneous energy demand value of each indoor unit and the total instantaneous energy demand value;
obtaining an electric quantity consumption value of each indoor unit in each sampling interval according to the electric quantity consumption total quantity and the electric quantity consumption coefficient corresponding to each indoor unit;
and summarizing the electric quantity consumption value of each indoor unit in each sampling interval to obtain the electric consumption information of each indoor unit.
Optionally, after the power consumption information of the indoor unit in the multi-split air conditioning system is acquired, the method further includes:
and when the current time is at a preset time point, sending the electricity utilization information in a preset time period to a terminal corresponding to the subscription account.
Optionally, the step of sending the electricity consumption information within the preset time period to the terminal corresponding to the subscription account when the current time is at the preset time point includes:
when the current time is at a preset time point, acquiring a subscription account from a subscription list;
confirming the account authority of the subscription account number, and determining power utilization information corresponding to the subscription account number according to the account authority of the subscription account number;
and sending the electricity utilization information corresponding to the subscription account to a terminal corresponding to the subscription account.
Optionally, if the user terminal has the right to query the target power consumption information, the step of sharing the target power consumption information to the user terminal includes:
if the user terminal has the right to inquire the target electricity utilization information, acquiring a charging standard;
obtaining electricity charge information according to the target electricity information and a charging standard;
and sharing the target electricity utilization information and the electricity utilization cost information to the user terminal.
Optionally, the step of sharing the target power consumption information to the user terminal if the user terminal has the right to query the target power consumption information further includes:
if the user terminal has the right to inquire the target electricity utilization information, determining a target display type corresponding to the inquiry request;
and sharing the target electricity utilization information to the user terminal according to the target display type.
Optionally, after detecting whether the user terminal is authorized to query the target electricity consumption information, the method further includes:
and if the user terminal does not have the right to inquire the target electricity utilization information, the inquiry request is not responded.
In addition, in order to achieve the above object, the present invention further provides a power consumption information sharing apparatus, including: the power consumption information sharing method comprises a memory, a processor and a power consumption information sharing program which is stored on the memory and can run on the processor, wherein the power consumption information sharing program realizes the steps of the power consumption information sharing method when being executed by the processor.
In addition, to achieve the above object, the present invention further provides a computer-readable storage medium, in which a power consumption information sharing program is stored, and when the power consumption information sharing program is executed by a processor, the steps of the power consumption information sharing method are implemented.
According to the method, the power utilization information of the indoor unit in the multi-split air conditioning system is obtained, when an inquiry request sent by a user terminal is received, the target power utilization information corresponding to the inquiry request is determined, whether the account authority of the user terminal is authorized to inquire the target power utilization information is detected, and if the account authority of the user terminal is authorized to inquire the target power utilization information, the target power utilization information is shared to the user terminal. By the invention, a user can inquire the electricity utilization information of the indoor unit through any user terminal supporting the network communication protocol, so that the electricity utilization information is transparent to the user and is easy to obtain.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic structural diagram of an electricity consumption information sharing apparatus in a hardware operating environment according to an embodiment of the present invention.
The electricity information sharing device can be a PC, and can also be terminal equipment such as a smart phone, a tablet personal computer and a portable computer.
As shown in fig. 1, the electricity consumption information sharing apparatus may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration of the power consumption information sharing apparatus shown in fig. 1 does not constitute a limitation of the power consumption information sharing apparatus, and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include an operating system, a network communication module, a user interface module, and a power consumption information sharing program therein.
In the electricity consumption information sharing apparatus shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the power consumption information sharing program stored in the memory 1005, and perform the following operations:
acquiring power utilization information of indoor units in a multi-split air conditioning system;
when an inquiry request sent by a user terminal is received, determining target electricity utilization information corresponding to the inquiry request;
detecting whether the user terminal is authorized to inquire the target electricity utilization information;
and if the user terminal has the right to inquire the target electricity utilization information, sharing the target electricity utilization information to the user terminal.
Further, the processor 1001 may call the electricity consumption information sharing program stored in the memory 1005, and further perform the following operations:
calculating the total electric quantity consumption of the multi-split air conditioning system in each sampling interval and the instantaneous energy demand value of each indoor unit;
and calculating to obtain the power consumption information of each indoor unit according to the total power consumption in each sampling interval and the instantaneous energy demand value of each indoor unit.
Further, the processor 1001 may call the electricity consumption information sharing program stored in the memory 1005, and further perform the following operations:
obtaining the total instantaneous energy demand of all the indoor units according to the instantaneous energy demand of each indoor unit;
obtaining an electric quantity consumption coefficient corresponding to each indoor unit according to the instantaneous energy demand value of each indoor unit and the total instantaneous energy demand value;
obtaining an electric quantity consumption value of each indoor unit in each sampling interval according to the electric quantity consumption total quantity and the electric quantity consumption coefficient corresponding to each indoor unit;
and summarizing the electric quantity consumption value of each indoor unit in each sampling interval to obtain the electric consumption information of each indoor unit.
Further, the processor 1001 may call the electricity consumption information sharing program stored in the memory 1005, and further perform the following operations:
and when the current time is at a preset time point, sending the electricity utilization information in a preset time period to a terminal corresponding to the subscription account.
Further, the processor 1001 may call the electricity consumption information sharing program stored in the memory 1005, and further perform the following operations:
when the current time is at a preset time point, acquiring a subscription account from a subscription list;
confirming the account authority of the subscription account number, and determining power utilization information corresponding to the subscription account number according to the account authority of the subscription account number;
and sending the electricity utilization information corresponding to the subscription account to a terminal corresponding to the subscription account.
Further, the processor 1001 may call the electricity consumption information sharing program stored in the memory 1005, and further perform the following operations:
if the user terminal has the right to inquire the target electricity utilization information, acquiring a charging standard;
obtaining electricity charge information according to the target electricity information and a charging standard;
and sharing the target electricity utilization information and the electricity utilization cost information to the user terminal.
Further, the processor 1001 may call the electricity consumption information sharing program stored in the memory 1005, and further perform the following operations:
if the user terminal has the right to inquire the target electricity utilization information, determining a target display type corresponding to the inquiry request;
and sharing the target electricity utilization information to the user terminal according to the target display type.
Further, the processor 1001 may call the electricity consumption information sharing program stored in the memory 1005, and further perform the following operations:
and if the user terminal does not have the right to inquire the target electricity utilization information, the inquiry request is not responded.
Referring to fig. 2, fig. 2 is a schematic flow chart of a power consumption information sharing method according to a first embodiment of the present invention.
In one embodiment, the electricity consumption information sharing method includes:
step S10, acquiring power utilization information of indoor units in the multi-split air conditioning system;
in this embodiment, the power consumption information sharing device establishes a communication connection with the multi-split air conditioning system. The communication connection may be a wireless communication connection or a wired communication connection.
In an optional embodiment of the present invention, the step of acquiring power consumption information of an indoor unit in a multi-split air conditioning system includes:
i. the kth sampling interval (T) in some natural hourk-1~Tk) The sampling interval duration can be 30 s;
and ii, acquiring the operation data of each indoor unit at the time t, wherein the operation data comprises: the set temperature of the indoor unit, the ambient temperature, the operation mode, the opening degree of the electronic expansion valve, and the like. Calculating to obtain the instantaneous energy requirement value of each indoor unit at the moment by H-Hp × C (wherein Hp is the indoor unit matching number, C is an indoor unit capacity requirement coefficient, and the coefficient is obtained by calculating operation data), and recording the instantaneous energy requirement value as { x1, x2, x3 … xn }, wherein n represents the serial number of the indoor unit, and the instantaneous energy requirement value represents the average energy requirement value of each indoor unit in the sampling interval;
and iii, accumulating the instantaneous energy demand value of each indoor unit in the same refrigerant system at the time t to obtain the total instantaneous energy demand value of all the indoor units at the time t
Notation X
k;
Calculating the electric quantity consumption coefficient of each indoor unit in the sampling interval:
v. reading T from the electric meterkElectric quantity reading M at any momentkAnd at the last moment Mk-1Subtracting to obtain the total electric quantity M consumed by the air conditioner multi-connected system in the sampling area;
vi, the electric quantity consumption coefficient beta of each indoor unit in the sampling intervaliAnd calculating the total electric quantity M consumed by the air conditioner multi-connected system in the sampling interval to obtain the electric quantity consumed by each indoor unit in the sampling interval: mik=βiX M, wherein MikThe electric quantity consumed by the indoor unit i in the sampling interval;
judging whether the next integer point is reached, if not, returning to the step i; if yes, accumulating the electric quantity consumed by each indoor unit in each sampling interval within one hour to obtain the electric quantity consumed by each indoor unit within one hour, and returning to the step i.
And (6) obtaining the power utilization information of each indoor unit in the multi-split air conditioning system through the steps i to vii. In this embodiment, the electricity consumption information indicates the electricity consumption of each indoor unit, and is in kW · h units. The electricity usage information is stored in a memory. Referring to table 1, table 1 is a power consumption information storage conceptual table.
TABLE 1
After the electric quantity consumed by each indoor unit within one hour is obtained, the electric quantity consumed by each indoor unit within one day is further accumulated, and the electric quantity can be stored in the memory in the form of table 1. In this embodiment, the data storage format is not limited to the table, and the memory may be built in the electricity consumption information sharing device or independent of the electricity consumption information sharing device.
Step S20, when receiving an inquiry request sent by a user terminal, determining target electricity utilization information corresponding to the inquiry request;
in this embodiment, a user may send a query request to the power consumption information sharing device by operating a user terminal, where the query request includes a number of an indoor unit to be queried and a query time period.
In an optional embodiment, a user needs to query the power utilization information of the indoor unit a in 4 months, the user selects the indoor unit needing to be queried and the time period needing to be queried on an interactive interface of the user terminal, then click to confirm, the user terminal generates a query request based on user operation, and the query request is sent to the power utilization information sharing device. Referring to fig. 3, fig. 3 is a schematic view of an interactive interface in an embodiment of the electricity consumption information sharing method of the present invention. The electricity consumption information sharing device confirms that the target electricity consumption information is the electricity consumption information of the indoor unit a in 4 months based on the received query request.
Step S30, detecting whether the user terminal has the right to inquire the target electricity consumption information;
in this embodiment, there are a factory account, an administrator account, and a common account. Wherein, the factory account number: the system has the highest authority, can create an administrator account and a common user account, and can check all internal machines, initialize equipment and other high-level operations. The administrator account, created from the factory account, can view all internal machines. Air conditioning equipment cannot be controlled, initialization operation cannot be performed on the equipment, and account information cannot be modified among administrators. The common user account is created by an administrator or a factory account, and the creator selects the next internal machine during creation. After the creation is finished, only the internal machine data under the internal machine data can be controlled and checked.
In this embodiment, a user logs in an account owned by the user on a user terminal, and triggers an inquiry request for inquiring the power consumption information of the indoor unit a in 4 months, and after receiving the inquiry request, the power consumption information sharing device detects whether the account authority of the user terminal is authorized to inquire the target power consumption information. If the account is a factory account, an administrator account or a common user account corresponding to the indoor unit a, the user terminal has the right to inquire the target power utilization information, otherwise, the user terminal does not have the right to inquire the target power utilization information.
And step S40, if the user terminal has the right to inquire the target electricity utilization information, sharing the target electricity utilization information to the user terminal.
In this embodiment, if the account is a factory account, an administrator account, or a common user account corresponding to the indoor unit a, the user terminal has the right to query the target power consumption information. And calling the target electricity utilization information from the database and then sending the target electricity utilization information to the user terminal. In this embodiment, the target electricity consumption information may be sent to the user terminal in the form of a chart or a text.
Referring to fig. 4, fig. 4 is a scene schematic diagram of an embodiment of the electricity consumption information sharing method of the present invention. In this embodiment, the power consumption information sharing device shares the power consumption information to the user terminal based on a network communication protocol.
In the embodiment, the power consumption information of the indoor unit in the multi-split air conditioning system is acquired, when an inquiry request sent by a user terminal is received, target power consumption information corresponding to the inquiry request is determined, whether the user terminal is authorized to inquire the target power consumption information is detected, and if the user terminal is authorized to inquire the target power consumption information, the target power consumption information is shared to the user terminal. Through the embodiment, the user can inquire the electricity utilization information of the indoor unit through any user terminal supporting the network communication protocol, so that the electricity utilization information is public and transparent to the user and is easy to obtain.
Further, in an embodiment of the method for sharing electricity consumption information according to the present invention, step S10 includes:
calculating the total electric quantity consumption of the multi-split air conditioning system in each sampling interval and the instantaneous energy demand value of each indoor unit;
and calculating to obtain the power consumption information of each indoor unit according to the total power consumption in each sampling interval and the instantaneous energy demand value of each indoor unit.
i. The kth sampling interval (T) in some natural hourk-1~Tk) The sampling interval duration can be 30 s;
and ii, acquiring the operation data of each indoor unit at the time t, wherein the operation data comprises: the set temperature of the indoor unit, the ambient temperature, the operation mode, the opening degree of the electronic expansion valve, and the like. Calculating to obtain the instantaneous energy requirement value of each indoor unit at the moment by H-Hp × C (wherein Hp is the indoor unit matching number, C is an indoor unit capacity requirement coefficient, and the coefficient is obtained by calculating operation data), and recording the instantaneous energy requirement value as { x1, x2, x3 … xn }, wherein n represents the serial number of the indoor unit, and the instantaneous energy requirement value represents the average energy requirement value of each indoor unit in the sampling interval;
and iii, accumulating the instantaneous energy demand value of each indoor unit in the same refrigerant system at the time t to obtain the total instantaneous energy demand value of all the indoor units at the time t
Notation X
k;
Calculating the electric quantity consumption coefficient of each indoor unit in the sampling interval:
v. reading T from the electric meterkElectric quantity reading M at any momentkAnd at the last moment Mk-1Subtracting to obtain the total electric quantity M consumed by the air conditioner multi-connected system in the sampling area;
vi, the electric quantity consumption coefficient beta of each indoor unit in the sampling intervaliAnd calculating the total electric quantity M consumed by the air conditioner multi-connected system in the sampling interval to obtain the electric quantity consumed by each indoor unit in the sampling interval: mik=βiX M, wherein MikThe electric quantity consumed by the indoor unit i in the sampling interval;
judging whether the next integer point is reached, if not, returning to the step i; if yes, accumulating the electric quantity consumed by each indoor unit in each sampling interval within one hour to obtain the electric quantity consumed by each indoor unit within one hour, and returning to the step i.
And (6) obtaining the power utilization information of each indoor unit in the multi-split air conditioning system through the steps i to vii. In this embodiment, the electricity consumption information indicates the electricity consumption of each indoor unit, and is in kW · h units. The electricity usage information is stored in a memory. Referring to table 1, table 1 is a power consumption information storage conceptual table. After the electric quantity consumed by each indoor unit within one hour is obtained, the electric quantity consumed by each indoor unit within one day is further accumulated, and the electric quantity can be stored in the memory in the form of table 1. In this embodiment, the data storage format is not limited to the table, and the memory may be built in the electricity consumption information sharing device or independent of the electricity consumption information sharing device.
In this embodiment, the power consumption information sharing device carries out secondary processing's function to the electric quantity information of multi-split air conditioning system from the area to obtain the power consumption information of every indoor set, need not to rely on host computer and host computer software, make the more miniaturized lightweight of power consumption information sharing device, reduced the device cost.
Further, in an embodiment of the electricity consumption information sharing method according to the present invention, the step of calculating the electricity consumption information of each indoor unit according to the total amount of electricity consumption in each sampling interval and the instantaneous energy demand value of each indoor unit includes:
obtaining the total instantaneous energy demand of all the indoor units according to the instantaneous energy demand of each indoor unit;
obtaining an electric quantity consumption coefficient corresponding to each indoor unit according to the instantaneous energy demand value of each indoor unit and the total instantaneous energy demand value;
obtaining an electric quantity consumption value of each indoor unit in each sampling interval according to the electric quantity consumption total quantity and the electric quantity consumption coefficient corresponding to each indoor unit;
and summarizing the electric quantity consumption value of each indoor unit in each sampling interval to obtain the electric consumption information of each indoor unit.
i. The kth sampling interval (T) in some natural hourk-1~Tk) The sampling interval duration can be 30 s;
and ii, acquiring the operation data of each indoor unit at the time t, wherein the operation data comprises: the set temperature of the indoor unit, the ambient temperature, the operation mode, the opening degree of the electronic expansion valve, and the like. Calculating to obtain the instantaneous energy requirement value of each indoor unit at the moment by H-Hp × C (wherein Hp is the indoor unit matching number, C is an indoor unit capacity requirement coefficient, and the coefficient is obtained by calculating operation data), and recording the instantaneous energy requirement value as { x1, x2, x3 … xn }, wherein n represents the serial number of the indoor unit, and the instantaneous energy requirement value represents the average energy requirement value of each indoor unit in the sampling interval;
and iii, accumulating the instantaneous energy demand value of each indoor unit in the same refrigerant system at the time t to obtain the total instantaneous energy demand value of all the indoor units at the time t
Notation X
k;
Calculating the electric quantity consumption coefficient of each indoor unit in the sampling interval:
v. reading T from the electric meterkElectric quantity reading M at any momentkAnd at the last moment Mk-1Subtracting to obtain the total electric quantity M consumed by the air conditioner multi-connected system in the sampling area;
vi, the electric quantity consumption coefficient beta of each indoor unit in the sampling intervaliAnd calculating the total electric quantity M consumed by the air conditioner multi-connected system in the sampling interval to obtain the electric quantity consumed by each indoor unit in the sampling interval: mik=βiX M, wherein MikThe electric quantity consumed by the indoor unit i in the sampling interval;
judging whether the next integer point is reached, if not, returning to the step i; if yes, accumulating the electric quantity consumed by each indoor unit in each sampling interval within one hour to obtain the electric quantity consumed by each indoor unit within one hour, and returning to the step i.
And (6) obtaining the power utilization information of each indoor unit in the multi-split air conditioning system through the steps i to vii. In this embodiment, the electricity consumption information indicates the electricity consumption of each indoor unit, and is in kW · h units. The electricity usage information is stored in a memory. Referring to table 1, table 1 is a power consumption information storage conceptual table. After the electric quantity consumed by each indoor unit within one hour is obtained, the electric quantity consumed by each indoor unit within one day is further accumulated, and the electric quantity can be stored in the memory in the form of table 1. In this embodiment, the data storage format is not limited to the table, and the memory may be built in the electricity consumption information sharing device or independent of the electricity consumption information sharing device.
In this embodiment, the power consumption information sharing device carries out secondary processing's function to the electric quantity information of multi-split air conditioning system from the area to obtain the power consumption information of every indoor set, need not to rely on host computer and host computer software, make the more miniaturized lightweight of power consumption information sharing device, reduced the device cost.
Further, in an embodiment of the method for sharing electricity consumption information according to the present invention, after step S10, the method further includes:
and when the current time is at a preset time point, sending the electricity utilization information in a preset time period to a terminal corresponding to the subscription account.
In this embodiment, the electricity consumption information may be sent to the subscription account in an automatic distribution manner. In an embodiment, a user is a user of the indoor unit a, and the user needs to know the electricity consumption condition of the indoor unit a every month, and then, at No. 1: 00 every month, the electricity consumption information of the indoor unit a in the last month is extracted from the database and sent to a subscription account of the user, for example, a mailbox account or an electricity consumption information sharing device reserved by the user is pre-assigned to a terminal corresponding to the account.
Through this embodiment, send the power consumption information of its needs to the user automatically for the mode that the user acquireed the power consumption information is more convenient, promotes user experience.
Further, in an embodiment of the electricity consumption information sharing method according to the present invention, when the current time is at a preset time point, the step of sending the electricity consumption information in a preset time period to a terminal corresponding to the subscription account includes:
when the current time is at a preset time point, acquiring a subscription account from a subscription list;
confirming the account authority of the subscription account number, and determining power utilization information corresponding to the subscription account number according to the account authority of the subscription account number;
and sending the electricity utilization information corresponding to the subscription account to a terminal corresponding to the subscription account.
In this embodiment, a subscription request sent by a user terminal based on user operation may be accepted, for example, a user a logs in a general user account on the user terminal, and triggers a subscription request 1 for acquiring power consumption information of an indoor unit in the previous month by operating No. 1: 00 per month; the user B logs in a common user account on a user terminal, triggers a subscription request 2 for acquiring indoor machine electricity information of the previous month at No. 5: 00 per month through operation, and stores the subscription request in a subscription list. When the time reaches the preset time point, when the number 1: 00 per month, responding to the subscription request 1, if the subscription account corresponding to the subscription request 1 is determined to be a common user account, further confirming the number of an indoor unit corresponding to the common user account, and if the subscription account corresponds to the indoor unit a, sending the electricity utilization information of the indoor unit a in the previous month to a login terminal of the common user account; and when the time reaches 5 # 00:00 of a preset time point every month, responding to the subscription request 2, and if the subscription account corresponding to the subscription request 2 is determined to be a factory account or an administrator account, sending the power consumption information of each indoor unit in the previous month to a login terminal of the factory account or the administrator account.
Through this embodiment, send the power consumption information of its needs to the user automatically for the mode that the user acquireed the power consumption information is more convenient, promotes user experience.
Further, in an embodiment of the method for sharing electricity consumption information according to the present invention, step S40 includes:
if the user terminal has the right to inquire the target electricity utilization information, acquiring a charging standard;
obtaining electricity charge information according to the target electricity information and a charging standard;
and sharing the target electricity utilization information and the electricity utilization cost information to the user terminal.
In this embodiment, if the account authority of the user terminal has an authority to query the target electricity consumption information, for example, the user terminal has an authority to query the electricity consumption information of the indoor unit a in 4 months, if the electricity consumption information of the indoor unit a in 4 months is 100kW · h according to the record in the database, the electricity consumption charge of the indoor unit a in 4 months is calculated according to the preset charging standard, and the electricity consumption charge and the electricity consumption information are shared to the user terminal. In an embodiment of the present invention, the electricity consumption information of each indoor unit in the previous month may be automatically calculated at No. 1: 00/month, and the electricity consumption information may be sent to the corresponding user terminal.
Through this embodiment, calculate the power consumption expense of every indoor set to send to user terminal, make the power consumption condition of indoor set more open transparent to the user.
Further, in an embodiment of the method for sharing electricity consumption information according to the present invention, step S40 further includes:
if the user terminal has the right to inquire the target electricity utilization information, determining a target display type corresponding to the inquiry request;
and sharing the target electricity utilization information to the user terminal according to the target display type.
In this embodiment, a user may send a query request to the electricity consumption information sharing device by operating a user terminal, where the query request includes a number of an indoor unit to be queried, a query time period, and a data display type. And if the target electricity utilization information corresponding to the query request is the electricity utilization information of the indoor units a, b and c in 4 months, and the display type is a bar graph. After receiving the query request, the electricity utilization information sharing device extracts electricity utilization information of the indoor units a, b and c in 4 months from the database, arranges the electricity utilization information of the indoor units a, b and c in 4 months into a histogram form, and sends the histogram form to the user terminal. Referring to fig. 5, fig. 5 is a schematic view of information sharing in an embodiment of the power consumption information sharing method of the present invention. If the target electricity utilization information corresponding to the query request is electricity utilization information of the indoor unit a in each day of 4 months and the display type is a line graph, after receiving the query request, the electricity utilization information sharing device extracts the electricity utilization information of the indoor unit a in 4 months from the database, arranges the electricity utilization information of the indoor unit a in 4 months into a line graph form by taking the day as a unit, and sends the line graph form to the user terminal.
In the embodiment, the user can select different information display types, and the electricity consumption information sharing device adjusts the shared electricity consumption information type based on the user selection, so that the requirement of the user on detail query is met.
Further, in an embodiment of the method for sharing electricity consumption information according to the present invention, after step S30, the method further includes:
and if the account authority of the user terminal does not have the right to inquire the target electricity utilization information, the inquiry request is not responded.
In this embodiment, if the account authority of the user terminal does not have the right to query the target power consumption information, the query request is not responded. And if the target electricity utilization information corresponding to the query request is the electricity utilization information of the indoor unit b in 4 months, if the account authority of the user terminal sending the query request can only check the electricity utilization information of the indoor unit a, not responding to the query request. Privacy protection of electricity consumption information is provided.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where an electricity consumption information sharing program is stored on the computer-readable storage medium, and when the electricity consumption information sharing program is executed by a processor, the steps of the electricity consumption information sharing method are implemented.
The specific embodiment of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the electricity consumption information sharing method described above, and details thereof are not repeated herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.