CN109634140B - Method, device, unit and computer equipment for updating running environment data - Google Patents
Method, device, unit and computer equipment for updating running environment data Download PDFInfo
- Publication number
- CN109634140B CN109634140B CN201811590740.XA CN201811590740A CN109634140B CN 109634140 B CN109634140 B CN 109634140B CN 201811590740 A CN201811590740 A CN 201811590740A CN 109634140 B CN109634140 B CN 109634140B
- Authority
- CN
- China
- Prior art keywords
- environment data
- operating environment
- database
- data
- region
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 238000004088 simulation Methods 0.000 claims abstract description 46
- 238000004590 computer program Methods 0.000 claims description 28
- 238000004378 air conditioning Methods 0.000 claims description 19
- 238000005265 energy consumption Methods 0.000 claims description 19
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 claims description 18
- 238000001816 cooling Methods 0.000 claims description 11
- 238000010586 diagram Methods 0.000 description 6
- 238000004364 calculation method Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000005094 computer simulation Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000004134 energy conservation Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000010438 heat treatment Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 238000009423 ventilation Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B17/00—Systems involving the use of models or simulators of said systems
- G05B17/02—Systems involving the use of models or simulators of said systems electric
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The application relates to a method, a device, a unit and computer equipment for updating running environment data. The method comprises the following steps: acquiring operating environment data of each region; comparing whether the operating environment data is the same as the historical operating environment data; and when the operating environment data is different from the historical operating environment data of the region, updating the operating environment data of the region to the database. By adopting the method, the workload of manually importing data can be reduced, the working efficiency is improved, a more accurate data source is provided for the simulation platform, and the accuracy of the simulation result is improved.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a set, a computer device, and a storage medium for updating operating environment data.
Background
At present, in the heating and ventilation industry, the problem of energy consumption of an air conditioner room is an important concern and is deeply discussed all the time; in the early stage of system design, no standard exists for whether the equipment type selection is reasonable and energy conservation is achieved, whether an energy-saving strategy is reasonable when an equipment manufacturer carries out group control system design is not determined, the EERS operation amount in the system year is uncertain, and a result can be obtained only when the system stably operates for a long time and manual debugging is carried out on the engineering site according to the end load working condition; in order to solve the problems, a water system energy consumption simulation platform needs to be developed.
The water system energy consumption simulation platform is a platform which is provided with various devices under a determined water system form and then conducts dynamic simulation calculation by leading in or utilizing the existing meteorological data and room data.
Disclosure of Invention
In view of the above, it is necessary to provide a method, an apparatus, a set, a computer device, and a storage medium for updating operating environment data, which can improve the accuracy of simulation results, in view of the above technical problems.
A method of updating runtime environment data, the method comprising:
acquiring operating environment data of each region;
comparing whether the operating environment data is the same as historical operating environment data;
when the operating environment data is different from the historical operating environment data of the region, updating the operating environment data of the region to a database.
In one embodiment, the obtaining the operating environment data of each region includes:
and calling a first system background service to acquire the running environment data of each region.
In one embodiment, the invoking the first system background service to obtain the runtime environment data of each region includes:
setting a timing task;
and after a preset time interval corresponding to the timing task, calling a first system background service to acquire the operating environment data of each area.
In one embodiment, the comparing whether the operating environment data is the same as the historical operating environment data includes:
calling a second system background service;
and comparing whether the running environment data is the same as the historical running environment data or not through the second system background service.
In one embodiment, the database comprises a backup database and a formal database; the updating the operating environment data of the region to a database includes:
storing the operating environment data of the region to a backup database;
and when the number of the online users meets a preset number threshold, updating the operating environment data in the backup database to the formal database.
In one embodiment, before the step of updating the operating environment data in the backup database to the formal database when the number of online users meets a preset number threshold, the method further includes:
and calling a third system background service to obtain the number of online users of the simulation platform corresponding to the backup database.
In one embodiment, the updating the operating environment data in the backup database to the formal database when the number of online users meets a preset number threshold includes:
and when the number of the online users meets a preset number threshold, updating a data table corresponding to the operating environment data in the backup database into a data table of the formal database.
In one embodiment, the operating environment data includes at least one of meteorological data, building cooling load data.
An apparatus for updating runtime environment data, the apparatus comprising:
the data acquisition module is used for acquiring the operating environment data of each region;
the comparison module is used for comparing whether the operation environment data is the same as the historical operation environment data;
and the updating module is used for updating the operating environment data of the region to a database when the operating environment data is different from the historical operating environment data of the region.
An air conditioning unit comprises an air conditioning system and a controller for controlling the air conditioning system; the air conditioning system is in communication connection with the controller; wherein the controller controls the air conditioning system according to the following method:
acquiring operating environment data of each region;
comparing whether the operating environment data is the same as historical operating environment data;
when the operating environment data is different from the historical operating environment data of the region, updating the operating environment data of the region to a database.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring operating environment data of each region;
comparing whether the operating environment data is the same as historical operating environment data;
when the operating environment data is different from the historical operating environment data of the region, updating the operating environment data of the region to a database.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring operating environment data of each region;
comparing whether the operating environment data is the same as historical operating environment data;
when the operating environment data is different from the historical operating environment data of the region, updating the operating environment data of the region to a database.
The method, the device, the computer equipment and the storage medium for updating the operating environment data acquire the operating environment data of each region; comparing whether the operating environment data is the same as the historical operating environment data; when the operating environment data is different from the historical operating environment data of the region, updating the operating environment data of the region to a database; when the operating environment data is changed, the operating environment data of the corresponding region where the data occurs is updated, the workload of manually importing the data is reduced, the working efficiency is improved, a more accurate data source is provided for the simulation platform, and the accuracy of the simulation result is improved.
Drawings
FIG. 1 is a flow diagram of a method for updating runtime environment data, according to one embodiment;
FIG. 2 is a block diagram of an apparatus for updating runtime environment data, according to an embodiment;
FIG. 3 is an internal block diagram of an air conditioning unit according to one embodiment;
FIG. 4 is an internal block diagram of a computer device of an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The method for updating the running environment data can be applied to the terminal and the server. The terminal may be, but is not limited to, various personal computers, notebook computers, tablet computers, and the like, and the server may be implemented by an independent server or a server cluster formed by a plurality of servers.
In one embodiment, as shown in fig. 1, there is provided a method for updating runtime environment data, including the steps of:
step S201, acquiring running environment data of each area;
in this embodiment, the operation environment data of each region may be first obtained, where the operation environment data may include an environmental parameter required by the water system energy consumption simulation platform, that is, the simulation platform needs to perform energy consumption simulation by using the operation environment data to obtain a simulation result, for example, the operation environment data may include weather data, building cooling load, and the like, which is not limited in this embodiment.
In the present embodiment, because the operating environment data of each region are different, for example, the average air temperature in the Hainan region and the average air temperature in the Heilongjiang region are greatly different, the operating environment data in a preset period of each different region may be obtained; it should be noted that, for the division of the regions, different regions may be divided by using provinces as boundaries, such as the above-mentioned hainan region and the black longjiang region, or different regions may be divided in the form of geographical large regions, such as the south china region, the central china region, and the north china region, for example, the average air temperature of the south china region or the central china region may be obtained.
The operating environment data for each region may be data captured from a network, or may be preset data, which is not limited in this embodiment.
For example, the source of the weather data in each region may be obtained through various official weather websites or non-official weather websites, and specifically, an Application Programming Interface (API) of the weather website may be called to obtain the corresponding weather data.
On the other hand, the source of the building cooling load in the operating environment data for each region may be preset template data of different buildings.
Step S202, comparing whether the operation environment data is the same as the historical operation environment data;
further applied to the embodiment, after the operating environment data is acquired, the operating environment data and the historical operating environment data may be matched to compare whether the operating environment data and the historical operating environment data are the same.
It should be noted that the operating environment data refers to the operating environment data acquired this time, that is, the historical operating environment data refers to the operating environment data acquired last time; each data acquisition operation can be separated by a fixed preset time interval, and the preset time interval can be 7 days, 5 days, 24 hours, 2 hours or 30 minutes and the like; the preset time interval may be any time period set by a person skilled in the art according to practical situations, and the embodiment does not limit this.
Specifically, the data may be determined to be the current operating environment data or the last operating environment data according to the timestamp of the data, and after the data in the storage area is determined to be the operating environment data or the historical operating environment data, whether the operating environment data of each area is the same as the historical operating environment data may be compared.
In a core concept of this embodiment, it may be detected whether the operating environment data of each region changes, and when the operating environment data changes, the operating environment data of the corresponding region where the data occurs is updated, so as to reduce the workload of manually importing the data and improve the working efficiency.
In step S203, when the operating environment data is different from the historical operating environment data of the region, the operating environment data of the region is updated to the database.
In practice, when the operating environment data is different from the historical operating environment data of the corresponding region, the operating environment data of the region is updated to the database, that is, the historical operating environment of the region is replaced by the operating environment data of the region, or the operating environment data of the region is saved in the latest position of the data table according to the updating time.
For example, when the operating environment data of the Hainan region is different from the historical operating environment data of the Hainan region acquired last time, updating the operating environment data of the Hainan region acquired this time to the database; the operating environment data of the Hainan area obtained this time can be replaced by the historical operating environment data of the Hainan area obtained last time, and the data storage space is saved.
In this embodiment, when the operating environment data of a plurality of different areas are compared with the historical operating environment data, the operating environment data of the different areas can be compared with the historical operating environment data in a manner of calling a plurality of threads; for example, five threads can be set to simultaneously compare the operating environment data of the Hainan region, the Heilongjiang region, the Anhui region, the Beijing region and the Xinjiang region with the historical operating environment data, so that the comparison efficiency is improved. The operating environment data of each region may also be compared with the historical operating environment data one by one, which is not limited in this embodiment.
Specifically, after the comparison operation of the operating environment data is completed, the operating environment data of the corresponding region where the data is changed may be updated to the database.
It should be noted that the database may be a database of the water system energy consumption simulation platform, that is, the water system energy consumption simulation platform may obtain updated operating environment data from the database, and obtain a simulation result by using the operating environment data, thereby improving accuracy of the simulation result.
According to the updating method of the operating environment data provided by the embodiment, the operating environment data of each region is obtained; comparing whether the operating environment data is the same as the historical operating environment data; when the operating environment data is different from the historical operating environment data of the region, updating the operating environment data of the region to a database; when the operating environment data is changed, the operating environment data of the corresponding region where the data occurs is updated, the workload of manually importing the data is reduced, the working efficiency is improved, a more accurate data source is provided for the simulation platform, and the accuracy of the simulation result is improved.
In one embodiment, obtaining operating environment data for each region includes: and calling a first system background service to acquire the running environment data of each region.
In this embodiment, the system background service may also be invoked to obtain the operating environment data of each region, for example, the first system background service is invoked to obtain the operating environment data of each region; specifically, the first system background service may be invoked to obtain weather data of each region from a weather website.
It should be noted that the system background service may be a background service application program of a Windows operating system, may also be a background service application program of a Linux operating system, and certainly may also include background service application programs of other operating systems, which is not limited in this embodiment.
Namely, the operating system operated by the equipment applied by the method can be Windows, Linux and the like; taking the Windows operating system as an example for illustration, when the Windows operating system is started, a plurality of Windows services (i.e. background service applications of the Windows operating system) can be created, wherein the Windows services can be applications for long-term running in a server environment, such applications do not need to have a user interface or any analog output, and any user message is usually recorded in a Windows event log.
The Windows service can be started when the operating system is started, run in the background all the time, and can be started manually when needed, and unified management can be carried out through the service in the management tool. It has no standard UI (user interface) interface, and compared with a standard EXE (Executable) program, Windows service is created when the service is started and destroyed when the service is ended, and it can be set whether the service is started together with the Windows operating system and closed together.
The system background services may further include a second system background service, a third system background service, a fourth system background service, and the like, and the number of the created system background services is not particularly limited in this embodiment.
In one embodiment, invoking the first system background service to obtain the running environment data of each region comprises: setting a timing task; and after a preset time interval corresponding to the timing task, calling the first system background service to acquire the operating environment data of each region.
In a preferred embodiment of this embodiment, a timing task may be further set, and after a preset time interval corresponding to the timing task elapses, the first system background service may be invoked to obtain the operating environment data of each area; namely, a timing task is set, and the first system background service is triggered and called to acquire data at a timing.
In one embodiment, the database may include a backup database and a formal database; when the operating environment data is different from the historical operating environment data of the region, updating the operating environment data of the region to a database, including: storing the operating environment data of the region to a backup database; and when the number of the online users meets a preset number threshold, updating the operating environment data in the backup database to a formal database.
When the operation environment data is different from the historical operation environment data of the region, the operation environment data of the corresponding region is stored in a backup database, namely the database of the water system energy consumption simulation platform can comprise the backup database and a formal database; if the operating environment data changes, the changed data can be firstly saved in the backup database.
Updating the operating environment data in the backup database to the formal database under the condition that no conflict occurs when the formal database is updated; namely, the preset quantity threshold value can be 0, and when the quantity of the online users of the water system energy consumption simulation platform is 0, the operating environment data in the backup database is updated to the formal database.
Before the update operation, the timestamp corresponding to the operating environment data may also be obtained, and compared with the timestamp corresponding to the historical operating environment data in the formal database, and when the timestamp corresponding to the operating environment data is earlier than the timestamp corresponding to the historical operating environment data, the backup database is not updated. The time stamp mentioned above represents the update time of the data.
In one embodiment, comparing the operating environment data to historical operating environment data comprises: calling a second system background service; and comparing whether the running environment data is the same as the historical running environment data or not through the background service of the second system.
In this embodiment, an individual background service application may also be invoked to perform comparison operation on the running environment data, specifically, the system background service may include a second system background service, and after the second system background service is invoked, the running environment data is compared with the historical running environment data by the second system background service to determine whether the running environment data is the same as the historical running environment data; and traversing the parameters contained in the operating environment data and the parameters contained in the historical operating environment data, and comparing the parameters with the parameters to obtain a comparison result.
For example, when the operating environment data includes average temperatures of 20 different regions and the historical operating environment data includes average temperatures of 20 different regions, the operating environment data and the average temperatures of each region in the historical operating environment data are compared to determine whether the temperature data of each region are the same.
In one embodiment, when the number of online users meets a preset number threshold, before the step of updating the operating environment data in the backup database to the formal database, the method further includes: and calling a third system background service to obtain the number of online users of the simulation platform corresponding to the backup database.
In this embodiment, another separate background service application program may be further established to obtain the number of online users of the simulation platform, that is, the system background service may include a third system background service, the number of online users of the water system energy consumption simulation platform corresponding to the backup database is obtained by calling the third system background service, and in order to avoid conflict between the operation of updating the database and the operation of the user logging in the simulation platform for calculation, a policy may be set that when the number of online users is 0, the operating environment data in the backup database is updated to the formal database; i.e. the preset number threshold may be 0.
The backup database is equivalent to a cache database, and the formal database is updated only when the online user of the simulation platform is 0, so that the success rate of data writing is improved, and the efficiency is effectively improved.
In one embodiment, when the number of online users meets a preset number threshold, updating the operating environment data in the backup database to the formal database includes: and when the number of the online users meets a preset number threshold, updating a data table corresponding to the operating environment data in the backup database into a data table of the formal database.
Specifically, the operating environment data and the historical operating environment data may be stored in different databases in the form of data tables, respectively; preferably, the data table may include data tables corresponding to various regions, and when the number of online users is 0, the data table corresponding to the operating environment data in the backup database is updated to the data table of the regular database.
In one embodiment, the current operating environment data includes at least one of meteorological data, building cooling load data.
It should be noted that the meteorological data may include an average air temperature, a relative humidity, and the like, the average air temperature may include an outdoor dry bulb temperature, an outdoor wet bulb temperature, and the like, and further, the building cooling load data may include a unit area cooling load, a building maximum cooling load, and the like, which is not limited in this embodiment.
It should be noted that the updating method in each embodiment is not only suitable for the water system energy consumption simulation platform, but also suitable for other data simulation platforms, and also suitable for other platforms requiring data updating, which is not limited in this embodiment; the technical effect of reducing the time for searching, sorting and importing data by an administrator is achieved.
It should be noted that the water system energy consumption simulation platform may be a part of an air conditioning system, that is, the air conditioning system may include the water system energy consumption simulation platform, and of course, may further include other components, such as a controller for controlling the air conditioning system, and the air conditioning system and the controller may be components of an air conditioning unit, which is not limited in this embodiment.
In order to make the present embodiment better understood by those skilled in the art, the following description will be given taking meteorological data in the operating environment data as a specific example.
1. Establishing a background service A, a background service B and a background service C; the background service A is used for acquiring and storing the current meteorological data of each area and the corresponding latest updating time; the background service B is used for reading historical meteorological data and the latest updating time corresponding to the historical meteorological data in a formal database, and comparing the latest updating time corresponding to the historical meteorological data with the latest updating time corresponding to the meteorological data of each current region; the background service C is used for acquiring the current online user number of the simulation platform and storing the current online user number;
2. setting a timing task in a database of the simulation platform, and realizing the purpose of automatically triggering and calling a background service A at regular time to acquire the current meteorological data of each area;
3. after the weather data are successfully acquired, calling a background service B to check whether the historical weather data of each area are consistent with the current weather data of each area;
4. when the historical meteorological data of each region is inconsistent with the current meteorological data of each region, storing the current meteorological data in a data table of the corresponding region in a backup database;
5. in order to avoid conflict between the operation of updating the database and the operation of logging in the simulation platform by the user, the following strategies are set: and acquiring the current number of online users of the simulation platform through the background service C, and updating the data table of the backup database to the data table of the corresponding region of the formal database when the number of the online users is 0.
It should be understood that, although the steps in the flowchart of fig. 1 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 described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 1 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 2, there is provided an apparatus for updating runtime environment data, including: a data acquisition module 301, a comparison module 302, and an update module 303, wherein:
a data acquisition module 301, configured to acquire operating environment data of each region;
a comparing module 302, configured to compare whether the operating environment data is the same as the historical operating environment data;
an updating module 303, configured to update the operating environment data of the region to a database when the operating environment data is different from the historical operating environment data of the region.
In one embodiment, the data acquisition module comprises:
and the first obtaining submodule is used for calling the first system background service to obtain the operating environment data of each region.
In one embodiment, the first obtaining sub-module includes:
a setting unit for setting a timing task;
and the acquisition unit is used for calling the first system background service to acquire the running environment data of each area after a preset time interval corresponding to the timing task.
In one embodiment, the comparison module comprises:
the calling submodule is used for calling the second system background service;
and the comparison submodule is used for comparing whether the operating environment data is the same as the historical operating environment data or not through the second system background service.
In one embodiment, the database comprises a backup database and a formal database; the update module includes:
the storage submodule is used for storing the operating environment data of the region to a backup database;
and the updating submodule is used for updating the operating environment data in the backup database to the formal database when the number of the online users meets a preset number threshold.
In one embodiment, the module connected to the update submodule includes:
and the quantity obtaining submodule is used for calling a third system background service to obtain the quantity of the online users of the simulation platform corresponding to the backup database.
In one embodiment, the update submodule includes:
and the updating unit is used for updating the data table corresponding to the operating environment data in the backup database into the data table of the formal database when the number of the online users meets a preset number threshold.
In one embodiment, the operating environment data includes at least one of meteorological data, building cooling load data.
For specific limitations of the updating device of the operating environment data, reference may be made to the above limitations of the updating method of the operating environment data, which are not described herein again. The modules in the device for updating operating environment data may be implemented wholly or partially by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
The provided device for updating the operating environment data can be used for executing the method for updating the operating environment data provided by any embodiment, and has corresponding functions and beneficial effects.
In one embodiment, an air conditioning unit is provided, the internal structure of which may be as shown in fig. 3. The air conditioner comprises an air conditioning system and a controller for controlling the air conditioning system; wherein the controller comprises a memory, a processor, a network interface and a computer program stored on the memory and operable on the processor, the processor controlling the air conditioning system when executing the computer program by:
acquiring operating environment data of each region;
comparing whether the operating environment data is the same as historical operating environment data;
when the operating environment data is different from the historical operating environment data of the region, updating the operating environment data of the region to a database.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 4. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method for updating runtime environment data. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 4 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
acquiring operating environment data of each region;
comparing whether the operating environment data is the same as historical operating environment data;
when the operating environment data is different from the historical operating environment data of the region, updating the operating environment data of the region to a database.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and calling a first system background service to acquire the running environment data of each region.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
setting a timing task;
and after a preset time interval corresponding to the timing task, calling a first system background service to acquire the operating environment data of each area.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
calling a second system background service;
and comparing whether the running environment data is the same as the historical running environment data or not through the second system background service.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
storing the operating environment data of the region to a backup database;
and when the number of the online users meets a preset number threshold, updating the operating environment data in the backup database to the formal database.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and calling a third system background service to obtain the number of online users of the simulation platform corresponding to the backup database.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and when the number of the online users meets a preset number threshold, updating a data table corresponding to the operating environment data in the backup database into a data table of the formal database.
In one embodiment, the operating environment data includes at least one of meteorological data, building cooling load data.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring operating environment data of each region;
comparing whether the operating environment data is the same as historical operating environment data;
when the operating environment data is different from the historical operating environment data of the region, updating the operating environment data of the region to a database.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and calling a first system background service to acquire the running environment data of each region.
In one embodiment, the computer program when executed by the processor further performs the steps of:
setting a timing task;
and after a preset time interval corresponding to the timing task, calling a first system background service to acquire the operating environment data of each area.
In one embodiment, the computer program when executed by the processor further performs the steps of:
calling a second system background service;
and comparing whether the running environment data is the same as the historical running environment data or not through the second system background service.
In one embodiment, the computer program when executed by the processor further performs the steps of:
storing the operating environment data of the region to a backup database;
and when the number of the online users meets a preset number threshold, updating the operating environment data in the backup database to the formal database.
In one embodiment, the computer program when executed by the processor further performs the steps of:
storing the operating environment data of the region to a backup database;
and when the number of the online users meets a preset number threshold, updating the operating environment data in the backup database to the formal database.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and when the number of the online users meets a preset number threshold, updating a data table corresponding to the operating environment data in the backup database into a data table of the formal database.
In one embodiment, the computer program when executed by the processor further performs the steps of:
the operating environment data includes at least one of meteorological data, building cooling load data.
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 hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (12)
1. A method for updating running environment data is applied to a water system energy consumption simulation platform and comprises the following steps:
acquiring operating environment data of each region;
comparing whether the operating environment data is the same as historical operating environment data;
when the operating environment data is different from the historical operating environment data of the region, updating the operating environment data of the region to a database; the database is a database of the water system energy consumption simulation platform; the database comprises a backup database and a formal database; before the updating the operating environment data of the region to the database, the method further comprises: acquiring a timestamp corresponding to the operating environment data, comparing the timestamp with a timestamp corresponding to historical operating environment data in the formal database, and if the timestamp corresponding to the operating environment data is earlier than the timestamp corresponding to the historical operating environment data, not updating the backup database; wherein the time stamp is used for representing the update time of the data;
the updating the operating environment data of the region to a database includes:
storing the operating environment data of the region to a backup database;
when the number of the online users meets a preset number threshold, updating the operating environment data in the backup database to the formal database; the number of the online users is the number of the online users of the simulation platform corresponding to the backup database; the simulation platform is the water system energy consumption simulation platform.
2. The method of claim 1, wherein the obtaining operating environment data for each region comprises:
and calling a first system background service to acquire the running environment data of each region.
3. The method of claim 2, wherein invoking the first system background service to obtain runtime environment data of each region comprises:
setting a timing task;
and after a preset time interval corresponding to the timing task, calling a first system background service to acquire the operating environment data of each area.
4. The method of claim 1, wherein the comparing whether the operating environment data is the same as historical operating environment data comprises:
calling a second system background service;
and comparing whether the running environment data is the same as the historical running environment data or not through the second system background service.
5. The method of claim 1, wherein the preset number threshold is 0.
6. The method of claim 1, wherein the step of updating the runtime environment data in the backup database to the regular database when the number of online users meets a preset number threshold is preceded by the step of:
and calling a third system background service to obtain the number of online users of the simulation platform corresponding to the backup database.
7. The method of claim 1, wherein updating the runtime environment data in the backup database to a formal database when the number of online users meets a preset number threshold comprises:
and when the number of the online users meets a preset number threshold, updating a data table corresponding to the operating environment data in the backup database into a data table of the formal database.
8. The method of any of claims 1 to 7, wherein the operating environment data comprises at least one of meteorological data, building cooling load data.
9. The utility model provides an update device of operational environment data which is applied to water system energy consumption simulation platform, includes:
the data acquisition module is used for acquiring the operating environment data of each region;
the comparison module is used for comparing whether the operation environment data is the same as the historical operation environment data;
the updating module is used for updating the operating environment data of the region to a database when the operating environment data is different from the historical operating environment data of the region; the database is a database of the water system energy consumption simulation platform; the database comprises a backup database and a formal database; before the updating the operating environment data of the region to the database, the method further comprises: acquiring a timestamp corresponding to the operating environment data, comparing the timestamp with a timestamp corresponding to historical operating environment data in the formal database, and if the timestamp corresponding to the operating environment data is earlier than the timestamp corresponding to the historical operating environment data, not updating the backup database; wherein the time stamp is used for representing the update time of the data;
the update module includes:
the storage submodule is used for storing the operating environment data of the region into a backup database;
the updating submodule is used for updating the operating environment data in the backup database to the formal database when the number of the online users meets a preset number threshold; the number of the online users is the number of the online users of the simulation platform corresponding to the backup database; the simulation platform is the water system energy consumption simulation platform.
10. An air conditioning unit is characterized by comprising an air conditioning system and a controller for controlling the air conditioning system; wherein,
the controller controls the air conditioning system according to the method of any one of claims 1 to 8.
11. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method for updating execution environment data of any one of claims 1 to 8 when executing the computer program.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for updating execution environment data of one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811590740.XA CN109634140B (en) | 2018-12-25 | 2018-12-25 | Method, device, unit and computer equipment for updating running environment data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811590740.XA CN109634140B (en) | 2018-12-25 | 2018-12-25 | Method, device, unit and computer equipment for updating running environment data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109634140A CN109634140A (en) | 2019-04-16 |
CN109634140B true CN109634140B (en) | 2020-05-15 |
Family
ID=66077354
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811590740.XA Active CN109634140B (en) | 2018-12-25 | 2018-12-25 | Method, device, unit and computer equipment for updating running environment data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109634140B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110345602B (en) * | 2019-07-15 | 2020-10-30 | 珠海格力电器股份有限公司 | Air conditioner maintenance method and device, computer equipment and storage medium |
CN110751227A (en) * | 2019-10-28 | 2020-02-04 | 中国建设银行股份有限公司 | Data processing method, device, equipment and storage medium |
CN113126512B (en) * | 2021-04-01 | 2023-07-18 | 青岛海尔空调器有限总公司 | Method and device for reporting data and intelligent household appliance |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101393570B (en) * | 2007-09-19 | 2013-05-29 | 深圳达实智能股份有限公司 | Operation emulation system for central air-conditioning |
JP5830817B2 (en) * | 2010-12-20 | 2015-12-09 | 株式会社三和技術総合研究所 | Energy conversion device simulation method and energy conversion device simulation system |
CN103186475A (en) * | 2011-12-29 | 2013-07-03 | 深圳市快播科技有限公司 | Receiving and storage method and system for mass data |
CN104061661A (en) * | 2014-07-16 | 2014-09-24 | 珠海格力电器股份有限公司 | Temperature display method and device for air conditioner |
CN105389419A (en) * | 2015-10-19 | 2016-03-09 | 上海市建筑科学研究院(集团)有限公司 | Simple and easy method for energy-saving effect evaluation of residential buildings |
CN108334633B (en) * | 2018-02-26 | 2020-09-15 | 平安普惠企业管理有限公司 | Data updating method and device, computer equipment and storage medium |
CN108983625B (en) * | 2018-07-20 | 2021-05-25 | 山东大学深圳研究院 | Intelligent household system and service generation method |
-
2018
- 2018-12-25 CN CN201811590740.XA patent/CN109634140B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN109634140A (en) | 2019-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109634140B (en) | Method, device, unit and computer equipment for updating running environment data | |
WO2020253111A1 (en) | Automatic expansion method and apparatus for blockchain node, and operation and maintenance terminal and storage medium | |
CN109766349B (en) | Task duplicate prevention method, device, computer equipment and storage medium | |
CN110362009A (en) | Building system configuration logic generation method and device and building system | |
CN110502304B (en) | Equipment parameter configuration method and device, computer equipment and storage medium | |
CN111400308A (en) | Processing method of cache data, electronic device and readable storage medium | |
CN113672263B (en) | Firmware parameter updating control method and device and electronic equipment | |
CN113360250B (en) | Application service resource control method, device, equipment and medium | |
CN109542962B (en) | Data processing method, data processing device, computer equipment and storage medium | |
CN111885184A (en) | Method and device for processing hot spot access keywords in high concurrency scene | |
CN108763046B (en) | Thread running monitoring method, device, computer equipment and storage medium | |
CN110866011B (en) | Data table synchronization method and device, computer equipment and storage medium | |
CN116249306A (en) | Cabinet management method and system based on data set display management | |
WO2016115841A1 (en) | Centralized account information management method and terminal | |
CN105426301A (en) | Linux platform based Oracle database pressure testing method | |
CN103488538A (en) | Application extension device and application extension method in cloud computing system | |
CN113254153B (en) | Method and device for processing flow task, computer equipment and storage medium | |
CN107479974A (en) | A kind of dispatching method of virtual machine and device | |
WO2021174779A1 (en) | Data pre-processing system and method, computer device, and readable storage medium | |
CN112256529A (en) | Web crawler monitoring method and device, computer equipment and storage medium | |
CN111159271A (en) | Data processing method and device, computer equipment and storage medium | |
CN104111892A (en) | Internal memory dynamic distribution method and system | |
CN112131179B (en) | Task state detection method, device, computer equipment and storage medium | |
CN104809021A (en) | Management system and management method for multiple operation environment service | |
CN110874370B (en) | Data query method and device, computer equipment and readable 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |