A real-time energy data display method and device
Through indicator model processing and visual display, it solves the problem that traditional platforms cannot process time-series data in the energy industry, achieves efficient processing and display of real-time energy data, and meets the time-series data needs of the energy industry.
Patent Information
- Application Number
- CN202311138635.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-01
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2043-09-01
AI Technical Summary
Traditional business intelligence platforms cannot effectively process the time-series data of the energy industry and cannot meet the needs of time-series data processing.
Process real-time energy data through the indicator model, obtain data from multiple data platforms, filter and process the data, generate target real-time energy data, and display it visually.
It achieves efficient processing and display of real-time energy data, meets the sequential data processing needs of the energy industry, and improves the efficiency and accuracy of data visualization.
Smart Images

Figure CN117170678B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing / energy technology, and in particular to a method and device for displaying real-time energy data. Background Art
[0002] At present, with the continuous development of information technology, the technology of data management, analysis and application computing is also constantly updated and improved. From the traditional database to the current data middle platform, from the traditional intelligent application to the current intelligent report and automatic report, new methods and paths are provided to further strengthen and improve the management and application of data.
[0003] The data collected and analyzed by traditional intelligent platforms are mostly relational data, while the data collected by the energy industry is time series data with high requirements for time series. Traditional business intelligence platforms cannot meet the current time series data processing needs. Summary of the invention
[0004] The embodiments of the present application provide a real-time energy data display method and device, which can realize efficient processing of real-time energy data (time series data) through an indicator model.
[0005] In a first aspect, a real-time energy data display method is applied to an electronic device, comprising:
[0006] Acquire real-time energy data, wherein the real-time energy data comes from multiple data platforms;
[0007] Calling the indicator model, and processing the real-time energy data according to the indicator model to obtain target real-time energy data;
[0008] The target real-time energy data is visualized.
[0009] Preferably, the data platform includes a time series database, which is used to store the real-time energy data with time series, and the real-time energy data is obtained by processing the energy data of the multiple data platforms through a stream processing engine.
[0010] Preferably, before acquiring the real-time energy data, the method further comprises:
[0011] Determine a model dimension, and encode the model dimension to obtain encoding information, wherein the encoding information is used to indicate a type of the model dimension;
[0012] Determine, according to the coding information, an association table corresponding to the model dimension;
[0013] The indicator model is created according to the association table.
[0014] Preferably, creating an indicator model according to the association table includes:
[0015] Determine, according to the association table, an indicator parameter and a calculation dimension corresponding to the indicator parameter;
[0016] Setting the data source of the indicator parameters;
[0017] The indicator model is created according to the data source, the indicator parameters and the calculation dimensions.
[0018] Preferably, the real-time energy data corresponds to a plurality of data tables, and each data table corresponds to one data platform; the real-time energy data is processed according to the indicator model to obtain target real-time energy data, including:
[0019] Determine the data source of the indicator parameter corresponding to the indicator model;
[0020] According to the data source, the multiple data tables are screened to obtain at least one target data table corresponding to the data source;
[0021] Determine the level of the to-be-selected field corresponding to each of the target data tables in the at least one target data table according to a mapping relationship between the levels of the preset fields and the data tables;
[0022] According to the level of the to-be-selected field corresponding to each target data table, filter out the target field from the corresponding target data table;
[0023] The target field is input into the indicator model to obtain the target real-time energy data.
[0024] Preferably, the visual display of the target real-time energy data includes:
[0025] Determine a visualization display mode according to the target field;
[0026] According to the visualization display mode, the target energy data is visualized in the form of a graph and / or a table.
[0027] Preferably, after visually displaying the target real-time energy data, the method further includes:
[0028] Create an API call interface;
[0029] The target real-time energy data is shared with the demander through the API calling interface.
[0030] In a second aspect, a real-time energy data display device is applied to an electronic device, the device comprising: an acquisition unit, a processing unit and a visual display unit, wherein:
[0031] The acquisition unit is used to acquire real-time energy data, wherein the real-time energy data comes from multiple data platforms;
[0032] The processing unit is used to call the indicator model and process the real-time energy data according to the indicator model to obtain target real-time energy data;
[0033] The visualization display unit is used to visualize the target real-time energy data.
[0034] In a third aspect, a computer-readable storage medium stores a computer program including execution instructions. When a processor of an electronic device executes the execution instructions, the processor executes some or all of the steps described in the methods described in the first and second aspects of the embodiments of the present application.
[0035] In a fourth aspect, an electronic device comprises a processor and a memory storing execution instructions, wherein the memory stores one or more programs; when the processor executes the execution instructions stored in the memory, the processor executes instructions of part or all of the steps described in the method described in the first aspect of the embodiment of the present application.
[0036] It can be seen that in the embodiment of the present application, real-time energy data is obtained, wherein the real-time energy data comes from multiple data platforms; the indicator model is called, and the real-time energy data is processed according to the indicator model to obtain the target real-time energy data; the target real-time energy data is visualized. In this way, the indicator model can be used to realize efficient processing of real-time energy data, and the process of real-time energy data display is accelerated, and the display method is varied and the process is simple.
[0037] These and other aspects of the present application will become more clearly understood in the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, 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 application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 is a system architecture diagram of a real-time energy data visualization system provided in an embodiment of the present application;
[0040] Figure 2 is a system structure diagram of a real-time energy data display system provided in an embodiment of the present application;
[0041] Figure 3 It is a flowchart of a real-time energy data display method provided in an embodiment of the present application;
[0042] Figure 4 It is a flowchart of a real-time energy data display method provided in an embodiment of the present application;
[0043] Figure 5 is a schematic diagram of a real-time energy data display device provided in an embodiment of the present application;
[0044] Figure 6 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0046] The terms "first", "second", "third" and "fourth" etc. in the specification and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0047] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The presentation of the phrase at various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0048] In order to better understand the embodiments of the present application, the method of applying the embodiments of the present application will be introduced below.
[0049] The electronic device may be a portable electronic device that also includes other functions such as a personal digital assistant and / or a music player function, such as a mobile phone, a tablet computer, a terminal device, a wearable electronic device with a wireless communication function (such as a smart watch, smart glasses), a vehicle-mounted device, etc. Exemplary embodiments of portable electronic devices include but are not limited to portable electronic devices equipped with an IOS system, an Android system, a Microsoft system, or other operating systems. The above-mentioned portable electronic device may also be other portable electronic devices, such as a laptop computer (Laptop), etc. It should also be understood that in some other embodiments, the above-mentioned electronic device may not be a portable electronic device, but a desktop computer.
[0050] See also Figure 1 , Figure 1 This is a system architecture diagram of a real-time energy data visualization system provided in an embodiment of the present application. The real-time energy data visualization system can be built into an electronic device. As shown in the figure, the real-time energy data visualization system includes: an energy device 100, a server 101 and an electronic device 102.
[0051] The electronic device 102 and the energy device 100 may establish a communication connection via the server 101 , and the electronic device 102 may obtain energy data from the server 101 .
[0052] It should be noted that in the embodiment of the present application, the electronic device 102 can also directly establish a communication connection with the energy device 100 to obtain energy data in the energy device 100. Of course, the user can also manually input energy data in the electronic device 102, and the specific method is not limited here.
[0053] The energy data may be real-time energy data or non-real-time energy data.
[0054] The energy device 100 may generate energy data, such as various indicator data of wind energy, electric energy, etc., and the electronic device 102 may collect the above energy data from the energy device 100 .
[0055] In one possible example, the electronic device 102 can obtain real-time energy data from the server 101; and when the electronic device 102 receives the indicator model call instruction, it can call the preset indicator model from the server 101, and process the real-time energy data through the indicator model to obtain the target real-time energy data; then, the target real-time energy data can be visualized to integrate and process the real-time energy data, and the real-time energy data can be displayed in the form of graphs and / or tables. In this way, the electronic device 102 can realize efficient processing of real-time energy data through the indicator model, and speed up the process of displaying real-time energy data, with various display methods and simple processes.
[0056] like Figure 2 , which is a schematic diagram of the system structure of a real-time energy data display system. The energy data visualization device described in this embodiment includes: a data acquisition unit 201, a data processing unit 202, a data display unit 203, a model management unit 204, a data preparation unit 205, a task management unit 206, and a data sharing unit 207. The details are as follows:
[0057] A data acquisition unit 201 is used to acquire real-time energy data, wherein the real-time energy data comes from multiple data platforms;
[0058] The data processing unit 202 is used to call the indicator model and process the real-time energy data according to the indicator model to obtain target real-time energy data;
[0059] The data display unit 203 is used to visualize the target real-time energy data. The model management unit 204 is used to manage existing data processing models and create data processing models.
[0060] The data preparation unit 205 is used to perform standardization processing on the real-time energy data.
[0061] The task management unit 206 is used to view project tasks.
[0062] The data sharing unit 207 is used to share the data to be displayed and the data processing model through an interface call. It can be seen that the system structure described in the embodiment of the present application can obtain real-time energy data, process the real-time energy data, convert it into target energy data and visualize the above target energy data. The embodiment of the present application can meet the collection and processing of various energy data, meet the needs of different businesses, and is conducive to improving the efficiency of energy data visualization.
[0063] In one possible example, see Figure 2 The data acquisition unit 201 is specifically used for:
[0064] Access the data source and collect data, such as supporting library table exchange, interface collection, and file collection. It can collect multi-source heterogeneous data and collect data manually filled in by users.
[0065] Among them, the embodiments of the present application are applicable to Figure 1 The electronic device 102 shown, the data platform may correspond to the energy device 100. The electronic device may obtain real-time energy data from multiple data platforms corresponding to multiple energy devices.
[0066] It can be seen that the system structure described in the embodiment of the present application has multiple collection methods for collection, can obtain and store multiple data types, can meet more user needs and business needs, and is conducive to improving the efficiency of energy data visualization.
[0067] In one possible example, see Figure 2 , the data processing unit 202 is specifically used for:
[0068] Before acquiring real-time energy data, the electronic device determines the model used to process the calculated data and calls the system's built-in model. If the system's built-in model cannot meet the requirements, a new model is created.
[0069] Among them, the built-in model can be other models, which is not limited in the embodiments of the present application.
[0070] Among them, when the built-in model cannot meet user needs, an indicator model is created.
[0071] It can be seen that the method described in the embodiment of the present application can make the indicator model more diversified and richer, and is easy to operate, can meet the needs of more users and industries, and improve the accuracy of energy data visualization.
[0072] In one possible example, see Figure 2 The data display unit 203 is specifically used for:
[0073] The electronic device uses a visualization model to visualize the data called by the user after being processed by the model. There are multiple display models and various forms of visualization.
[0074] The display form may be a table, a line graph, a bar graph, or other display forms, which are not limited in the embodiments of the present application. Each display form may be combined with other display forms.
[0075] Among them, the combination of various display forms such as graphs and tables varies, and this solution does not limit the combination method. After each overall setting is completed, it can be previewed and published.
[0076] It can be seen that the electronic device of the embodiment of the present application can flexibly display the data content to be displayed, and can combine different display models to meet the needs of different users, which is conducive to improving the efficiency and accuracy of energy data visualization.
[0077] In one possible example, see Figure 2 The model management unit 204 is specifically used to: determine whether to use an existing data processing model to process real-time energy data before data processing, and if there is no required processing model in the system, perform a model creation step.
[0078] It can be seen that the electronic device of the embodiment of the present application can flexibly determine whether to adopt the system built-in model, and the processing forms are diverse, which is conducive to improving the efficiency and accuracy of energy data visualization.
[0079] In yet another possible example, see Figure 2 The data preparation unit 205 is specifically used for: when the access data is non-standardized data, the electronic device cleans and removes duplicates of the collected data by executing a script of the database language SQL or changing the workflow. If the access data has been standardized, this step can be skipped.
[0080] It can be seen that the electronic device of the embodiment of the present application can eliminate data errors and noise in the collected data, which is conducive to improving the modeling accuracy of energy data visualization.
[0081] In yet another possible example, see Figure 2 The task management unit 206 is specifically used to retrieve the task scheduling status for the task of periodic calculation of the indicator, wherein the task scheduling status may include: indicator name, project, display form, data period, calculation result, calculation market, etc. and retrieve and process the abnormal indicator calculation tasks, for example, retrieve the synchronization time status and log of the data source of each parameter of the indicator.
[0082] It can be seen that the electronic device in the embodiment of the present application can flexibly call up the detailed information required by the user, and the operation is more convenient, which is conducive to improving the user experience.
[0083] In yet another possible example, see Figure 2 The data sharing unit 207 is specifically used to create an API interface, and the electronic device can call the indicator model or the indicator periodic calculation result through the above API interface and share it with the demand party.
[0084] It can be seen that the electronic equipment of the embodiment of the present application can share data, improve the convenience of operators to view information, and reduce the cost of the energy industry as a whole. The integrated energy service provider only needs to build the device of this application, and its data indicator model can share the indicator data to other business systems through the application management module in the form of API interface calls, and can also allow the indicator model demander to provide the parameters in the model through the interface to obtain the calculation results of the indicator model. Each project no longer needs to build a repetitive system, saving development costs as a whole.
[0085] See also Figure 3 , Figure 3 : is a flow chart of a real-time energy data display method provided in an embodiment of the present application. Figure 3 The described method can be applied to a real-time energy data visualization system, which can be built into an electronic device, and the embodiments of the present application are not limited thereto. Figure 3 As shown, the real-time energy data display method may include the following operations:
[0086] 301. Obtain real-time energy data, where the real-time energy data comes from multiple data platforms.
[0087] Among them, the embodiments of the present application are applicable to Figure 1 The electronic device 102 shown, the data platform may correspond to the energy device 100. The electronic device may obtain real-time energy data from multiple data platforms corresponding to multiple energy devices.
[0088] There are many methods for obtaining energy data, such as supporting library table conversion, interface collection, file collection, etc.
[0089] For example, the electronic device can collect multi-source heterogeneous data from multiple energy devices, and perform standardization processing on the multi-source heterogeneous data to obtain the above-mentioned real-time energy data.
[0090] The above-mentioned standardization process may be to convert energy data from different sources and in different formats into a standard format so that the energy data can be better compared and analyzed. In the process of data standardization, the electronic device may use some specific algorithms or rules to convert energy data into standard energy data. The above-mentioned algorithms or rules are not limited in the embodiments of this application.
[0091] For example, the power generation of different power generation equipment is collected, the power is converted from degrees to kilowatt-hours, and the time format is converted to a unified standard. The purpose of this process is to facilitate subsequent analysis and processing and improve the availability and efficiency of data.
[0092] 302. Call an indicator model, and process the real-time energy data according to the indicator model to obtain target real-time energy data.
[0093] Among them, after the energy data is obtained, it is necessary to analyze and process the energy data.
[0094] Among them, the electronic device has a rich built-in indicator model for use in analysis and processing. After processing, the target visualization data corresponding to the energy data is obtained. This indicator model can be of great significance, for example, it can be used to warn of abnormal energy equipment and can also be used for accident analysis.
[0095] Among them, the above-mentioned real-time energy data may include at least one of energy consumption, carbon emissions, etc. The target real-time energy data is different from the real-time energy data. The real-time energy data comes from multiple data platforms. The target real-time energy data may refer to the real-time energy data after calculation, integration and other processing of the real-time energy data.
[0096] 303. Visually display the target real-time energy data.
[0097] In a specific implementation, the electronic device can establish a display mode under the project according to the project, and can visually arrange various charts built into the system for each display mode. The edited visual display mode is used to visually display the target visual data.
[0098] Among them, the above items can be set by the user or by system default, and are not limited here; the items may include at least one of the following: carbon emissions, total energy saving in biomass power generation, geothermal heating heat consumption, comprehensive energy utilization rate of solar power generation, load monitoring, etc., which are not limited here.
[0099] For example, a user can view data such as carbon emissions for a certain company or a certain city in the cockpit, dashboard, or visualization screen of an electronic device. The electronic device can then determine a display mode, such as a curve chart, bar chart, or pie chart, based on the carbon emission project requirements of the above-mentioned company, and use the display mode and corresponding visualization layout to display the target real-time energy data obtained by processing the model indicators in the cockpit, dashboard, or visualization screen.
[0100] Optionally, the electronic device can also realize the visualization of target energy data by executing user instructions, and visually arrange various charts built into the system. For each arranged chart, the electronic device can change the style of the chart, the indicators displayed, and the x- and y-axis display content for curve and line indicators, and can set the switching of different dimensions. Among them, the combination of charts and tables is varied, and this solution does not limit the combination method. After each overall setting is completed, it can be previewed and published.
[0101] It can be seen that the embodiment of the present application describes a real-time energy data display method, in which the real-time energy data comes from multiple data platforms; the electronic device calls the indicator model and processes the real-time energy data according to the indicator model to obtain the target real-time energy data and visualize the target real-time energy data. In this way, the indicator model can be used to realize efficient processing of real-time energy data, speed up the process of real-time energy data display, and the display method is varied and the process is simple.
[0102] In a possible example, the data platform includes a time series database, which is used to store the real-time energy data with time series, and the real-time energy data is obtained by processing the energy data of the multiple data platforms by a stream processing engine.
[0103] The data platform includes a time series database and a non-time series database. For example, the time series database and / or non-time series database may include at least one of the following: relational databases such as MySQL, Oracle, PostgreSQL, DAMO, and Sql server. The data platform may also support the collection of message queues such as Kafka or other time series data, such as Influxdb, and also support the collection of non-relational databases such as MongoDB.
[0104] The deployed stream processing engine processes the collected data, and the processed data can be used. The stream processing engine for time series data can be flink or storm, and the stream processing engine for periodically collected data can be data X. The processing engine used can be other processing engines, which is not limited in the embodiments of this application.
[0105] For example, users can use the Flink real-time data collection computing engine or offline computing engine according to actual needs. The electronic device can clean and deduplicate the collected data by executing the SQL script written by the user or changing the workflow. The above-mentioned cleaning of the collected data refers to the process of detecting, correcting or deleting damaged or inaccurate records in the database.
[0106] The type, name, compatible electronic device, and installation package of the above-mentioned stream processing engine can be selected and deployed by the electronic device or the user, and are not limited here.
[0107] For example, when deploying the corresponding type of the above-mentioned stream processing engine, the electronic device can receive the target stream processing engine type entered by the user in the engine name column, for example, it can be flink; then, the stream processing engine can be deployed online according to the target stream processing engine type.
[0108] Furthermore, the stream processing engine of the above-mentioned target stream processing engine type can be used to obtain real-time energy data. Therefore, the electronic device can collect real-time energy data from the time series databases corresponding to multiple data platforms through the stream processing engine corresponding to the above-mentioned target stream processing engine type.
[0109] It should be noted that if the electronic device is connected to multiple data platforms, and the energy data corresponding to the connected data platforms are already processed real-time energy data, then the relevant steps of the above-mentioned processing engine deployment can be skipped.
[0110] It can be seen that in this example, the electronic device can deploy different processing engines and different databases according to the different types of data accessed. By performing differentiated processing on energy data, it meets the real-time requirements for data display in the energy industry and is conducive to improving the diversity of energy data processing.
[0111] In a possible example, before acquiring the real-time energy data, the above also includes the following steps: determining the model dimension, and encoding the model dimension to obtain coding information, wherein the coding information is used to indicate the type of the model dimension; determining the association table corresponding to the model dimension according to the coding information; and creating the indicator model according to the association table.
[0112] Among them, before acquiring the real-time energy data, the electronic device can pre-set an indicator model for processing and calculating the real-time energy data.
[0113] Among them, the electronic device can call the system's built-in indicator model. If the system's built-in model cannot meet the needs, the model can be customized.
[0114] Among them, the indicator model can be used to meet different needs. For example, it can be used to calculate carbon emissions, energy consumption intensity, energy utilization efficiency, total energy saving, etc., which is not limited here.
[0115] Among them, the above-mentioned model dimensions can be customized by the user or by system default, and are not limited here; for example, the indicator dimension may include at least one of the following: model name, model dimension code, category, creation time, update time, ID field, text field, etc., which are not limited here.
[0116] Among them, the encoding information corresponding to the above-mentioned model dimension encoding can be used to indicate the type of the model dimension, specifically the type corresponding to the model name. For example, if the encoding information is category, it can be used to indicate that the model name of the current indicator model is device classification.
[0117] Among them, the above-mentioned association table can be used to indicate the table or form under the corresponding coding information, and the table or form may include indicator parameters for indicating energy data, calculation dimensions corresponding to the indicator parameters, and the like.
[0118] It can be seen that in this example, the method described in the embodiment can make the model more diversified and richer, and is easy to operate, which can meet the needs of more users and further improve the accuracy of energy data visualization.
[0119] In a possible example, the index model is created according to the association table, and the method includes the following steps:
[0120] Determine, according to the association table, an indicator parameter and a calculation dimension corresponding to the indicator parameter;
[0121] The data source of the indicator parameters is set; and the indicator model is created according to the data source, the indicator parameters and the calculation dimension.
[0122] Among them, the indicator parameters correspond to the association table, and the indicator parameters are associated with the coding information and model dimensions corresponding to the association table. The indicator parameters can be used to indicate the specific data stored in the association table. For example, it can be the energy saving amount corresponding to different energy-saving measures, the total energy demand of energy equipment, the physical amount of energy consumption, comprehensive energy consumption, GDP, etc.
[0123] Among them, the electronic device can set its corresponding calculation dimension according to the indicator parameter. One indicator parameter can correspond to at least one calculation dimension. For example, when the indicator parameter is comprehensive energy consumption, its corresponding calculation dimension can be used to calculate energy consumption intensity. For example, it can be comprehensive energy consumption per unit of gross domestic product (GDP). Then, its calculation logic is:
[0124]
[0125] For another example, when the indicator parameter is the physical amount of energy consumption, it can correspond to two calculation dimensions, one of which can be used to calculate the comprehensive energy utilization efficiency. The corresponding calculation logic is:
[0126]
[0127] Another calculation dimension can be used to calculate carbon emissions, and the corresponding calculation logic is:
[0128]
[0129] Among them, the above-mentioned data sources can be used to indicate the data platform source of the indicator parameters, the corresponding energy equipment, etc. For example, when the indicator parameter is the physical amount of energy consumption, the corresponding data source can be the energy equipment in a certain area, or it can be a data platform used to supervise and process the consumption data of the energy equipment.
[0130] Among them, the above-mentioned indicator model can be set in advance and built into the electronic device, which is not limited in the embodiments of the present application.
[0131] It should be noted that when the indicator model cannot meet the needs, the electronic device creates an indicator model by obtaining the user's needs. The electronic device can provide the user with instruction information, which can be used to instruct the user to create a model. Dimensions include: name, code, category, associated table, Id field, text field, business description, etc.; also include: creation time, update time, operation, etc., which are not limited here.
[0132] The electronic device can also obtain the sql script or calculation logic written by the user to create an indicator model. When modeling, the user needs to define and select the dimension. For example, the system supports the time dimension, that is, day, week, month, quarter, year or custom time, and other dimensions, such as device type, department and other custom dimensions. The dimension can be other dimensions, which is not limited in the embodiments of this application.
[0133] It can be seen that in this example, the electronic device can set the data source, indicator parameters and calculation dimensions for the indicator model. The diversity of indicator parameters and the richness of data sources can make the model more refined, making energy data processing more accurate, which is conducive to improving model utilization.
[0134] In a possible example, the real-time energy data corresponds to multiple data tables, and each of the data tables corresponds to one of the data platforms; the real-time energy data is processed according to the indicator model to obtain the target real-time energy data, which may include the following steps: determining the data source of the indicator parameter corresponding to the indicator model; screening the multiple data tables according to the data source to obtain at least one target data table corresponding to the data source; determining the level of the candidate field corresponding to each of the target data tables in the at least one target data table according to the mapping relationship between the level of the preset field and the data table; screening the target field from the corresponding target data table according to the level of the candidate field corresponding to each of the target data tables; inputting the target field into the indicator model to obtain the target real-time energy data.
[0135] Among them, the target field may refer to a field including indicator parameters. For example, for the indicator model of "energy consumption intensity", the target field may be a field including comprehensive energy consumption, GDP, etc.; for the indicator model of "total energy saving", the target field may be a field including the amount of energy saved by energy-saving measures.
[0136] Among them, one data platform may correspond to at least one data table, and the data table may store the real-time energy data collected by the data platform.
[0137] The above data sources can be used to indicate the corresponding data platform of the indicator parameter used for the indicator calculation (or calculation dimension) in the indicator model. For example, the data source of the indicator parameter can be determined according to the business description in the model dimension corresponding to the indicator model.
[0138] Among them, the electronic device can pre-set levels for the fields, and the levels are used to determine the order in which the fields are selected.
[0139] For example, if the business description of the indicator model is to calculate the carbon emissions of area A, the electronic device can determine that the data source corresponding to the indicator model can be the energy equipment in area A, and then determine multiple data tables of the data platform corresponding to the energy equipment in area A; further, the electronic device can select at least one target data table including carbon emission related fields (i.e., selected fields) from multiple data tables, and determine the level of carbon emission related fields. In this example, the selected fields can be indicator parameters, i.e., the physical amount of energy consumption, carbon emission factors, etc. According to the level of the selected fields, the target fields including "the specific values corresponding to the physical amount of energy consumption corresponding to each sub-time period within the preset time period, and the specific values corresponding to the carbon emission factors corresponding to the physical amount of energy consumption" are screened out from at least one target data table, and the target field is input into the indicator model, so that the total carbon emissions within the preset time period can be obtained, i.e., the target real-time energy data.
[0140] It can be seen that in this example, the electronic device can determine the source of the data, and based on the data source, screen multiple data tables corresponding to multiple data platforms to obtain at least one target data table corresponding to the data source of the indicator model, and select the target field according to the set level, which is conducive to improving the selection efficiency; after obtaining the target field, it can be input into the indicator model to obtain the target real-time energy data, which is conducive to improving the model calculation efficiency and the accuracy of subsequent visualization.
[0141] In a possible example, the visual display of the target real-time energy data may include the following steps: determining a visual display mode according to the target field; and visually displaying the target energy data in the form of a graph and / or a table according to the visual display mode.
[0142] Among them, the target field corresponds to the indicator parameter, and the electronic device can set the visualization display mode in advance according to the business description corresponding to the indicator parameter or the indicator model. For example, it can be a curve chart, a bar chart or a pie chart.
[0143] For example, for the indicator model of "carbon emissions", the target field can be the physical amount of energy consumption, carbon emission factor, etc., and the corresponding visualization display mode can be set to a bar chart to facilitate viewing the physical amount of energy consumption and the corresponding carbon emissions in different time periods or different regions.
[0144] For example, for comprehensive energy efficiency, the total energy demand of energy equipment, the physical amount of energy consumption, and the standard coal conversion coefficient are extracted, and the final comprehensive energy efficiency result is calculated through the indicator model. The electronic equipment can be set to select the chart display method, define the parameters and layout of the chart to be displayed, and finally display a chart including the total energy demand, the physical amount of energy consumption, the standard coal conversion coefficient, and the comprehensive energy efficiency, and arrange them in chronological order. Based on the comprehensive energy efficiency data arranged in chronological order, define a line chart with time as the horizontal axis and comprehensive energy efficiency as the vertical axis, select the legend representation method of the line chart and other components, and finally output a table and a line chart.
[0145] For example, when a user (for example, an integrated energy company) has set up the configuration of the preliminary data source and the collection engine, the user can view the company's carbon emission indicators in the form of reports through an electronic device. The specific operation steps can be simplified as follows: log in to the system--select the required indicator model--specify the parameter data source--select the visualization display mode (pie chart, curve, bar chart, etc.)--create a new report--select the data table to be displayed--set the report style and display location--publish the report.
[0146] It can be seen that in this example, the electronic device can use a flexible visualization model to display different energy data in different forms, meet different business needs, and output corresponding visualization data. In addition, the model has a high reuse rate and is easy to operate, which is conducive to reducing costs and improving the efficiency of energy data visualization.
[0147] With the Figure 3 For details on the embodiments shown in the drawings, please refer to Figure 4 , Figure 4 : is a flow chart of a real-time energy data display method provided in an embodiment of the present application. Figure 4 The described method can be applied to a real-time energy data visualization system, which can be built into an electronic device, and the embodiments of the present application are not limited thereto. Figure 4As shown, the real-time energy data display method may include the following operations:
[0148] 401. Obtain real-time energy data, where the real-time energy data comes from multiple data platforms.
[0149] 402. Call an indicator model, and process the real-time energy data according to the indicator model to obtain target real-time energy data.
[0150] 403. Visually display the target real-time energy data.
[0151] The specific implementation of the above steps 401-403 can be found in Figure 3 The relevant description of the real-time energy data display method will not be repeated here.
[0152] 404. Create an API call interface.
[0153] 405. Share the target real-time energy data with the demander through the API calling interface.
[0154] After acquiring the data, the data, processing model and display model required by the user can be shared with the user through the API calling interface to realize data sharing.
[0155] It can be seen that the real-time energy data display method described in the embodiment of the present application can obtain real-time energy data, wherein the real-time energy data comes from multiple data platforms; call the indicator model, and process the real-time energy data according to the indicator model to obtain the target real-time energy data; visualize the target real-time energy data; create an API call interface; and share the target real-time energy data with the demander through the API call interface. In this way, after the electronic device obtains the data, it can share the data, processing model and display model required by the user with the user through the API call interface to realize data sharing.
[0156] In a possible example, an API calling interface may be created; through the API calling interface, the target real-time energy data is shared with the demander.
[0157] Among them, the electronic equipment can be used as a computing platform to assist the corresponding electronic equipment of the demand side to complete the calculation of the target real-time energy data.
[0158] In the specific implementation, the electronic device can create an API interface, call the indicator model or the regular calculation results of the indicator through the interface, and share it with other users, such as the demander. Other users can send the parameters of the formula they choose to the electronic device through the interface. The electronic device obtains real-time energy data through the flink computing engine according to the calculation logic of the indicator model, and completes the calculation of the real-time energy data through the indicator model to obtain the target energy data. Other users then obtain the target energy data through the interface. In addition, other users can log in to the data display system device and view or customize data that meets their own permissions and needs according to the permissions set by the integrated energy platform or themselves.
[0159] For example, if a user of a comprehensive energy company wants to call the indicator model through an interface to complete the visualization of the target real-time energy data, he only needs to perform the following steps: select the indicator model--get the interface calling method--send the request parameters (call the indicator model through the interface)--receive the return parameters, that is, the indicator model--complete the visualization of the real-time energy data in the system according to the indicator model--view the visualization results (that is, the target energy data for the visualization).
[0160] With the Figure 3 , Figure 4 For details on the embodiments shown in the drawings, please refer to Figure 5 , is a schematic diagram of a real-time energy data display device provided in an embodiment of the present application. Applied to electronic devices, the real-time energy data display device 500 described in this embodiment includes: an acquisition unit 501, a processing unit 502, and a display unit 503, which are specifically as follows:
[0161] An acquisition unit 501 is used to acquire real-time energy data, wherein the real-time energy data comes from multiple data platforms;
[0162] The processing unit 502 is used to call the indicator model and process the real-time energy data according to the indicator model to obtain target real-time energy data;
[0163] The display unit 503 is used to visually display the target real-time energy data.
[0164] It can be seen that the real-time energy data display device described in the embodiment of the present application obtains real-time energy data, wherein the real-time energy data comes from multiple data platforms; calls the indicator model, and processes the real-time energy data according to the indicator model to obtain the target real-time energy data; and visualizes the target real-time energy data. In this way, the indicator model can be used to realize efficient processing of real-time energy data, and the process of real-time energy data display is accelerated, and the display method is varied and the process is simple.
[0165] In a possible example, before acquiring the real-time energy data, the processing unit 502 is further configured to:
[0166] Determine a model dimension, and encode the model dimension to obtain encoding information, wherein the encoding information is used to indicate a type of the model dimension;
[0167] Determine, according to the coding information, an association table corresponding to the model dimension;
[0168] The indicator model is created according to the association table.
[0169] In a possible example, in terms of creating the indicator model according to the association table, the processing unit 502 is specifically configured to:
[0170] Determine, according to the association table, an indicator parameter and a calculation dimension corresponding to the indicator parameter;
[0171] Setting the data source of the indicator parameters;
[0172] The indicator model is created according to the data source, the indicator parameters and the calculation dimensions.
[0173] In a possible example, the real-time energy data corresponds to a plurality of data tables, each of which corresponds to a data platform; in terms of processing the real-time energy data according to the indicator model to obtain the target real-time energy data, the processing unit 502 is specifically used for:
[0174] Determine the data source of the indicator parameter corresponding to the indicator model;
[0175] According to the data source, the multiple data tables are screened to obtain at least one target data table corresponding to the data source;
[0176] Determine the level of the to-be-selected field corresponding to each of the target data tables in the at least one target data table according to a mapping relationship between the levels of the preset fields and the data tables;
[0177] According to the level of the to-be-selected field corresponding to each target data table, filter out the target field from the corresponding target data table;
[0178] The target field is input into the indicator model to obtain the target real-time energy data.
[0179] In a possible example, the real-time energy data corresponds to a plurality of data tables, and each of the data tables corresponds to a data platform; in terms of visually displaying the target real-time energy data, the display unit 503 is specifically used for:
[0180] Determine a visualization display mode according to the target field;
[0181] According to the visualization display mode, the target energy data is visualized in the form of a graph and / or a table.
[0182] In a possible example, after visually displaying the target real-time energy data, the processing unit 502 is further configured to:
[0183] Create an API call interface;
[0184] The target real-time energy data is shared with the demander through the API calling interface.
[0185] See also Figure 6 , Figure 6 1 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. As shown in the figure, the electronic device includes a processor, a memory, a communication interface and one or more programs, which are applied to the electronic device, wherein the one or more programs are stored in the memory, and the one or more programs are configured to execute the following steps by the processor:
[0186] Acquire real-time energy data, wherein the real-time energy data comes from multiple data platforms;
[0187] Calling the indicator model, and processing the real-time energy data according to the indicator model to obtain target real-time energy data;
[0188] The target real-time energy data is visualized.
[0189] It can be seen that the electronic device described in the embodiment of the present application obtains real-time energy data, where the real-time energy data comes from multiple data platforms; calls the indicator model, and processes the real-time energy data according to the indicator model to obtain the target real-time energy data; and visualizes the target real-time energy data. In this way, the indicator model can be used to achieve efficient processing of real-time energy data, and the process of real-time energy data display is accelerated, and the display method is varied and the process is simple.
[0190] In a possible example, the data platform includes a time series database, which is used to store the real-time energy data with time series, and the real-time energy data is obtained by processing the energy data of the multiple data platforms through a stream processing engine.
[0191] In a possible example, before acquiring the real-time energy data, the program further includes instructions for executing the following steps:
[0192] Determine a model dimension, and encode the model dimension to obtain encoding information, wherein the encoding information is used to indicate a type of the model dimension;
[0193] Determine, according to the coding information, an association table corresponding to the model dimension;
[0194] The indicator model is created according to the association table.
[0195] In a possible example, in terms of creating an indicator model according to the association table, the program includes instructions for performing the following steps:
[0196] Determine, according to the association table, an indicator parameter and a calculation dimension corresponding to the indicator parameter;
[0197] Setting the data source of the indicator parameters;
[0198] The indicator model is created according to the data source, the indicator parameters and the calculation dimensions.
[0199] In a possible example, the real-time energy data corresponds to a plurality of data tables, each of which corresponds to a data platform; in terms of processing the real-time energy data according to the indicator model to obtain target real-time energy data, the program includes instructions for executing the following steps:
[0200] Determine the data source of the indicator parameter corresponding to the indicator model;
[0201] According to the data source, the multiple data tables are screened to obtain at least one target data table corresponding to the data source;
[0202] Determine the level of the to-be-selected field corresponding to each of the target data tables in the at least one target data table according to a mapping relationship between the levels of the preset fields and the data tables;
[0203] According to the level of the to-be-selected field corresponding to each target data table, filter out the target field from the corresponding target data table;
[0204] The target field is input into the indicator model to obtain the target real-time energy data.
[0205] In a possible example, the real-time energy data corresponds to a plurality of data tables, each of which corresponds to a data platform; in terms of visually displaying the target real-time energy data, the program includes instructions for executing the following steps:
[0206] Determine a visualization display mode according to the target field;
[0207] According to the visualization display mode, the target energy data is visualized in the form of a graph and / or a table.
[0208] In a possible example, after visually displaying the target real-time energy data, the program further includes instructions for executing the following steps:
[0209] Create an API call interface;
[0210] The target real-time energy data is shared with the demander through the API calling interface.
[0211] The embodiment of the present application can divide the functional units of the electronic device according to the method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The integrated unit can be implemented in the form of hardware or in the form of a software functional unit. It should be noted that the division of the units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0212] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, the computer program enables a computer to execute part or all of the steps of any method recorded in the method embodiment, and the computer includes an electronic device.
[0213] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0214] In this embodiment, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0215] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the unit, which 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, and the indirect coupling or communication connection of the device or unit can be electrical or other forms.
[0216] 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.
[0217] In addition, each functional unit in each embodiment of the present application 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 integrated unit may be implemented in the form of hardware or in the form of a software functional unit.
[0218] If the integrated 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 memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to execute all or part of the steps of the method of each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0219] A person skilled in the art may understand that all or part of the steps in the various methods of the embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable memory, and the memory may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0220] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A real-time energy data display method, characterized in that: Used in electronic equipment, including: Acquire real-time energy data, wherein the real-time energy data is derived from multiple data platforms, the data platforms include a time series database and a non-time series database, wherein the real-time energy data corresponds to multiple data tables, and each data table corresponds to one data platform; Calling an indicator model and determining a data source of an indicator parameter corresponding to the indicator model, wherein the indicator model is used to process and calculate the real-time energy data, the indicator model is a model set according to the indicator parameter and the data source, and the data source is used to indicate a data platform corresponding to the indicator parameter used for indicator calculation in the indicator model; and, according to the data source, screening the multiple data tables to obtain at least one target data table corresponding to the data source; and, according to the mapping relationship between the level of the preset field and the data table, determining the level of the candidate field corresponding to each of the target data tables in at least one of the target data tables, wherein the level of the preset field is used to determine the order of selecting the preset fields; and, according to the level of the candidate field corresponding to each of the target data tables, screening the target field from the corresponding target data table; inputting the target field into the indicator model to obtain the target real-time energy data; wherein the indicator model includes the user-defined indicator model and the preset indicator model; The target real-time energy data is visualized according to a visualization display mode, wherein the visualization display mode includes a customized visualization display mode and a preset visualization display mode.
2. The method according to claim 1, characterized in that The time series database is used to store the real-time energy data with time series, and the real-time energy data is obtained by processing the energy data of the multiple data platforms by the stream processing engine.
3. The method according to claim 2, characterized in that Before acquiring the real-time energy data, the method further includes: Determine a model dimension, and encode the model dimension to obtain encoding information, wherein the encoding information is used to indicate a type of the model dimension; Determine, according to the coding information, an association table corresponding to the model dimension; The indicator model is created according to the association table.
4. The method according to claim 3, characterized in that The step of creating an indicator model according to the association table includes: Determine, according to the association table, an indicator parameter and a calculation dimension corresponding to the indicator parameter; Setting the data source of the indicator parameters; The indicator model is created according to the data source, the indicator parameters and the calculation dimensions.
5. The method according to claim 4, characterized in that The visual display of the target real-time energy data includes: Determine a visualization display mode according to the target field; According to the visualization display mode, the target energy data is visualized in the form of a graph and / or a table.
6. The method according to claim 1 or 5, characterized in that: After visually displaying the target real-time energy data, the method further includes: Create an API call interface; The target real-time energy data is shared with the demander through the API calling interface.
7. A real-time energy data display device, characterized in that: Applied to electronic equipment, the device comprises: an acquisition unit, a processing unit and a visual display unit, wherein: The acquisition unit acquires real-time energy data, wherein the real-time energy data is derived from multiple data platforms, the data platforms include a time series database and a non-time series database, wherein the real-time energy data corresponds to multiple data tables, and each data table corresponds to one data platform; The processing unit is used to call the indicator model and determine the data source of the indicator parameters corresponding to the indicator model, wherein the indicator model is used to process and calculate the real-time energy data, the indicator model is a model set according to the indicator parameters and the data source, and the data source is used to indicate the data platform corresponding to the indicator parameters used for the indicator calculation in the indicator model; and, according to the data source, the multiple data tables are screened to obtain at least one target data table corresponding to the data source; and, according to the mapping relationship between the level of the preset field and the data table, the level of the candidate field corresponding to each of the target data tables in at least one of the target data tables is determined, wherein the level of the preset field is used to determine the order of selecting the preset fields; and, according to the level of the candidate field corresponding to each of the target data tables, the target field is screened from the corresponding target data table; the target field is input into the indicator model to obtain the target real-time energy data; wherein the indicator model includes the user-defined indicator model and the preset indicator model; The visualization display unit is used to visualize the target real-time energy data according to a visualization display mode, and the visualization display mode includes a customized visualization display mode and a preset visualization display mode.
8. A computer-readable storage medium, characterized in that: A computer program is stored, including execution instructions. When a processor of an electronic device executes the execution instructions, the processor executes the method according to any one of claims 1 to 6.
9. An electronic device, characterized in that: The method comprises a processor and a memory storing execution instructions, wherein the memory stores one or more programs; when the processor executes the execution instructions stored in the memory, the processor executes the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Operation and maintenance monitoring data display method and device, storage medium and computing equipment
CN112286774A
Energy metering service data analysis method and system
CN113887862A
