Statistical method for custom energy consumption data of energy management platform and related device

By providing customized energy consumption statistics methods on the energy management platform, users can customize energy consumption statistics algorithms, solving the problem of poor applicability of energy consumption statistics in the existing technology and achieving higher applicability and user experience.

CN119807259APending Publication Date: 2025-04-11SHENZHEN KANGBIDA CONTROL TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411893667.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-20
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

The statistics of energy consumption data of the existing energy management platform are poor, and it is difficult to meet the diverse needs of users. Technical personnel need to redevelop the design algorithm logic.

Method used

Provides a custom energy consumption data statistics method for the energy management platform. By obtaining the user's custom energy consumption data statistics instructions, outputting the template file of the custom energy consumption data statistics algorithm. The user adds code based on the template file, generates a custom energy consumption data statistics algorithm file, and parses and runs the file to generate output data.

Benefits of technology

It realizes rapid response to user-defined energy consumption data statistics requirements, improves the applicability and user experience of the energy consumption statistics system, and reduces the time for system development and design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119807259A_ABST
    Figure CN119807259A_ABST
Patent Text Reader

Abstract

The invention provides a statistical method for custom energy consumption data of an energy management platform and a related device. The method comprises the steps of obtaining configuration information of input data and output data in a user-defined energy consumption data statistical algorithm when a statistical instruction of a user for user-defined energy consumption data is monitored; meanwhile, a template file of a user-defined energy consumption statistical algorithm is output; the template file is used for indicating a user to add a code of a user-defined energy consumption statistical algorithm on the basis of the template file to obtain a user-defined energy consumption data statistical algorithm file; and obtaining and analyzing a user-defined energy consumption data statistical algorithm file uploaded by the user, and running the user-defined energy consumption data statistical algorithm based on the configuration information of the input data to obtain corresponding output data. According to the method, the user-defined energy consumption statistical algorithm can be written through the template file when the user has a new energy consumption data statistical requirement, so that the user-defined energy consumption statistical requirement of the user is met, and the adaptability is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data statistics, and in particular to a statistical method and related devices for user-defined energy consumption data of an energy management platform. Background Art

[0002] The statistics of energy consumption data involve many aspects, including data collection, classification, calculation and analysis; the collection of energy consumption data is usually carried out through various metering devices, such as electricity meters, sensors, etc., and the data is updated in real time through the energy consumption statistics system; after obtaining the directly collected energy consumption data, other energy consumption data can be further calculated through the system's built-in algorithms.

[0003] With the continuous development of technology, users have more and more demands for energy consumption data, and the types of energy consumption data statistics preset by the system are often difficult to meet the actual needs of users. At present, when there is a new demand for energy consumption data statistics, it is necessary to wait for technicians to redevelop and design, modify the algorithm logic or add a new algorithm logic program, which has poor applicability. Summary of the invention

[0004] The embodiment of the present invention provides a statistical method and related devices for user-defined energy consumption data of an energy management platform to solve the problem of poor applicability of energy consumption data statistics.

[0005] In a first aspect, an embodiment of the present invention provides a statistical method for custom energy consumption data of an energy management platform, comprising:

[0006] When a user's statistical instruction for the custom energy consumption data is detected, configuration information of input data and output data in the custom energy consumption data statistical algorithm is obtained;

[0007] Output a template file of a custom energy consumption statistics algorithm; the template file is used to instruct the user to add the code of the custom energy consumption statistics algorithm on the basis of the template file to obtain a custom energy consumption data statistics algorithm file;

[0008] Obtain and parse the custom energy consumption data statistical algorithm file uploaded by the user, and run the custom energy consumption data statistical algorithm based on the configuration information of the input data to obtain the corresponding output data;

[0009] The calculated output data is stored in the database according to the corresponding configuration information.

[0010] In a second aspect, an embodiment of the present invention provides a statistical device for custom energy consumption data of an energy management platform, including:

[0011] A configuration information acquisition module is used to acquire configuration information of input data and output data in a custom energy consumption data statistical algorithm when a user's statistical instruction for custom energy consumption data is detected;

[0012] A file output module, used to output a template file of a custom energy consumption statistical algorithm; the template file is used to instruct the user to add the code of the custom energy consumption statistical algorithm on the basis of the template file to obtain a custom energy consumption data statistical algorithm file;

[0013] The algorithm analysis module is used to obtain and analyze the user-defined energy consumption data statistical algorithm file uploaded by the user, and run the user-defined energy consumption data statistical algorithm based on the configuration information of the input data to obtain the corresponding output data;

[0014] The data storage module is used to store the calculated output data in the database according to the corresponding configuration information.

[0015] In a third aspect, an embodiment of the present invention provides an energy management platform, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the processor implements the steps of a statistical method for custom energy consumption data of the energy management platform as described in any possible implementation of the first aspect above.

[0016] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the statistical method for custom energy consumption data of the energy management platform as described in the first aspect or any possible implementation method of the first aspect are implemented.

[0017] An embodiment of the present invention provides a statistical method and related device for custom energy consumption data of an energy management platform. When the method detects a user's statistical instruction for custom energy consumption data, it obtains the configuration information of the input data and output data in the custom energy consumption data statistical algorithm; and outputs a template file of the custom energy consumption statistical algorithm at the same time; the template file is used to instruct the user to add the code of the custom energy consumption statistical algorithm on the basis of the template file to obtain a custom energy consumption data statistical algorithm file; then the custom energy consumption data statistical algorithm file uploaded by the user is obtained and parsed, and the custom energy consumption data statistical algorithm is run based on the configuration information of the input data to obtain the corresponding output data. The above method can write a custom energy consumption statistical algorithm through a template file when the user has a new energy consumption data statistical demand, thereby meeting the user's custom energy consumption statistical demand, has strong adaptability, and optimizes the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0019] Figure 1 It is a flow chart of a statistical method for customizing energy consumption data of an energy management platform provided by an embodiment of the present invention;

[0020] Figure 2 is a schematic diagram of a configuration page of a database table provided in an embodiment of the present invention;

[0021] Figure 3 is a schematic diagram of a configuration page of a custom energy consumption data statistical algorithm provided in an embodiment of the present invention;

[0022] Figure 4 It is a schematic diagram of the structure of a statistical device for custom energy consumption data of an energy management platform provided by an embodiment of the present invention;

[0023] Figure 5 Schematic diagram of an energy management platform provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0024] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.

[0025] In the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0026] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0027] In addition, the “plurality” mentioned in the embodiments of the present application should be interpreted as two or more.

[0028] In order to make the purpose, technical solutions and advantages of the present invention more clear, specific embodiments will be described below in conjunction with the accompanying drawings.

[0029] See also Figure 1 , which shows a flow chart of the implementation of the statistical method of custom energy consumption data of the energy management platform provided by an embodiment of the present invention, and is described in detail as follows:

[0030] S101: when a user's statistical instruction for custom energy consumption data is detected, configuration information of input data and output data in a statistical algorithm for custom energy consumption data is obtained.

[0031] The executor of this embodiment is the energy management platform. This embodiment uses Web development technology to build an energy consumption data statistics system in the energy management platform. The back-end of the system selects the Java technology stack to develop the functional interface, and the front-end selects the Vue technology stack to develop the user operation interface. MySQL is used to store the basic data of the operation pages in the energy consumption data statistics system; the Influxdb database is used to store real-time changing energy consumption and other data.

[0032] In a possible implementation manner, before S101, the method provided in this embodiment further includes:

[0033] The data management page is displayed to allow users to manage data; the data management content includes data source management, database table management and data set management.

[0034] In this embodiment, Figure 2 A configuration page of a database table is shown, such as Figure 2As shown in the figure, users can manage system data, including data source management, database table management and data set management; data source management includes adding, editing, modifying and deleting data source information, such as adding and editing the link address of MySQL database and Influxdb database. Database table management includes searching the data structure and data of system tables in the database, and adding, deleting, searching and modifying table data of user-defined data tables. Specifically, users can add, delete, search and modify the custom data tables in the Influxdb database. For the data tables in the MySQL database, users cannot perform any operations, and can only add and edit the link address and other information of the MySQL database in the data source management. Data set management includes adding, editing, modifying and deleting data set information, and can add four types of data sets: single data set, combined data set, interface data set and real-time data set.

[0035] In a possible implementation, the specific implementation process of S101 includes:

[0036] When a user's demand instruction for self-defined energy consumption data statistics is detected, a configuration page for input data and output data is displayed to enable the user to configure the storage information of the input data and output data in the database; the storage information includes the data name, the database to which the data name belongs, the database table, and the storage location of the data in the database table;

[0037] Get the configuration information of input data and output data entered by the user.

[0038] Specifically, the energy consumption data statistics system includes a custom algorithm adding module; when the user clicks on the custom algorithm adding module, the energy management platform can monitor the user's statistical instructions for the custom energy consumption data, and display the configuration interface of the input data and output data on the display interface of the energy consumption data statistics system. Specifically, the configuration interface of the input data includes a selection box for the input data, and the selection box includes configuration information corresponding to all the data in the database, including various screening conditions such as the database, database table, and data set to which each type of data belongs. The user can select the database, data table, data set, and data name of the input data in the selection box for the input data. For example, in the energy management platform, the user can select the output current from 0:00 to 24:00 in the inverter data table and the output current data set under a certain database through the selection box; or the user can select the equipment power consumption of a certain merchant or all merchants on a certain floor of facilities such as shopping malls, airports, and railway stations within a certain period of time. Generally speaking, the custom dimensions in the user-defined algorithm usually include data type dimensions, time dimensions, regional dimensions, calculation formula dimensions, etc.; in actual use, commonly used data statistics, screening, sorting, and calculation methods can be applied to the custom energy consumption statistics algorithm through the MVEL code format.

[0039] Specifically, the user needs to set the configuration information of the output data, including the data table, data set and database corresponding to the output data. After obtaining the output data, store the output data in the corresponding location of the database. For example, if the user wants to customize the calculation of the average value of the output current every two hours, it is necessary to first build a data set of the average value of the output current for 2 hours in the database, then associate the data set with the inverter data table, and fill in the data set, data table and database to which the output data belongs in the configuration information of the output data.

[0040] S102: Output a template file of a custom energy consumption statistics algorithm; the template file is used to instruct the user to add the code of the custom energy consumption statistics algorithm on the basis of the template file to obtain a custom energy consumption data statistics algorithm file.

[0041] In a possible implementation, the specific implementation process of S102 includes:

[0042] Output and display a download link of the template file; so that the user can download the template file according to the download link.

[0043] In this embodiment, when the energy management platform detects the user's statistical instructions for customized energy consumption data, it is also used to display the basic configuration page, which is provided with a download link of the template file. The user can click the download link button of the template file, or copy the download link to download the template file. The template file is an MVEL expression language file.

[0044] In one possible implementation, this embodiment can set a coding area on the basic configuration page. The coding area is in the form of a text box, and an unchangeable code template is set in the text box. The user only needs to continue to write the code of the custom energy consumption data statistical algorithm based on the code template, and after writing, click Finish to upload the custom energy consumption data statistical algorithm to the energy management platform. This method does not require downloading template files, further optimizing the user experience.

[0045] In a possible implementation manner, the code of the template file includes fixed data type definition code and return parameter definition code.

[0046] Specifically, the header of the module file has pre-stored the definition code of the data type, stipulated the data type that can be used, and set the return parameter code at the end. Users can define input data and output data based on the template file, and write the code corresponding to the custom energy consumption data statistical algorithm. Specifically, the code corresponding to the custom energy consumption data statistical algorithm performs various operations on the input data according to user needs, such as filtering time, deduplication, various basic mathematical operations, regular operations, etc. Finally, define the data to be output in the end, and bind it to the fixed return parameter definition code to complete the writing. After writing is completed, the user can upload the custom energy consumption data statistical algorithm file from the basic configuration page to the energy management platform.

[0047] S103: Acquire and parse the user-defined energy consumption data statistical algorithm file uploaded by the user, and run the user-defined energy consumption data statistical algorithm based on the configuration information of the input data to obtain corresponding output data.

[0048] In a possible implementation, the specific implementation process of S103 includes:

[0049] Call the MVEL expression engine to execute the custom energy consumption data statistical algorithm in the custom energy consumption data statistical algorithm file, and call the corresponding data in the database as input data based on the configuration information of the input data, input the input data into the custom energy consumption data statistical algorithm, and output the corresponding output data.

[0050] Specifically, MVEL (MVFLEX Expression Language) is a dynamic / static hybrid embedded expression language based on the Java platform. It supports multiple expression types, such as Boolean expressions, mathematical operations, string operations, etc., and can be seamlessly integrated with Java objects. MVEL is not limited to expression languages, but can also be used as a template language for configuration and string construction. The present embodiment uses the MVEL expression language to dynamically parse and execute expressions, and its syntax is very concise, easy to understand and use, and convenient for users.

[0051] This embodiment uses the MVEL expression engine to parse out the custom energy consumption data statistical algorithm formula in the custom energy consumption data statistical algorithm file, so that the energy management platform can execute the custom energy consumption data statistical algorithm.

[0052] In this embodiment, after the energy management platform runs the custom energy consumption data statistical algorithm, it calls the corresponding input data in the database based on the configuration information of the input data, calculates the input data using the custom energy consumption data statistical algorithm, and obtains the corresponding output data.

[0053] S104: storing the calculated output data in the database according to the corresponding configuration information.

[0054] In this embodiment, Figure 3 The configuration page of the custom energy consumption data statistics algorithm provided in this embodiment is shown, such as Figure 3 As shown, after uploading the custom energy consumption data algorithm file and completing the configuration of the input data and output data, run the custom energy consumption data algorithm file. The energy management platform can extract the algorithm expression in the custom energy consumption data algorithm file and display it on the configuration page, so that users can check whether there are any problems with the custom algorithm. If there are any problems, the custom energy consumption algorithm file can be downloaded again and modified, and then uploaded and run again after the modification is completed.

[0055] In a possible implementation manner, the method provided in this embodiment further includes:

[0056] When a management instruction of the user for the target energy consumption statistical algorithm is monitored, the file corresponding to the target energy consumption statistical algorithm is output, so that the user can update the file corresponding to the target energy consumption statistical algorithm; the target energy consumption statistical algorithm is any custom energy consumption data statistical algorithm;

[0057] Obtain and parse the updated target energy consumption statistical algorithm file uploaded by the user.

[0058] In this embodiment, the energy management platform can also set a configuration box for the algorithm name on the configuration page of the custom energy consumption data statistical algorithm, and the user can customize the algorithm name in the configuration box of the algorithm name. For example, the output current average value calculation module, the inverter output power calculation module, the equipment daily power consumption statistics module, etc.

[0059] This embodiment can also count all the custom energy consumption data algorithms to obtain a custom energy consumption data algorithm statistical table, display the custom energy consumption data algorithm statistical table, and link each algorithm name in the custom energy consumption data algorithm statistical table to the corresponding configuration page. When the user needs to update the target energy consumption statistical algorithm, the target energy consumption statistical algorithm can be found through the custom energy consumption data algorithm statistical table. When the energy management platform detects the user's click operation (management instruction) on the algorithm name of the target energy consumption statistical algorithm, the configuration page of the algorithm pops up. The configuration page includes a download link of the target energy consumption statistical algorithm, a configuration module for input data, and a configuration module for output data; the user can download the target energy consumption statistical algorithm file based on the download link of the target energy consumption statistical algorithm, modify the target energy consumption statistical algorithm file, and upload the modified target energy consumption statistical algorithm file to the energy management platform. The user can also update the configuration information of the input data through the configuration module of the input data, and update the configuration information of the output data through the configuration module of the output data. After receiving the updated target energy consumption statistical algorithm file, the configuration information of the input data and the configuration information of the output data, the energy management platform re-parses the target energy consumption statistical algorithm file, executes the latest target energy consumption statistical algorithm based on the latest input data, and calculates the corresponding output data.

[0060] The above method can realize user-defined energy consumption data statistical algorithm and improve the applicability of energy consumption statistical system. Compared with the conventional energy consumption statistical system which requires technical personnel to redevelop before using new algorithm logic, the statistical method of customized energy consumption data of the energy management platform provided by this embodiment can meet the personalized needs of users more quickly and reduce the time of system development and design. In addition, by setting the algorithm management function, this embodiment can optimize the algorithm at any time when the user has algorithm optimization needs, avoiding the tedious process of rewriting the code and improving the system optimization efficiency.

[0061] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0062] The following is an embodiment of the device of the present invention. For details not described in detail therein, reference may be made to the corresponding method embodiment described above.

[0063] Figure 4 The schematic diagram of the structure of the statistical device for custom energy consumption data of the energy management platform provided by the embodiment of the present invention is shown. For the convenience of explanation, only the part related to the embodiment of the present invention is shown, which is described in detail as follows:

[0064] like Figure 4 As shown, the statistical device 100 of the custom energy consumption data of the energy management platform includes:

[0065] The configuration information acquisition module 110 is used to acquire the configuration information of the input data and the output data in the custom energy consumption data statistical algorithm when the user's statistical instruction for the custom energy consumption data is detected;

[0066] The file output module 120 is used to output a template file of a custom energy consumption statistical algorithm; the template file is used to instruct the user to add the code of the custom energy consumption statistical algorithm on the basis of the template file to obtain a custom energy consumption data statistical algorithm file;

[0067] The algorithm analysis module 130 is used to obtain and analyze the user-defined energy consumption data statistical algorithm file uploaded by the user, and run the user-defined energy consumption data statistical algorithm based on the configuration information of the input data to obtain corresponding output data;

[0068] The data storage module 140 is used to store the calculated output data into the database according to the corresponding configuration information.

[0069] In a possible implementation, the file output module 120 includes:

[0070] Output and display a download link of the template file; so that the user can download the template file according to the download link.

[0071] In a possible implementation manner, the template file includes fixed data type definition codes and return parameter definition codes.

[0072] In a possible implementation, the statistical device 100 for custom energy consumption data of the energy management platform further includes a data management module for:

[0073] The data management page is displayed to allow users to manage data; the data management content includes data source management, database table management and data set management; the data source includes MySQL database and Influxdb database.

[0074] In a possible implementation, the configuration information acquisition module 110 includes:

[0075] When a user's demand instruction for self-defined energy consumption data statistics is detected, a configuration page for input data and output data is displayed to enable the user to configure the storage information of the input data and output data in the database; the storage information includes the data name, the database to which the data name belongs, the database table, and the storage location of the data in the database table;

[0076] Get the configuration information of input data and output data entered by the user.

[0077] In a possible implementation, the algorithm parsing module 130 includes:

[0078] Call the MVEL expression engine to execute the custom energy consumption data statistical algorithm in the custom energy consumption data statistical algorithm file, and call the corresponding data in the database as input data based on the configuration information of the input data, input the input data into the custom energy consumption data statistical algorithm, and output the corresponding output data.

[0079] In a possible implementation, the statistical device 100 for custom energy consumption data of the energy management platform further includes a custom algorithm updating module for:

[0080] When a management instruction of the user for the target energy consumption statistical algorithm is monitored, the file corresponding to the target energy consumption statistical algorithm is output, so that the user can update the file corresponding to the target energy consumption statistical algorithm; the target energy consumption statistical algorithm is any custom energy consumption data statistical algorithm;

[0081] Obtain and parse the updated target energy consumption statistical algorithm file uploaded by the user.

[0082] Figure 5 Schematic diagram of an energy management platform provided by an embodiment of the present invention. Figure 5 As shown, the energy management platform 5 of this embodiment includes: a processor 50 and a memory 51. The memory 51 is used to store a computer program 52, and the processor 50 is used to call and run the computer program 52 stored in the memory 51 to perform the steps in the above-mentioned statistical method embodiments of the self-defined energy consumption data of each energy management platform, such as Figure 1 Alternatively, the processor 50 is used to call and run the computer program 52 stored in the memory 51 to implement the functions of each module / unit in the above-mentioned device embodiments, for example Figure 4 The functions of the modules 110 to 140 are shown.

[0083] Exemplarily, the computer program 52 may be divided into one or more modules / units, which are stored in the memory 51 and executed by the processor 50 to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program 52 in the energy management platform 5.

[0084] The energy management platform 5 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The energy management platform 5 may include, but is not limited to, a processor 50 and a memory 51. Those skilled in the art will appreciate that Figure 5 It is only an example of the energy management platform 5 and does not constitute a limitation of the energy management platform 5. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the energy management platform may also include input and output devices, network access devices, buses, etc.

[0085] The processor 50 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0086] The memory 51 may be an internal storage unit of the energy management platform 5, such as a hard disk or memory of the energy management platform 5. The memory 51 may also be an external storage device of the energy management platform 5, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the energy management platform 5. Further, the memory 51 may also include both an internal storage unit and an external storage device of the energy management platform 5. The memory 51 is used to store the computer program and other programs and data required by the energy management platform. The memory 51 may also be used to temporarily store data that has been output or is to be output.

[0087] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0088] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0089] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0090] In the embodiments provided by the present invention, it should be understood that the disclosed device / energy management platform and method can be implemented in other ways. For example, the device / energy management platform embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0091] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0092] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0093] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the statistical method embodiment of the custom energy consumption data of each energy management platform can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practices in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practices, computer-readable media does not include electrical carrier signals and telecommunication signals.

[0094] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A statistical method for custom energy consumption data of an energy management platform, characterized in that: include: When a user's statistical instruction for the custom energy consumption data is detected, configuration information of input data and output data in the custom energy consumption data statistical algorithm is obtained; Output template file of custom energy consumption statistics algorithm; The template file is used to instruct the user to add the code of the custom energy consumption statistical algorithm on the basis of the template file to obtain a custom energy consumption data statistical algorithm file; Obtain and parse the custom energy consumption data statistical algorithm file uploaded by the user, and run the custom energy consumption data statistical algorithm based on the configuration information of the input data to obtain the corresponding output data; The calculated output data is stored in the database according to the corresponding configuration information.

2. The statistical method for custom energy consumption data of the energy management platform according to claim 1, characterized in that: The template file for outputting the custom energy consumption statistics algorithm includes: Output and display a download link of the template file; so that the user can download the template file according to the download link.

3. The statistical method for custom energy consumption data of the energy management platform according to claim 1, characterized in that: The template file includes fixed data type definition codes and return parameter definition codes.

4. The statistical method for custom energy consumption data of the energy management platform according to claim 1, characterized in that: Before obtaining the configuration information of input data and output data in the custom energy consumption data statistics algorithm when the user's demand instruction for custom energy consumption data statistics is monitored, the method further includes: The data management page is displayed to allow users to manage data; the data management content includes data source management, database table management and data set management; the data source includes MySQL database and Influxdb database.

5. The statistical method for custom energy consumption data of the energy management platform according to claim 1, characterized in that: When a user's demand instruction for self-defined energy consumption data statistics is monitored, configuration information of input data and output data in the self-defined energy consumption data statistics algorithm is obtained, including: When a user's demand instruction for self-defined energy consumption data statistics is detected, a configuration page for input data and output data is displayed to enable the user to configure the storage information of the input data and output data in the database; the storage information includes the data name, the database to which the data name belongs, the database table, and the storage location of the data in the database table; Get the configuration information of input data and output data entered by the user.

6. The statistical method for custom energy consumption data of the energy management platform according to claim 1, characterized in that: The obtaining and parsing of the user-defined energy consumption data statistical algorithm file uploaded by the user, and running the user-defined energy consumption data statistical algorithm based on the configuration information of the input data to obtain the corresponding output data, includes: Call the MVEL expression engine to execute the custom energy consumption data statistical algorithm in the custom energy consumption data statistical algorithm file, and call the corresponding data in the database as input data based on the configuration information of the input data, input the input data into the custom energy consumption data statistical algorithm, and output the corresponding output data.

7. The statistical method for custom energy consumption data of the energy management platform according to claim 1, characterized in that: The method further comprises: When a management instruction of the user for the target energy consumption statistical algorithm is monitored, the file corresponding to the target energy consumption statistical algorithm is output, so that the user can update the file corresponding to the target energy consumption statistical algorithm; the target energy consumption statistical algorithm is any custom energy consumption data statistical algorithm; Obtain and parse the updated target energy consumption statistical algorithm file uploaded by the user.

8. A statistical device for custom energy consumption data of an energy management platform, characterized in that: include: A configuration information acquisition module is used to acquire configuration information of input data and output data in a custom energy consumption data statistical algorithm when a user's statistical instruction for custom energy consumption data is detected; File output module, used to output template files of custom energy consumption statistics algorithm; The template file is used to instruct the user to add the code of the custom energy consumption statistical algorithm on the basis of the template file to obtain a custom energy consumption data statistical algorithm file; The algorithm analysis module is used to obtain and analyze the user-defined energy consumption data statistical algorithm file uploaded by the user, and run the user-defined energy consumption data statistical algorithm based on the configuration information of the input data to obtain the corresponding output data; The data storage module is used to store the calculated output data in the database according to the corresponding configuration information.

9. An energy management platform, characterized in that: It comprises a processor and a memory, the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to execute the statistical method of custom energy consumption data of the energy management platform as described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the statistical method for customizing energy consumption data of the energy management platform as described in any one of claims 1 to 7 are implemented.