CN115828387A - Building energy consumption calculation system and method, computer device and storage medium - Google Patents

Building energy consumption calculation system and method, computer device and storage medium Download PDF

Info

Publication number
CN115828387A
CN115828387A CN202211510170.5A CN202211510170A CN115828387A CN 115828387 A CN115828387 A CN 115828387A CN 202211510170 A CN202211510170 A CN 202211510170A CN 115828387 A CN115828387 A CN 115828387A
Authority
CN
China
Prior art keywords
energy consumption
file
consumption calculation
calculation result
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211510170.5A
Other languages
Chinese (zh)
Inventor
陈栋梁
刘宁
董志勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Hezhu Digital Technology Co ltd
Original Assignee
Shanghai Hezhu Digital Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Hezhu Digital Technology Co ltd filed Critical Shanghai Hezhu Digital Technology Co ltd
Priority to CN202211510170.5A priority Critical patent/CN115828387A/en
Publication of CN115828387A publication Critical patent/CN115828387A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention relates to a building energy consumption calculation system, a building energy consumption calculation method, computer equipment and a storage medium, wherein the building energy consumption calculation system comprises: the Web service module is used for generating a corresponding energy consumption parameter file according to the acquired energy consumption calculation request issued by the user; the Redis service module is used for transmitting data; the energy consumption parameter receiving module is used for receiving and analyzing the energy consumption parameter file; the file polling module is used for periodically accessing the input intermediate directory; the RPA operation module is used for capturing an operation window of the IBE software and carrying out simulated clicking to trigger the IBE software; and the file monitoring module is used for analyzing the energy consumption calculation result corresponding to the energy consumption calculation request, and sending the energy consumption calculation result to the Web service module through the Redis service module for displaying. The method breaks through the limitation of single-machine operation of the IBE software, can support simultaneous operation of multiple persons, widens the application range of the IBE software, can meet the requirement of large-scale energy consumption calculation in the building industry, and has good application prospect.

Description

Building energy consumption calculation system and method, computer device and storage medium
Technical Field
The invention relates to the technical field of building energy consumption calculation, in particular to a building energy consumption calculation system, a building energy consumption calculation method, computer equipment and a storage medium.
Background
Energy conservation and emission reduction become important targets of sustainable development of various industries. The scale of the building industry in China is large, the quantity of the stored buildings is astonishing, and the energy consumption of the buildings is huge. In order to reduce the energy consumption of a building, firstly, energy consumption data of the building needs to be accurately calculated, at present, "essential near-zero energy consumption building evaluation software (IBE software for short)" developed by Chinese building science research institute is a mainstream building energy consumption calculation tool in the industry, but the tool is single-machine software, does not support the requirement of simultaneous operation of multiple persons, and limits the application range of the tool.
Disclosure of Invention
In view of the above-mentioned shortcomings of the prior art, an object of the present invention is to provide a building energy consumption calculation system, method, computer device and storage medium, which are used to solve the technical problem that IBE software in the prior art cannot realize simultaneous operation of multiple persons.
In order to achieve the above objects and other related objects, a first aspect of the present invention provides the following solutions:
a building energy consumption computing system comprising:
the Web service module is used for generating a corresponding energy consumption parameter file according to the acquired energy consumption calculation request issued by the user;
the Redis service module is used for transmitting data;
the energy consumption parameter receiving module is used for receiving and analyzing the energy consumption parameter file so as to rename the energy consumption parameter file according to a preset strategy and store the energy consumption parameter file into an input intermediate directory;
the file polling module is used for periodically accessing the input intermediate directory, taking out one energy consumption parameter file when the input intermediate directory is not empty, creating an identification parameter according to an access path of the taken out energy consumption parameter file, and sending a calling request encapsulated with the identification parameter to a server;
the RPA operation module is used for responding to the calling of the calling request, acquiring the identification parameters, analyzing the energy consumption parameter file, capturing an operation window of the IBE software, performing simulated clicking to trigger the IBE software to perform energy consumption calculation according to the analyzed content of the energy consumption parameter file to obtain an energy consumption calculation result file, and storing the obtained energy consumption calculation result file into the output intermediate directory by the IBE software;
and the file monitoring module is used for monitoring a new file event under the output intermediate directory to obtain the energy consumption calculation result file, analyzing the energy consumption calculation result file to obtain an energy consumption calculation result corresponding to the energy consumption calculation request, and sending the energy consumption calculation result to the Web service module through the Redis service module for displaying.
As a preferred scheme of the invention, when the Web service module obtains an energy consumption calculation request issued by a user, a request ID uniquely corresponding to the energy consumption calculation request is created in a UUID manner.
As a preferable aspect of the invention, the energy consumption parameter file is an xml format file, and the energy consumption parameter file includes building information for the IBE software to identify and load.
As a preferred aspect of the invention, the RPA operation module identifies the menu item of the IBE software by calling an image recording mode when capturing the running window of the IBE software for simulated clicking.
As a preferred embodiment of the present invention, the energy consumption calculation result file is a doc format file, and the file monitoring module obtains the energy consumption calculation result file and converts the file format of the energy consumption calculation result file into docx.
As a preferred scheme of the invention, the file monitoring module acquires the energy consumption calculation result file, uploads the energy consumption calculation result file to a Minio server and generates a result request path, and the Web service module reads and analyzes the energy consumption calculation result file from the Minio server and displays the energy consumption calculation result file on a page when receiving the result request path.
As a preferred embodiment of the present invention, the file monitoring module further searches an energy consumption parameter file corresponding to the intermediate directory according to the energy consumption calculation request corresponding to the energy consumption calculation result file, and moves the energy consumption parameter file to a termination directory.
In order to solve the above technical problem, a second aspect of the present invention provides a building energy consumption calculation method, where the method is based on the building energy consumption calculation system in any one of the above technical solutions, and the method includes:
the Web service module generates a corresponding energy consumption parameter file according to the acquired energy consumption calculation request issued by the user and sends the energy consumption parameter file to the energy consumption parameter receiving module through the Redis service module;
the energy consumption parameter receiving module receives and analyzes the energy consumption parameter file so as to rename the energy consumption parameter file according to a preset strategy and store the energy consumption parameter file into an input intermediate directory;
the file polling module periodically accesses the input intermediate directory, extracts one energy consumption parameter file when the input intermediate directory is not empty, creates an identification parameter according to an access path of the extracted energy consumption parameter file, and sends a calling request encapsulated with the identification parameter to a server;
the RPA operation module responds to the calling of the calling request to acquire the identification parameters and analyze the energy consumption parameter file, captures an operation window of the IBE software and carries out simulated clicking to trigger the IBE software to carry out energy consumption calculation according to the analysis content of the energy consumption parameter file to obtain an energy consumption calculation result file, and the IBE software stores the obtained energy consumption calculation result file into the output intermediate directory;
and the file monitoring module monitors a new file event under the output intermediate directory to obtain the energy consumption calculation result file, analyzes the energy consumption calculation result file to obtain an energy consumption calculation result corresponding to the energy consumption calculation request, and sends the energy consumption calculation result to the Web service module through the Redis service module for displaying.
In order to solve the above technical problem, a third aspect of the embodiments of the present invention provides a computer device, which includes a memory and a processor, where the memory stores computer readable instructions, and the computer readable instructions, when executed by the processor, cause the processor to execute the steps of the building energy consumption calculation method.
In order to solve the above technical problem, a fourth aspect of the embodiments of the present invention provides a storage medium storing computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the building energy consumption calculation method described above.
As described above, the embodiment of the present invention has the following advantageous effects:
based on the RPA technology and the WEB technology, the energy consumption calculation request of the WEB service module is firstly used for generating a corresponding energy consumption parameter file, then the RPA operation module is used for automatically simulating click operation, so that the automatic operation of the IBE software is realized, namely, a manual operation process is converted into an automatic operation process, and finally, an energy consumption calculation result file is stored in an output intermediate directory and returned to the WEB service module to be displayed on a page, so that the limitation of single-machine operation of the IBE software is broken through, the simultaneous operation of multiple persons can be supported, the use range of the IBE software is expanded, the requirement of large-scale energy consumption calculation in the building industry can be met, and the energy consumption calculation method has a good application prospect.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a system architecture diagram of a building energy consumption calculation system according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating an implementation of a building energy consumption calculation system according to an embodiment of the present invention.
FIG. 3 is a block diagram showing the basic structure of a computer device according to a fourth embodiment of the present invention
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention.
In some of the flows described in the present specification and claims and in the above figures, a number of operations are included that occur in a particular order, but it should be clearly understood that these operations may be performed out of order or in parallel as they occur herein, with the order of the operations being indicated as 101, 102, etc. merely to distinguish between the various operations, and the order of the operations by themselves does not represent any order of performance. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1 and 2, the present invention provides a building energy consumption calculation system, including: the Web service module is used for generating a corresponding energy consumption parameter file according to the acquired energy consumption calculation request issued by the user; the Redis service module is used for transmitting data; the energy consumption parameter receiving module is used for receiving and analyzing the energy consumption parameter file so as to rename the energy consumption parameter file according to a preset strategy and store the energy consumption parameter file into an input intermediate directory; the file polling module is used for periodically accessing the input intermediate directory, taking out one energy consumption parameter file when the input intermediate directory is not empty, creating an identification parameter according to an access path of the taken out energy consumption parameter file, and sending a calling request encapsulated with the identification parameter to a server; the RPA operation module is used for responding to the calling of the calling request, acquiring the identification parameters, analyzing the energy consumption parameter file, capturing an operation window of the IBE software, performing simulated clicking to trigger the IBE software to perform energy consumption calculation according to the analyzed content of the energy consumption parameter file to obtain an energy consumption calculation result file, and storing the obtained energy consumption calculation result file into the output intermediate directory by the IBE software; and the file monitoring module is used for monitoring the new file event under the output intermediate directory to obtain the energy consumption calculation result file, analyzing the energy consumption calculation result file to obtain an energy consumption calculation result corresponding to the energy consumption calculation request, and sending the energy consumption calculation result to the Web service module through the Redis service module for displaying.
Specifically, a plurality of Web service modules can correspond to each other, and when the Web service modules acquire energy consumption calculation requests issued by users, request IDs uniquely corresponding to the energy consumption calculation requests are created in a UUID mode; UUID is an abbreviation of universal Unique Identifier (Universally Unique Identifier), and is a standard for software construction, which aims to enable all elements in a distributed system to have Unique identification information without specifying the identification information through a central control end.
In this embodiment, the energy consumption parameter file is an xml format file, and in practical application, the name of the energy consumption parameter file may be named as an xml energy consumption parameter file a, and the energy consumption parameter file includes building information for identification and loading by IBE software. Through the created request ID, a certain field of the energy consumption parameter file carries the request ID, and the request ID is penetrated through the whole processing flow, so that the energy consumption calculation request and the energy consumption calculation result can be ensured to be in one-to-one correspondence, and powerful support is provided for breaking through the limitation of the single-machine operation of the IBE software, supporting the simultaneous operation of multiple persons and expanding the use range of the IBE software.
If the energy consumption calculation request and the energy consumption calculation result of a plurality of user operations are not consistent in the absence of the request ID, for example, if the user a and the user B initiate the calculation request at the same time, the correct result should be: the energy consumption calculation request r1 initiated by the A corresponds to the corresponding energy consumption calculation result k1 one by one, and the request r2 initiated by the B corresponds to the corresponding energy consumption calculation result k2 one by one. However, if there is no request ID, the system cannot guarantee the one-to-one correspondence, and there may occur a phenomenon that r1 corresponds to k2 and r2 corresponds to k1, that is, the energy consumption calculation request is inconsistent with the energy consumption calculation result, that is, the calculation request initiated by the user a, and the obtained energy consumption calculation result is actually that of the user B, which certainly cannot meet the actual calculation requirement.
The building information in the energy consumption parameter file comprises parameters of related fields such as building structures, water and electricity, heating and ventilation and the like, and the format of the building information is compiled according to the specification of the IBE software, so that the building information can be correctly identified and loaded by the IBE software.
The service module sends an energy consumption calculation request to the energy consumption parameter receiving module through a publish/subscribe mechanism (publish/subscribe) of the Redis service module, wherein the sending form of the energy consumption calculation request can be (request id, xml energy consumption parameter file A), after the energy consumption parameter receiving module receives the energy consumption request (request id, xml energy consumption parameter file A), the xml energy consumption parameter file A is analyzed, the value of an attribute [ name ] of a field < building information > is analyzed, the value is the building name and is recorded as N, the energy consumption parameter receiving module modifies the value of the attribute [ name ] into ' N $ request id ', wherein, ' $ ' is a separator between N and the request id, and finally the energy consumption parameter receiving module modifies the file name of the modified xml energy consumption parameter file A into ' request id.
The reason for adopting the above rule is that: the attribute [ name ] does not participate in energy consumption calculation, namely the IBE software reads the attribute [ name ], but does not use the attribute [ name ] in energy consumption calculation, and only outputs the attribute [ name ] to an energy consumption calculation result file in an original mode, so that the energy consumption request id cannot be lost or modified, and the uniqueness and the integrity of the energy consumption request id are ensured.
The file polling module is implemented in the following steps: the file polling module periodically judges whether the input directory is empty, if not, a certain xml energy consumption parameter file A under the input directory is taken out, a complete path of the file can be represented as an "input \ xml energy consumption parameter file A", then an identification parameter is created, which can be defined as a parameter param in the embodiment, the complete path of the xml energy consumption parameter file A is encapsulated into the parameter param, and at this time, the parameter param can be represented as { "name": file "," value ": input \ xml energy consumption parameter file A" } and has the function of transmitting the path of the xml energy consumption parameter file A to the IBE software for use.
RPA (resilient Process Automation) refers to the use of software Automation to implement operations originally performed by a human-operated computer, which allows a software robot to automatically Process a large number of repeated, rule-based workflow tasks, the server in this embodiment is an aristoloc RPA server, and an RPA operation module responds to the call of the aristoloc RPA server, and the specific Process may be: the file polling module sends a request to an Aliskiu RPA server (http:// api-RPA. Aliyun. Com/RPA/openapi/task/createServiceTask), encapsulates parameter param into the request, and the request is a call request, and the Aliskiu RPA server triggers and calls the RPA operation module in response to the call request.
The RPA operation module identifies the menu item of the IBE software by calling an image recording mode when capturing the operation window of the IBE software for simulated click, and in this embodiment, the specific operation process of the RPA operation module may be: the method comprises the steps that an RPA operation module reads an asset data area of an RPA server to obtain a parameter param, a complete path 'input \ xml energy consumption parameter file A' of an xml energy consumption parameter file A is analyzed from the parameter param, then a window wnd operated by IBE software is captured, a mouse click menu 'operation' is simulated, an image recording mode is called to click a menu item 'open project', the complete path 'output \ xml energy consumption parameter file A' of the xml energy consumption parameter file A is input into a file dialog box, the RPA operation module simulates a click button 'confirmation', and IBE software is triggered to read the xml energy consumption parameter file A; then the RPA operation module simulates a mouse to click a menu 'calculation result', then an image recording mode is called to click a menu item 'energy consumption calculation' to carry out energy consumption calculation, after the energy consumption calculation is finished, IBE software automatically stores the energy consumption calculation result A to an output directory, and the output directory is an output intermediate directory; the energy consumption calculation result A exists in a word file mode, the structure and the format of the energy consumption calculation result A are appointed by IBE software, and a menu control of an IBE software interface can be correctly identified by calling an image recording mode.
In this embodiment, the energy consumption calculation result file is a doc format file, and the file monitoring module converts the file format of the energy consumption calculation result file into docx after acquiring the energy consumption calculation result file, and the specific process is as follows: the file monitoring module monitors a new file event under the directory output to obtain an energy consumption calculation result A, the energy consumption calculation result A is converted into a docx from a doc format of a word file, the energy consumption calculation result A in the docx format is recorded as an energy consumption calculation result A _ docx, and the docx format is a version higher than the doc format, so that the file monitoring module has the characteristics of high analysis efficiency, low analysis error, small occupied space and the like.
The specific process of analyzing by the file monitoring module is as follows: the file monitoring module analyzes the energy consumption calculation result A _ docx to obtain the content of a 'project name' field of 'project basic information' in a first table of the energy consumption calculation result A _ docx, wherein the content is 'N $ request id', N is a building name, and the request id is an energy consumption calculation request id; the file monitoring module analyzes the building name N and the energy consumption request id according to the separator "$", then modifies the file name of the energy consumption calculation result A _ docx analyzed by the file monitoring module into the energy consumption request id, and records the energy consumption request id _ docx, and thus the energy consumption calculation request and the energy consumption calculation result are in one-to-one correspondence.
And meanwhile, the file monitoring module acquires the energy consumption calculation result file, uploads the energy consumption calculation result file to a Minio server and generates a result request path, and the Web service module reads and analyzes the energy consumption calculation result file from the Minio server and displays the energy consumption calculation result file on a page when receiving the result request path. The specific process comprises the following steps: the file monitoring module uploads the energy consumption calculation result to a path C of Minio, namely, an energy consumption request id _ docx is stored in the path C, the complete path is marked as "/C/energy consumption request id _ docx", minio is an object storage service and can conveniently store various files including files such as texts, audios and videos; and then the file monitoring module sends an energy consumption calculation result (request id,/C/energy consumption request id _ docx) to the Web service module through a publish/subscribe mechanism (publish/subscribe) of the Redis service module, after the Web service module receives the energy consumption calculation result (request id,/C/energy consumption request id _ docx), the energy consumption calculation result A of this time is read from a Minio path "/C/energy consumption request id _ docx", a word file of the energy consumption calculation result A is analyzed, and the calculation result is displayed on a page.
The file monitoring module further searches an energy consumption parameter file corresponding to the intermediate directory according to the energy consumption calculation request corresponding to the energy consumption calculation result file, and moves the energy consumption parameter file to a termination directory, where the termination directory may be a finish directory in this embodiment, and the specific process is as follows: the file monitoring module finds the xml energy consumption parameter file A under the input according to the energy consumption request id, then moves the xml energy consumption parameter file A to the finish directory, and prevents the file monitoring module from calling the RPA module to read the xml energy consumption parameter file A to perform repeated energy consumption calculation.
Because the IBE software is stand-alone software, only the use requirements of a single user are considered, and the use scenes of large-scale users are not considered, when the energy consumption calculation result is generated, the energy consumption calculation result can be only stored according to a fixed file name, and the file name of the energy consumption calculation result cannot be set, so that the correspondence between the xml energy consumption parameter file and the energy consumption calculation result is lacked. In order to establish a corresponding relation between an xml energy consumption parameter file and an energy consumption calculation result, an energy consumption request id is stored in an attribute [ name ] of a field < building information > in the xml energy consumption parameter file by a file polling module, when the energy consumption calculation result is stored by IBE software, the value of the attribute [ name ] of the field < building information > in the xml energy consumption parameter file is stored in a 'project name' field in a 'project basic information table' of a word file, a file monitoring module reads the energy consumption calculation result file, analyzes the word file, analyzes the energy consumption request id from the 'project name' field in the 'project basic information table', then modifies the file name of the energy consumption calculation result into the energy consumption request id, and thus the energy consumption calculation request and the energy consumption calculation result are in one-to-one correspondence.
Based on the RPA technology and the WEB technology, the energy consumption calculation request of the WEB service module is firstly used for generating a corresponding energy consumption parameter file, then the RPA operation module is used for automatically simulating click operation, so that the automatic operation of the IBE software is realized, namely, a manual operation process is converted into an automatic operation process, and finally, an energy consumption calculation result file is stored in an intermediate directory and returned to the WEB service module to be displayed on a page, so that the limitation of single-machine operation of the IBE software is broken through, the simultaneous operation of multiple persons can be supported, the use range of the IBE software is expanded, the requirement of large-scale energy consumption calculation in the building industry can be met, and the application prospect is good.
Example two
The embodiment provides a building energy consumption calculation method based on the building energy consumption calculation system in the first embodiment, and the method includes:
s100, the Web service module generates a corresponding energy consumption parameter file according to the acquired energy consumption calculation request issued by the user and sends the energy consumption parameter file to an energy consumption parameter receiving module through a Redis service module;
s200, an energy consumption parameter receiving module receives and analyzes the energy consumption parameter file so as to rename the energy consumption parameter file according to a preset strategy and store the energy consumption parameter file into an input intermediate directory;
s300, the file polling module periodically accesses the input intermediate directory, extracts one energy consumption parameter file when the input intermediate directory is not empty, creates an identification parameter according to an access path of the extracted energy consumption parameter file, and sends a calling request encapsulated with the identification parameter to a server;
s400, the RPA operation module responds to the calling of the calling request to acquire the identification parameters and analyze the energy consumption parameter file, captures an operation window of the IBE software and carries out simulated clicking to trigger the IBE software to carry out energy consumption calculation according to the analysis content of the energy consumption parameter file to obtain an energy consumption calculation result file, and the IBE software stores the obtained energy consumption calculation result file into the output intermediate directory;
s500, the file monitoring module monitors a new file event under the output intermediate directory to obtain the energy consumption calculation result file, analyzes the energy consumption calculation result file to obtain an energy consumption calculation result corresponding to the energy consumption calculation request, and sends the energy consumption calculation result to the Web service module through the Redis service module to be displayed.
Based on the RPA technology and the WEB technology, firstly, a corresponding energy consumption parameter file is generated through an energy consumption calculation request of a WEB service module, then, click operation is automatically simulated through the RPA operation module, energy consumption calculation on automatic operation of IBE software is realized, namely, a manual operation process is converted into an automatic operation process, and finally, an energy consumption calculation result file is stored in an intermediate directory and returned to the WEB service module to be displayed on a page, so that the limitation of single-machine operation of the IBE software is broken through, simultaneous operation of multiple persons can be supported, the use range of the IBE software is widened, the requirement of large-scale energy consumption calculation in the building industry can be met, and the application prospect is good.
EXAMPLE III
The building energy consumption calculation method of the invention is explained with a specific example, which specifically comprises the following steps:
s1, a Web service module provides a page to respond to an energy consumption calculation request of a user, the user fills in building information in related fields such as building structures, hydropower, heating ventilation and the like, wherein the building name value is 'No. 1 residential building', the Web service module assembles parameters filled in by the user into an xml energy consumption parameter file A, and the content of the xml energy consumption parameter file A is as follows:
Figure SMS_1
Figure SMS_2
s2, the Web service module creates an energy consumption calculation request id value of '162-379-c 095cc7 d-20220811151139' through the uuid function of python, and modifies the file name of the xml energy consumption parameter file A into '162-379-c 095cc7d-20220811151139. Xml', so that the energy consumption calculation request and the xml energy consumption parameter file can be in one-to-one correspondence.
S3, the Web service module calls a function ConnectionPool () of the pythonredis package to establish connection with the Redis service module, and then calls a function publish () of the Redis module to send a message energy consumption calculation request to the energy consumption parameter receiving module, wherein the request can be expressed as { "reqid": "162-379-c095cc7d-20220811151139", "data": 162-379-c095cc7d-20220811151139.Xml text data, wherein the reqid field is the energy consumption calculation request id, and the data field is the content of the xml energy consumption parameter file A.
S4, the energy consumption parameter receiving module firstly calls a function ConnectionPool () of the pythonredis package to establish connection with the Redis service module, then calls a function pubsub () of the Redis package to receive an energy consumption calculation request, analyzes a reqid field and a data field from the request, then reads the content of the data field, analyzes the value of an attribute [ name ] of the field < building information >, the value is 'number 1 residential building', modifies the value of the attribute [ name ] into 'number 1 residential building $ 162-379-095 cc7 d-20211151139' according to the reqid field, and finally stores the data of the data field into an input directory, wherein the file name of the data storage is '162-379-c 095cc7 d-20211151139'.
S5, the file polling module calls a function BlockingScheduler () of the python apScheduler package to create a periodic task scheduler, and the task scheduler calls a function walk () of the python os package to obtain a list of all files in an input directory. If the list of files is not empty, the first file is taken from the list. At this time, only one file "162-379-c095cc7d-20220811151139.Xml" is located under the input directory, and the file polling module creates param, the parameter param having the contents of { "name": file "," value ": input \162-379-c095cc7d-20220811151139.Xml" }.
S6, the file polling module calls a function post () of the python requests packet to send a request to an Aliskian RPA server (http:// api-RPA. Aliyun. Com/RPA/openapi/task/createServiceTask), packages parameter param into the request, and triggers the Aliskian RPA server to call the RPA operation module.
S7, the RPA operation module obtains a complete path for obtaining the energy consumption parameter file A from the asset data area through a statement rpa.project.params [ "filename" ], and the value is "input \162-379-c095cc7d-20220811151139.Xml".
S8, the RPA operation module calls a statement rpa.ui.win32.Catch () to capture a window wnd of the IBE software, then simulates a mouse click menu 'operation' through a click () function of the wnd, then calls the statement rpa.ui.image.click () to click a menu item 'open a project' through an image recording mode, then calls the statement wnd.input _ text () to input a complete path 'input \162-379-c095cc7d-20220811151139. Xml' of the xml energy consumption parameter file A in a file dialog box, and finally calls the statement wnd.click () to click a button 'confirm' to trigger the IBE software to read 162-379-c095cc7 d-20811151139. Xml.
And S9, the RPA operation module calls a statement wnd. Click () to click a menu item to obtain a calculation result, and then calls a statement RPA. Ui. Image. Click () to click a menu item to obtain energy consumption calculation. After the energy consumption calculation is completed, the IBE software automatically stores the energy consumption calculation result A in an output directory.
S10, the file monitoring module calls a FileSystemEventHandler () function of the python Observer package to monitor a new file event under the directory output, and if the RPA operation module creates an energy consumption calculation result A file under the output directory, a wc.
S11, the file monitoring module calls a Document () function of the pythondocx package to obtain the value of the first cell of the 0 th line of the 0 th table, wherein the value is 'number 1 residential building $162-379-c095cc7 d-20220811151139'. The file monitoring module parses "residential building # 1 $162-379-c095cc7d-20220811151139" to obtain the reqid value "162-379-c095cc7d-20220811151139", and then calls the copy () function of the python shutdown packet to change its file name of the energy consumption calculation result a _ docx to "162-379-c095cc7d-20220811151139.Docx".
S12, the file monitoring module calls an fputObject () function of the python minio packet to upload the files '162-379-C095 cc7 d-20220820820811151139. Docx' to the position below the path C of the minio.
S13, the file monitoring module calls a copy () function of the python shunt packet to move the file '162-379-c 095cc7d-20220811151139. Xml' in the input directory to the directory finish directory, and the file monitoring module is prevented from calling the RPA module to read the xml energy consumption parameter file A to perform repeated energy consumption calculation.
S14, the file monitoring module calls a function ConnectionPool () of the pythonredis package to establish connection with the Redis service module, then calls a function publish () of the Redis module to send a message energy consumption calculation result to the Web module, wherein the energy consumption calculation result is represented as { "reqid": "162-379-c095cc7d-20220811151139", "miniUrl": "C/162-379-C095cc7d-20220811151139.Docx" }, wherein the miniUrl field is the storage path of the energy consumption calculation result on minio.
S15, the Web service module receives the energy consumption calculation result { "reqid": "162-379-c095cc7d-20220811151139", "miniUrl": "C/162-379-C095cc7d-20220811151139.Docx" }, then call the fgetObject () function of python minio package to read the content of "C/162-379-C095cc7d-20220811151139.Docx", and call the Document () function of python docx package to display all the data of all the tables in the word file on the page.
Example four
To solve the above technical problem, an embodiment of the present invention provides a computer device. Referring to fig. 3 in detail, fig. 3 is a block diagram of a basic structure of a computer device according to the embodiment.
As shown in fig. 3, the internal structure of the computer device is schematic. The computer device includes a processor, a non-volatile storage medium, a memory, and a network interface connected by a system bus. The non-volatile storage medium of the computer device stores an operating system, a database and computer readable instructions, the database can store control information sequences, and the computer readable instructions can enable the processor to realize an information encryption method when being executed by the processor. The processor of the computer device is used for providing calculation and control capability and supporting the operation of the whole computer device. The memory of the computer device may have stored therein computer readable instructions that, when executed by the processor, may cause the processor to perform a method of encrypting information. The network interface of the computer device is used for connecting and communicating with the terminal. It will be appreciated by those skilled in the art that the configuration shown in fig. 3 is a block diagram of only a portion of the configuration associated with the present application, and is not intended to limit the computing device to which the present application may be applied, and that a particular computing device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In this embodiment, the processor is configured to execute specific functions of the Web service module, the Redis service module, the energy consumption parameter receiving module, the file polling module, the RPA operation module, and the file monitoring module, and the memory stores program codes and various types of data required for executing the above modules. The network interface is used for data transmission to and from a user terminal or a server.
The computer equipment of the embodiment of the invention is based on RPA technology and WEB technology, firstly generates a corresponding energy consumption parameter file through an energy consumption calculation request of a WEB service module, then automatically simulates click operation through the RPA operation module to realize energy consumption calculation on automatic operation of IBE software, namely, a manual operation process is converted into an automatic operation process, and finally, an energy consumption calculation result file is stored in an intermediate directory and returned to the WEB service module to be displayed on a page, thereby breaking through the limitation of single-machine operation of the IBE software, supporting simultaneous operation of multiple persons, widening the use range of the IBE software, meeting the requirement of large-scale energy consumption calculation in the building industry and having good application prospect.
EXAMPLE five
The present invention also provides a storage medium storing computer-readable instructions, which when executed by one or more processors, cause the one or more processors to perform the steps of any of the above-described embodiments of the information encryption method.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the computer program is executed. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Access Memory (RAM).
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

Claims (10)

1. A building energy consumption calculation system, comprising:
the Web service module is used for generating a corresponding energy consumption parameter file according to the acquired energy consumption calculation request issued by the user;
the Redis service module is used for transmitting data;
the energy consumption parameter receiving module is used for receiving and analyzing the energy consumption parameter file so as to rename the energy consumption parameter file according to a preset strategy and store the energy consumption parameter file into an input intermediate directory;
the file polling module is used for periodically accessing the input intermediate directory, taking out one energy consumption parameter file when the input intermediate directory is not empty, creating an identification parameter according to an access path of the taken out energy consumption parameter file, and sending a calling request encapsulated with the identification parameter to a server;
the RPA operation module is used for responding to the calling of the calling request, acquiring the identification parameters, analyzing the energy consumption parameter file, capturing an operation window of the IBE software, performing simulated clicking to trigger the IBE software to perform energy consumption calculation according to the analyzed content of the energy consumption parameter file to obtain an energy consumption calculation result file, and storing the obtained energy consumption calculation result file into the output intermediate directory by the IBE software;
and the file monitoring module is used for monitoring a new file event under the output intermediate directory to obtain the energy consumption calculation result file, analyzing the energy consumption calculation result file to obtain an energy consumption calculation result corresponding to the energy consumption calculation request, and sending the energy consumption calculation result to the Web service module through the Redis service module for displaying.
2. The building energy consumption calculation system according to claim 1, wherein when the Web service module obtains the energy consumption calculation request issued by the user, a request ID uniquely corresponding to the energy consumption calculation request is created by a UUID.
3. The building energy consumption computing system of claim 1, wherein the energy consumption parameter file is an xml format file and the energy consumption parameter file includes building information for IBE software to identify and load.
4. The building energy consumption computing system of claim 1, wherein the RPA operations module identifies menu items of the IBE software by invoking an image recording mode when capturing a simulated click of a running window of the IBE software.
5. The building energy consumption calculation system according to claim 1, wherein the energy consumption calculation result file is a doc format file, and the file monitoring module obtains the energy consumption calculation result file and converts the file format of the energy consumption calculation result file into docx.
6. The building energy consumption calculation system according to claim 1, wherein the file monitoring module obtains the energy consumption calculation result file and uploads the energy consumption calculation result file to a Minio server to generate a result request path, and the Web service module reads and analyzes the energy consumption calculation result file from the Minio server and displays the energy consumption calculation result file on a page when receiving the result request path.
7. The building energy consumption calculation system according to claim 6, wherein the file monitoring module further searches an energy consumption parameter file corresponding to the input intermediate directory according to the energy consumption calculation request corresponding to the energy consumption calculation result file, and moves the energy consumption parameter file to a termination directory.
8. A building energy consumption calculation method, based on the building energy consumption calculation system of any one of claims 1 to 7, comprising:
the Web service module generates a corresponding energy consumption parameter file according to the acquired energy consumption calculation request issued by the user and sends the energy consumption parameter file to the energy consumption parameter receiving module through the Redis service module;
the energy consumption parameter receiving module receives and analyzes the energy consumption parameter file so as to rename the energy consumption parameter file according to a preset strategy and store the energy consumption parameter file into an input intermediate directory;
the file polling module periodically accesses the input intermediate directory, extracts one energy consumption parameter file when the input intermediate directory is not empty, creates an identification parameter according to an access path of the extracted energy consumption parameter file, and sends a calling request encapsulated with the identification parameter to a server;
the RPA operation module responds to the calling of the calling request to acquire the identification parameters and analyze the energy consumption parameter file, captures an operation window of the IBE software and carries out simulated clicking to trigger the IBE software to carry out energy consumption calculation according to the analysis content of the energy consumption parameter file to obtain an energy consumption calculation result file, and the IBE software stores the obtained energy consumption calculation result file into the output intermediate directory;
and the file monitoring module monitors a new file event under the output intermediate directory to obtain the energy consumption calculation result file, analyzes the energy consumption calculation result file to obtain an energy consumption calculation result corresponding to the energy consumption calculation request, and sends the energy consumption calculation result to the Web service module through the Redis service module for displaying.
9. A computer device comprising a memory and a processor, the memory having stored therein computer readable instructions which, when executed by the processor, cause the processor to perform the steps of the building energy consumption calculation method of claim 8.
10. A storage medium having stored thereon computer-readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the building energy consumption calculation method of claim 8.
CN202211510170.5A 2022-11-29 2022-11-29 Building energy consumption calculation system and method, computer device and storage medium Pending CN115828387A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211510170.5A CN115828387A (en) 2022-11-29 2022-11-29 Building energy consumption calculation system and method, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211510170.5A CN115828387A (en) 2022-11-29 2022-11-29 Building energy consumption calculation system and method, computer device and storage medium

Publications (1)

Publication Number Publication Date
CN115828387A true CN115828387A (en) 2023-03-21

Family

ID=85532536

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211510170.5A Pending CN115828387A (en) 2022-11-29 2022-11-29 Building energy consumption calculation system and method, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN115828387A (en)

Similar Documents

Publication Publication Date Title
CN110310034B (en) Service arrangement and business flow processing method and device applied to SaaS
AU2023241398A1 (en) Continuous data sensing of functional states of networked computing devices to determine efficiency metrics for servicing electronic messages asynchronously
CN105138312A (en) Table generation method and apparatus
CN110674083B (en) Workflow migration method, device, equipment and computer readable storage medium
CN109885624A (en) Data processing method, device, computer equipment and storage medium
US10585678B2 (en) Insertion of custom activities in an orchestrated application suite
CN107704256A (en) The method that Python relies on system library automation installation is realized on a kind of Ubuntu
CN110781180A (en) Data screening method and data screening device
CN113391901A (en) RPA robot management method, device, equipment and storage medium
CN116644250B (en) Page detection method, page detection device, computer equipment and storage medium
CN109614271A (en) Control method, device, equipment and the storage medium of multiple company-data consistency
CN109951376B (en) Instant messaging software information acquisition method, device, system and storage medium
CN115828387A (en) Building energy consumption calculation system and method, computer device and storage medium
Tandel et al. Scripting engine for SCADA HMI
CN111488386A (en) Data query method and device
WO2014036073A2 (en) Method and apparatus for browsing large data network topology trees
CN113190286B (en) MES system, loading method, terminal and medium for dynamically and remotely loading functional plug-ins
CN113515715B (en) Buried point event code generation method, buried point event code processing method and related equipment
CN112817782B (en) Data acquisition reporting method and device, electronic equipment and storage medium
Plale et al. Data provenance for preservation of digital geoscience data
CN108873824B (en) Simulation display method and device based on SCADA system and SCADA system
CN109462649A (en) A kind of telefile analysis method, device, system and its storage medium
CN117093207B (en) Entity processing method, device and system of multi-service data model
CN108037981B (en) Accessory management method and device
CN115033240A (en) Processing method and device for error reporting information, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination