Power failure monitoring method and device and storage medium

By using preset time nodes to wait, download the list of power outage events, read the power outage parameters and filter the monitoring objects in the power outage monitoring method and device, the problem of low power outage monitoring efficiency in the existing technology is solved, and efficient power outage monitoring is achieved and analysis.

CN119401652APending Publication Date: 2025-02-07GUANGDONG POWER GRID CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411544718.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

The existing technology is less efficient, time-consuming and labor-intensive in monitoring and analysis of power outage events, making it difficult to effectively manage customer demands and refine the analysis of power outages.

Method used

Provide a power outage monitoring method and device, by waiting at a preset time node, downloading a list of power outage events, reading a variety of power outage parameters, filtering outage monitoring objects, and performing power outage monitoring prompts in the preset power outage monitoring group .

Benefits of technology

The framework of automated monitoring of power outages has been realized, which greatly reduces manual operations, saves time and costs, and improves the efficiency of monitoring power outages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119401652A_ABST
    Figure CN119401652A_ABST
Patent Text Reader

Abstract

The invention discloses a power failure monitoring method and device and a storage medium. The method comprises the following steps: waiting for a time node for monitoring a power failure event; when the time node is reached, downloading a power failure event list in a preset marketing system; reading a plurality of power failure parameters in the power failure event list; screening out a power failure monitoring object from the power failure event list according to the power failure parameters; and executing a power failure monitoring prompt operation on the power failure monitoring object in a preset power failure monitoring group. The embodiment of the invention provides a framework for automatically monitoring power failure, so that the manual operation is greatly reduced, the time and the cost are saved, and the power failure monitoring efficiency is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electric power technology, and in particular to a power outage monitoring method, device and storage medium. Background Art

[0002] During the operation of the power grid, power outages may be caused by faults, upgrades and renovations. Currently, service dispatchers usually count the power outages every 2 hours (8 times a day) from 7:00 to 23:00, manually query the recent power outage events in the marketing system and export them, and publish relevant power outage information according to different situations.

[0003] In this way, it is possible to manage customer demands at the source, analyze power outages in detail, implement power resource allocation, speed up the restoration of power supply configuration, and at the same time issue customer service risk warnings and strengthen service dispatching throughout the power outage process.

[0004] However, there are many types of power outages involved, the causes of power outages are complex, the analysis and calculation are difficult, time-consuming, labor-intensive, and inefficient. Summary of the invention

[0005] In view of this, the present invention provides a power outage monitoring method, device and storage medium to improve the efficiency of monitoring power outages.

[0006] A first aspect of the present invention provides a power outage monitoring method, comprising:

[0007] Waiting for the time node of monitoring the power outage event;

[0008] When the time node is reached, a power outage event list is downloaded in a preset marketing system;

[0009] Reading a plurality of power outage parameters in the power outage event list;

[0010] Filtering out power outage monitoring objects in the power outage event list according to the power outage parameters;

[0011] A power outage monitoring prompt operation is performed on the power outage monitoring object in a preset power outage monitoring group.

[0012] A second aspect of the present invention provides a power outage monitoring device, comprising:

[0013] A time node waiting module is used to wait for the time node for monitoring the power outage event;

[0014] A power outage event list downloading module, used to download the power outage event list in a preset marketing system when the time node is reached;

[0015] A power outage parameter reading module, used for reading a variety of power outage parameters in the power outage event list;

[0016] A power outage monitoring object screening module, used to screen out power outage monitoring objects in the power outage event list according to the power outage parameters;

[0017] The power outage monitoring prompt operation execution module is used to execute the power outage monitoring prompt operation on the power outage monitoring object in a preset power outage monitoring group.

[0018] A third aspect of the present invention provides an electronic device, the electronic device comprising:

[0019] at least one processor; and

[0020] a memory communicatively connected to the at least one processor; wherein,

[0021] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the power outage monitoring method as described in the first aspect above.

[0022] A fourth aspect of the present invention provides a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the power outage monitoring method as described in the first aspect above.

[0023] A fifth aspect of the present invention provides a computer program product, the computer program product comprising a computer program, and when the computer program is executed by a processor, the power outage monitoring method as described in the first aspect above is implemented.

[0024] In this embodiment, a time node for monitoring a power outage event is waited for; when the time node is reached, a power outage event list is downloaded from a preset marketing system; multiple power outage parameters are read from the power outage event list; power outage monitoring objects are screened out from the power outage event list based on the power outage parameters; and a power outage monitoring prompt operation is performed on the power outage monitoring objects in a preset power outage monitoring group. This embodiment provides a framework for automated monitoring of power outages, greatly reducing manual operations, saving time and costs, and effectively improving the efficiency of monitoring power outages.

[0025] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0027] Figure 1 This is a flow chart of a power outage monitoring method provided in Embodiment 1 of the present invention.

[0028] Figure 2 This is an example diagram of a power outage monitoring prompt operation provided in Embodiment 1 of the present invention.

[0029] Figure 3 It is a structural schematic diagram of a power outage monitoring device provided in Embodiment 2 of the present invention.

[0030] Figure 4 It is a structural schematic diagram of an electronic device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0031] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can cover sequential implementations other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0033] Embodiment 1

[0034] See also Figure 1, showing a flow chart of a power outage monitoring method provided in Embodiment 1 of the present invention, the method can be executed by a power outage monitoring device, the power outage monitoring device can be implemented in the form of hardware and / or software, and the power outage monitoring device can be configured in an electronic device.

[0035] like Figure 1 As shown, the method includes:

[0036] Step 101: Wait for a time node for monitoring a power outage event.

[0037] In practical applications, more frequent time nodes (such as 18 time nodes in a day, with a one-hour interval between two adjacent time nodes) can be set in each time period (such as one day), and power outages in the power grid can be monitored at each time node, thereby improving monitoring efforts and reducing the workload of service dispatchers.

[0038] In one embodiment of the present invention, step 101 may include the following steps:

[0039] Step 1011, respectively calculating a first time difference in seconds and a second time difference in hours between the current time and the preset start time.

[0040] During the initialization process, the current time of the local machine can be read, and the preset start time (such as 7 hours, 0 minutes, 0 seconds) can be returned, where the start time is the time when the power outage event in the power grid starts to be monitored in a time cycle.

[0041] On the one hand, use functions such as Time.TimeSerial to calculate how many seconds there are between the current time and the start time, and output the result to the first time difference. Use functions such as Time.TimeSerial to calculate how many hours there are between the current time and the start time, and output the result to the second time difference.

[0042] Step 1012, determine whether the first time difference is greater than or equal to the first time difference threshold, and whether the second time difference is less than the second time difference threshold; if not, execute step 1013, and if so, execute step 1014.

[0043] It is determined whether the first time difference is greater than or equal to a first time difference threshold (such as 0), and at the same time, it is determined whether the second time difference is less than a second time difference threshold (such as 17).

[0044] If so, it returns the value "execute", if not, it enters the "delay" process.

[0045] Step 1013, wait for the specified target duration, and return to execute step 1011.

[0046] In the "delay" process, you can wait for a certain target time and return to execute step 1011.

[0047] In one embodiment of the present invention, step 1013 may include the following steps:

[0048] Step 10131, read the value of the current time in minutes as the score.

[0049] In this embodiment, when using functions such as Time.Time() to obtain the current time A of the local machine, you can use functions such as Time.Minute(A) to obtain the number of minutes of the current time and output the result to score B.

[0050] Step 10132: Take an integer as the ratio between the score difference and the score to obtain a count value.

[0051] In this embodiment, the integer part of (60-B) / B can be used and output to the count value N, where (60-B) represents the score difference, that is, the score difference is the difference obtained by subtracting the score B from 60.

[0052] Step 10133: Accumulate the specified step size to the preset variable.

[0053] In this embodiment, a variable i may be initialized. The variable i is initially 0 and increases with a set step size (eg, 1) in each cycle.

[0054] Step 10134, determine whether the variable is equal to the count value; if so, execute step 10135, if not, execute step 10136.

[0055] In this embodiment, in each loop, it can be determined whether the variable is equal to the count value. If the variable is equal to the count value (i.e., i=N), the loop can be exited. If the variable is equal to the count value (i.e., i≠N), the time can be delayed and the next loop can be entered.

[0056] Step 10135: Complete waiting for the specified target duration.

[0057] When exiting the loop, you can confirm that the waiting time has been completed.

[0058] Step 10136: wait for the unit time and return to execute step 10133.

[0059] In this embodiment, the waiting time may be a Delay unit time, where the unit time length is the product of the score B and a preset reference time (eg, 1000 milliseconds). When the waiting time is completed, the next cycle is entered.

[0060] Step 1014: Determine the time point for monitoring the power outage event.

[0061] In the "execution" process, it is possible to determine the time node for monitoring the power outage event and start monitoring the power outage event.

[0062] Step 102: When the time node is reached, download the power outage event list in the preset marketing system.

[0063] When each time node is reached, a power outage event list can be downloaded from the preset marketing system, where the power outage event list records the information of each power outage event in the form of rows.

[0064] In one embodiment of the present invention, step 102 may include the following steps:

[0065] Step 1021: Read the address, directory and user information from the locally preset configuration file.

[0066] In this embodiment, the address url, directory path and user information user (such as user name, user password) can be read from the local configuration file setting.

[0067] Step 1022, load the address to access the marketing system.

[0068] In this embodiment, a browser may be started, the browser window may be set to be maximized, and the address URL may be entered in the browser to access the marketing system.

[0069] Step 1023: Log in to the marketing system using user information.

[0070] In this embodiment, the user information user can be entered in the page of the marketing system to log in.

[0071] Step 1024: If the login is completed, the list of power outage events within the specified time range is searched in the directory of the marketing system (i.e., the power outage event query section).

[0072] When logging into the marketing system is completed, a list of power outage events within a specified time range (such as a certain starting year and month to the present) can be queried in the directory path of the marketing system.

[0073] Step 1025, determine whether the file in the directory exists locally; if so, execute step 1026, if not, execute step 1027.

[0074] In this embodiment, it is possible to query locally whether a file in a directory exists.

[0075] Step 1026, delete the file, wait for the preset stay time, and return to execute step 1025.

[0076] If there is a file in the directory locally, the file may be a power outage event list or other file left over from the previous monitoring of power outage events. At this time, you can delete the file to ensure that the power outage event list is accurately downloaded this time, wait for the preset stay time (such as 20 seconds), and make another judgment.

[0077] Step 1027: Download the power outage event list from the directory to the local computer.

[0078] If the file in the directory does not exist locally, you can download the power outage event list from the directory to the local computer to export the power outage event list.

[0079] Further, the line number can be read in the power outage event list.

[0080] If the number of rows is less than 1, it means that the power outage event list is empty, and there may be anomalies such as download errors, so it is determined that the power outage event list is invalid, and the process returns to step 1024 to re-download the power outage event list.

[0081] If the number of rows is greater than 1, it is determined that the power outage event list is valid.

[0082] Step 103: Read multiple power outage parameters in the power outage event list.

[0083] In the power outage event list, the same row of data is the information of the same power outage event. Therefore, the data under various power outage parameters can be read in the specified area (such as A1:BE) in the power outage event list, and these data can be written into an independent table (such as "power outage monitoring") to facilitate the monitoring of power outage events.

[0084] Exemplarily, the power outage parameters (type) in the same row include the power outage ticket number, the number of power outage customers, the number of notified customers, the power outage status, the power outage category, the planned power outage time, the estimated power restoration time, the delayed power restoration time, the actual start time of the power outage, the number of important customers, the power outage unit, and so on.

[0085] Step 104: Filter out power outage monitoring objects in the power outage event list according to the power outage parameters.

[0086] In practical applications, monitoring rules can be formulated, and power outage events that meet the monitoring rules can be screened out from the power outage event list based on power outage parameters and recorded as power outage monitoring objects.

[0087] In one embodiment of the present invention, the power outage monitoring object includes a power outage notification reissue object, and step 104 may include the following steps:

[0088] Step 1041: Filter out the rows in the power outage event list where the number of customers experiencing power outage is greater than 1, as objects to be checked.

[0089] In this embodiment, a function such as df_filtered_power_customers=df[df['number of power outage customers']>1] can be used to filter out rows with a power outage customer number greater than 1 in the power outage event list and record them as objects to be checked.

[0090] Step 1042: Screen out the objects to be inspected that meet the first condition as the objects for reissuing the power outage notice.

[0091] In this embodiment, objects to be inspected that meet the first condition may be screened out and recorded as objects to be reissued with power outage notification, thereby counting the number of objects to be reissued with power outage notification.

[0092] Among them, the first condition includes that the number of notified customers is 0 or empty, the power outage status is power outage in progress or pending power outage, and the power outage type is not a planned or adjusted power outage.

[0093] Furthermore, functions such as df_filtered_notification_customers=df[(df['notification customer number']==0)|(pd.isna(df['notification customer number']))] may be used to filter out objects to be inspected whose notification customer number is 0 or empty, where the "|" operator represents a logical OR.

[0094] You can use functions such as df_filtered_status = df_filtered_customers[df_filtered_customers['power outage status'].isin(['power outage','to be powered off'])] to filter out the objects to be inspected whose power outage status is power outage or to be powered off.

[0095] You can use functions such as df_filtered_category = df_filtered_status[~df_filtered_status['Power outage category'].isin(['Monthly plan','Power outage due to power adjustment'])] to filter out the objects to be inspected whose power outage categories are not planned or power outage due to power adjustment.

[0096] Step 1043: If the number of objects to which the power outage notice is reissued is greater than 0, the power outage notice is reissued in the marketing system based on the power outage order number of the object to be inspected that meets the first condition.

[0097] When the number of power outage notification reissue objects is greater than 0, it means that there are power outage events that have been missed and not notified. At this time, you can open the power outage notification reissue section of the marketing system, enter the power outage number of the power outage notification reissue object in the power outage order number box, and after querying, determine whether the power outage number selection box of the power outage notification reissue object exists. If it exists, check the power outage number selection box of the power outage notification reissue object and click to reissue the power outage notification. If it does not exist, skip the power outage number of this power outage notification reissue object, and traverse the power outage numbers of all power outage notification reissue objects until all objects to be inspected that meet the first condition are reissued.

[0098] Step 1044: If the number of objects to be reissued with power outage notification is equal to 0, other power outage monitoring objects are screened out from the objects to be inspected based on the power outage parameters.

[0099] When the number of power outage notification reissue objects is equal to 0, it means that the power outage reissue has been completed. Then, the power outage parameters can be analyzed according to business needs to filter out other power outage monitoring objects to be paid attention to except the power outage notification reissue objects among the objects to be inspected, so as to improve the efficiency of power outage monitoring.

[0100] It should be pointed out that the power outage notification reissue object and other power outage monitoring objects are monitored in different dimensions. Therefore, the same power outage event can be the power outage notification reissue object or other power outage monitoring objects.

[0101] Exemplarily, the power outage monitoring objects also include objects that are expected to be restored soon, objects that have not been restored within the time limit, objects of long-term power outage, objects of large-scale power outage, important customer objects, and key customer objects.

[0102] In this example, in the object to be inspected, functions such as df['maximum power restoration time'] = df[['planned power outage time', 'estimated power restoration time', 'delayed power restoration time']].max(axis=1) can be used to take the maximum value among the planned power outage time, the estimated power restoration time and the delayed power restoration time as the maximum power restoration time.

[0103] At this time, you can filter other power outage monitoring objects according to the following mode:

[0104] 1. Near the expected power restoration target

[0105] In this mode, the objects to be inspected that meet the second condition can be screened out as objects that are expected to be restored to power in the near future.

[0106] Among them, the second condition includes that the difference between the current time and the maximum power restoration time is greater than 0 and less than the first time threshold, the number of power outage customers is not 0, the power outage status is power outage or waiting for power outage, and the power outage category is not planned (such as monthly plan) or power adjustment outage.

[0107] Furthermore, the current time can be read using current_time=datetime.now() or using functions such as pd.Timestamp.now().

[0108] Use functions such as df['time difference (hours)'] = (df['maximum power-on time'] - current_time).dt.total_seconds() / 3600 to calculate the difference between the current time and the maximum power-on time.

[0109] Taking the first time threshold of 2 as an example, you can use functions such as df_filtered=df[(df['time difference (hours)']>=0)&(df['time difference (hours)']<=2)] to filter out the objects to be inspected whose difference between the current time and the maximum power-on time is greater than 0 and less than 2, indicating that the expected power supply restoration time is approaching.

[0110] Functions such as df_filtered_non_zero_customers = df[df['power outage customer number']! = 0] can be used to filter out objects to be inspected whose power outage customer number is not 0 (ie, not 0).

[0111] You can use functions such as df_filtered_status = df_filtered_customers[df_filtered_customers['power outage status'].isin(['power outage','to be powered off'])] to filter out the objects to be inspected whose power outage status is power outage or to be powered off.

[0112] You can use functions such as df_filtered_category = df_filtered_status[~df_filtered_status['Power outage category'].isin(['Monthly plan','Power outage due to power adjustment'])] to filter out the objects to be inspected whose power outage categories are not planned or power outage due to power adjustment.

[0113] 2. Objects that have not been powered on after timeout

[0114] In this mode, the objects to be inspected that meet the third condition can be screened out as timed-out and non-powered-on objects.

[0115] Among them, the third condition includes that the difference between the maximum power restoration time and the current time is greater than 0, the number of power outage customers is not 0, the power outage status is power outage or waiting for power outage, and the power outage category is not planned (such as monthly plan) or power adjustment outage.

[0116] Furthermore, the current time can be read using current_time=datetime.now() or using functions such as pd.Timestamp.now().

[0117] The difference between the current time and the maximum power-on time can be calculated using functions such as df['time difference (hours)'] = (df['maximum power-on time'] - current_time).dt.total_seconds() / 3600.

[0118] Functions such as df_filtered=df[(df['time difference (hours)']>0)] may be used to filter out objects to be inspected whose difference between the maximum power-on time and the current time is greater than 0.

[0119] Functions such as df_filtered_non_zero_customers = df[df['power outage customer number']! = 0] can be used to filter out objects to be inspected whose power outage customer number is not 0 (ie, not 0).

[0120] You can use functions such as df_filtered_status = df_filtered_customers[df_filtered_customers['power outage status'].isin(['power outage','to be powered off'])] to filter out the objects to be inspected whose power outage status is power outage or to be powered off.

[0121] You can use functions such as df_filtered_category = df_filtered_status[~df_filtered_status['Power outage category'].isin(['Monthly plan','Power outage due to power adjustment'])] to filter out the objects to be inspected whose power outage categories are not planned or power outage due to power adjustment.

[0122] 3. Objects subject to long-term power outage

[0123] In this mode, the objects to be inspected that meet the fourth condition are screened out as the objects of long-term fault power outage.

[0124] Among them, the fourth condition includes that the difference between the actual start time of the power outage and the current time is greater than or equal to the second time threshold, the power outage category is fault, the number of power outage customers is greater than 0, and the power outage status is power outage in progress or waiting for power outage.

[0125] Furthermore, the current time can be read using current_time=datetime.now() or using functions such as pd.Timestamp.now().

[0126] The difference between the actual start time of the power outage and the current time can be calculated using functions such as df['time difference (hours)'] = (current_time-df['actual start time of the power outage']).dt.total_seconds() / 3600.

[0127] Functions such as df_filtered_time_diff=df[df['time difference (hours)']>=4] may be used to filter out objects to be inspected whose difference between the actual start time of the power outage and the current time is greater than or equal to the second time threshold.

[0128] You can use functions such as df_filtered_category = df_filtered_time_diff[df_filtered_time_diff['power outage category'].str.contains('fault',na=False)] to filter out objects to be inspected whose power outage category is fault.

[0129] You can use functions such as df_filtered_customers = df_filtered_category[df_filtered_category['Number of customers with power outage']>0] to filter out the objects to be inspected whose number of customers with power outage is greater than 0 as faults.

[0130] You can use functions such as df_filtered_status = df_filtered_customers[df_filtered_customers['Power outage status'].isin(['Power outage','To be powered off'])] to filter out objects to be inspected whose power outage status is power outage or to be powered off.

[0131] 4. Objects of power outage due to large-scale faults

[0132] In this mode, the objects to be inspected that meet the fifth condition can be screened out as objects of large-scale fault power outage.

[0133] Among them, the fifth condition includes that the number of customers without power is greater than or equal to the quantity threshold, the power outage category is fault or loss of voltage, and the power outage status is power outage in progress or waiting for power outage.

[0134] Furthermore, functions such as df_filtered_customers=df_filtered_category[df_filtered_category['number of customers with power outage']>=1000] may be used to filter out objects to be inspected whose number of customers with power outage is greater than or equal to a quantity threshold (eg, 1000).

[0135] You can use functions such as df_filtered_category = df[df['power outage category'].str.contains('fault|loss of voltage', na = False, regex = True)] to filter out objects to be inspected whose power outage category is fault or loss of voltage.

[0136] You can use functions such as df_filtered_status = df_filtered_customers[df_filtered_customers['Power outage status'].isin(['Power outage in progress','To be powered off'])] to filter out objects to be inspected whose power outage categories are fault or voltage loss.

[0137] 5Important Customers

[0138] In this mode, the objects to be inspected that meet the sixth condition can be screened out as important customer objects.

[0139] Among them, the sixth condition includes that the number of important customers is greater than 0, the power outage status is in progress or pending, the power outage type is not planned (such as monthly plan) or it is a power outage due to power adjustment.

[0140] Furthermore, functions such as df_filtered_customers=df[df['number of important customers']>0] may be used to filter out objects to be inspected whose number of important customers is greater than 0.

[0141] You can use functions such as df_filtered_status = df_filtered_customers[df_filtered_customers['Power outage status'].isin(['Power outage','To be powered off'])] to filter out objects to be inspected whose power outage status is power outage or to be powered off.

[0142] You can use functions such as df_filtered_category = df_filtered_status[~df_filtered_status['Power outage category'].isin(['Monthly plan','Power outage due to power adjustment'])] to filter out objects whose power outage categories are not planned or due to power adjustment.

[0143] 6. Focus on customer targets

[0144] In this mode, the objects to be inspected that meet the seventh condition can be screened out as key customer objects.

[0145] Among them, the seventh condition includes focusing on the number of customers being greater than 0, the power outage status being in progress or pending, and the power outage type being neither a planned nor a power adjustment outage.

[0146] Furthermore, functions such as df_filtered_key_customers=df[df['number of key customers']>0] may be used to filter out objects to be inspected whose number of key customers is greater than 0.

[0147] You can use functions such as df_filtered_status = df_filtered_customers[df_filtered_customers['Power outage status'].isin(['Power outage','To be powered off'])] to filter out objects to be inspected whose power outage status is power outage or to be powered off.

[0148] You can use functions such as df_filtered_category = df_filtered_status[~df_filtered_status['Power outage category'].isin(['Monthly plan','Power outage due to power adjustment'])] to filter out objects whose power outage categories are not planned or due to power adjustment.

[0149] Of course, the above-mentioned power outage monitoring objects are only used as examples. When implementing this embodiment, other power outage monitoring objects can be set according to actual conditions, and this embodiment does not limit this. In addition, in addition to the above-mentioned power outage monitoring objects, those skilled in the art can also use other power outage monitoring objects according to actual needs, and this embodiment does not limit this.

[0150] Step 105: Perform a power outage monitoring prompt operation on the power outage monitoring object in the preset power outage monitoring group.

[0151] In this embodiment, the number of each power outage monitoring object can be counted separately, and a power outage monitoring reminder letter can be generated for the power outage monitoring object in combination with its power outage number, power outage category, power supply unit, personalized information and other information.

[0152] For each power outage monitoring object, its personalized information can be calculated according to the monitoring characteristics. For example, for a large-scale fault power outage object, it can be determined whether it is "busbar voltage loss" according to the power outage category and then the voltage loss situation can be listed, and the corresponding number of power outage customers can be listed as personalized information; for a long-term fault power outage object, the power outage duration can be listed as personalized information, and so on.

[0153] In the specific implementation, Figure 2 As shown, the application programming interface (API) provided by the instant messaging tool is called to send the power outage monitoring prompt information to a preset power outage monitoring group, which includes relevant service dispatchers in the power supply unit.

[0154] Exemplarily, the interface is sendMessage.main(content, chatid, err_num), where content is the prompt message, chatid is the id of the power outage monitoring group, and err_num is the number of attempts required after failure, which can be freely set, such as 5.

[0155] In the power outage monitoring group, the power outage unit responsible for the power outage monitoring object is prompted to browse the power outage monitoring prompt information.

[0156] In this embodiment, a time node for monitoring a power outage event is waited for; when the time node is reached, a power outage event list is downloaded from a preset marketing system; multiple power outage parameters are read from the power outage event list; power outage monitoring objects are screened out from the power outage event list based on the power outage parameters; and a power outage monitoring prompt operation is performed on the power outage monitoring objects in a preset power outage monitoring group. This embodiment provides a framework for automated monitoring of power outages, greatly reducing manual operations, saving time and costs, and effectively improving the efficiency of monitoring power outages.

[0157] Embodiment 2

[0158] See also Figure 3 , shows a schematic diagram of the structure of a power outage monitoring device provided by Embodiment 3 of the present invention. Figure 3 As shown, the device comprises:

[0159] A time node waiting module 301 is used to wait for a time node for monitoring a power outage event;

[0160] A power outage event list downloading module 302 is used to download a power outage event list in a preset marketing system when the time node is reached;

[0161] A power outage parameter reading module 303, used to read a variety of power outage parameters in the power outage event list;

[0162] A power outage monitoring object screening module 304, configured to screen out power outage monitoring objects in the power outage event list according to the power outage parameters;

[0163] The power outage monitoring prompt operation execution module 305 is used to execute the power outage monitoring prompt operation on the power outage monitoring object in a preset power outage monitoring group.

[0164] In one embodiment of the present invention, the time node waiting module 301 includes:

[0165] A time difference calculation module, used to calculate a first time difference in seconds and a second time difference in hours between the current time and a preset start time respectively;

[0166] A time difference judgment module, used to judge whether the first time difference is greater than or equal to a first time difference threshold, and whether the second time difference is less than a second time difference threshold; if not, executing a target time waiting module, and if so, executing an arrival determination module;

[0167] A target duration waiting module is used to wait for a specified target duration and return to execute the time difference calculation module;

[0168] The arrival determination module is used to determine the arrival time node for monitoring the power outage event.

[0169] In one embodiment of the present invention, the target duration waiting module includes:

[0170] The score reading module is used to read the value of the current time in minutes as the score;

[0171] A count value determination module, used for taking an integer of the ratio between the score difference value and the score value to obtain a count value; the score difference value is the difference obtained by subtracting the score value from 60;

[0172] A variable accumulation module, used to accumulate a preset variable with a specified step length; the variable is initially 0;

[0173] A variable judgment module is used to judge whether the variable is equal to the count value; if so, the target duration completion module is executed; if not, the unit duration waiting module is executed;

[0174] The target duration completion module is used to complete the waiting time specified by the target duration;

[0175] The unit time waiting module is used to wait for a unit time and return to execute the variable accumulation module; the unit time is the product of the score and a preset reference time.

[0176] In one embodiment of the present invention, the power outage event list download module 302 includes:

[0177] Configuration file reading module, used to read address, directory and user information from the locally preset configuration file;

[0178] A marketing system access module, used to load the address to access the marketing system;

[0179] A marketing system login module, used to log in to the marketing system using the user information;

[0180] A power outage event list query module, for querying a list of power outage events within a specified time range in the directory of the marketing system if the login is completed;

[0181] A file determination module, used to determine whether the file in the directory exists locally; if so, the file deletion module is executed; if not, the power outage event list download module is executed;

[0182] A file deletion module, used to delete the file, wait for a preset stay time, and return to execute the file judgment module;

[0183] A power outage event list downloading module is used to download the power outage event list from the directory to the local computer.

[0184] In one embodiment of the present invention, the power outage event list download module 302 further includes:

[0185] A row number reading module, used for reading the row number in the power outage event list;

[0186] A power outage event list invalidity determination module, configured to determine that the power outage event list is invalid if the number of rows is less than 1, and return to execute the power outage event list query module;

[0187] The power outage event list validity determination module is used to determine that the power outage event list is valid if the number of rows is greater than 1.

[0188] In one embodiment of the present invention, the power outage parameters include the power outage ticket number, the number of power outage customers, the number of notified customers, the power outage status, and the power outage category; the power outage monitoring object includes the power outage notification reissue object;

[0189] The power outage monitoring object screening module 304 includes:

[0190] A to-be-checked object screening module, used to screen out rows in the power outage event list where the number of power outage customers is greater than 1 as to-be-checked objects;

[0191] A power outage notification reissue object screening module is used to screen out the objects to be inspected that meet the first condition as the objects for power outage notification reissue; the first condition includes that the number of notified customers is 0 or empty, the power outage status is power outage in progress or pending, and the power outage type is not a planned or adjusted power outage;

[0192] A power outage notice reissuing module, configured to reissue the power outage notice in the marketing system according to the power outage order number of the object to be inspected that meets the first condition if the number of objects to be reissued the power outage notice is greater than 0;

[0193] The other power outage monitoring object screening module is used to screen out other power outage monitoring objects from the objects to be inspected according to the power outage parameters if the number of objects to be reissued with the power outage notification is equal to 0.

[0194] In one embodiment of the present invention, the power outage parameters also include the planned power outage time, the expected power restoration time, the delayed power restoration time, the actual start time of the power outage, and the number of important customers; the power outage monitoring objects also include objects that are expected to be restored soon, objects that have not been restored after the timeout, objects with long-term power outages, objects with large-scale power outages, important customers, and key customers;

[0195] The other power outage monitoring object screening modules include:

[0196] A maximum power restoration time calculation module is used to take the maximum value among the planned power outage time, the estimated power restoration time and the delayed power restoration time in the object to be inspected as the maximum power restoration time;

[0197] A near-expected power restoration object screening module is used to screen out the objects to be inspected that meet the second condition as near-expected power restoration objects; the second condition includes that the difference between the current time and the maximum power restoration time is greater than 0 and less than the first time threshold, the number of power outage customers is not 0, the power outage status is power outage in progress or pending power outage, and the power outage category is not a planned or adjusted power outage;

[0198] A timeout object screening module is used to screen out the objects to be inspected that meet the third condition as timeout objects; the third condition includes that the difference between the maximum power restoration time and the current time is greater than 0, the number of power outage customers is not 0, the power outage status is power outage in progress or waiting for power outage, and the power outage type is not a planned or adjusted power outage;

[0199] A long-term fault power outage object screening module is used to screen out the objects to be inspected that meet the fourth condition as long-term fault power outage objects; the fourth condition includes that the difference between the actual start time of the power outage and the current time is greater than or equal to the second time threshold, the power outage category is fault, the number of power outage customers is greater than 0, and the power outage status is power outage in progress or to be powered off;

[0200] A large-scale fault power outage object screening module is used to screen out the objects to be inspected that meet the fifth condition as large-scale fault power outage objects; the fifth condition includes that the number of power outage customers is greater than or equal to the quantity threshold, the power outage category is fault or loss of voltage, and the power outage status is power outage in progress or to be powered off;

[0201] An important customer object screening module is used to screen out the objects to be inspected that meet the sixth condition as important customer objects; the sixth condition includes that the number of important customers is greater than 0, the power outage status is a power outage or a pending power outage, and the power outage type is not a planned or adjusted power outage;

[0202] The key customer object screening module is used to screen out the objects to be inspected that meet the seventh condition as key customer objects; the seventh condition includes that the number of key customers is greater than 0, the power outage status is power outage in progress or pending power outage, and the power outage category is not a planned or adjusted power outage.

[0203] In one embodiment of the present invention, the power outage parameter includes a power outage unit; the power outage monitoring prompt operation execution module 305 includes:

[0204] A power outage monitoring prompt information generating module, used to generate power outage monitoring prompt information for the power outage monitoring object;

[0205] A power outage monitoring prompt information sending module is used to call the interface provided by the instant messaging tool to send the power outage monitoring prompt information to a preset power outage monitoring group;

[0206] The power outage unit prompting module is used to prompt the power outage unit responsible for the power outage monitoring object in the power outage monitoring group to browse the power outage monitoring prompt information.

[0207] The power outage monitoring device provided in the embodiment of the present invention can execute the power outage monitoring method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the power outage monitoring method.

[0208] Embodiment 3

[0209] See also Figure 4 , shows a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, blade servers, mainframe computers, and other suitable computers. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.

[0210] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0211] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0212] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the power outage monitoring method.

[0213] In some embodiments, the power outage monitoring method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the power outage monitoring method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the power outage monitoring method in any other appropriate manner (e.g., by means of firmware).

[0214] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0215] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0216] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0217] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0218] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0219] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0220] Embodiment 4

[0221] An embodiment of the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the power outage monitoring method provided by any embodiment of the present invention is implemented.

[0222] In the process of implementation, the computer program product can be written in one or more programming languages ​​or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).

[0223] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0224] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A power outage monitoring method, characterized in that: include: Waiting for the time node of monitoring the power outage event; When the time node is reached, a power outage event list is downloaded in a preset marketing system; Reading a plurality of power outage parameters in the power outage event list; Filtering out power outage monitoring objects in the power outage event list according to the power outage parameters; A power outage monitoring prompt operation is performed on the power outage monitoring object in a preset power outage monitoring group.

2. The method according to claim 1, characterized in that The time node of waiting for monitoring the power outage event includes: Calculate the first time difference in seconds and the second time difference in hours between the current time and the preset start time respectively; Determine whether the first time difference is greater than or equal to a first time difference threshold, and whether the second time difference is less than a second time difference threshold; If not, wait for the specified target duration, and return to execute the steps of respectively calculating the first time difference in seconds and the second time difference in hours between the current time and the preset start time; If yes, it is determined that the time node for monitoring the power outage event has arrived.

3. The method according to claim 2, characterized in that The waiting time for the specified target duration includes: Read the value of the current time in minutes as the score; The ratio between the score difference and the score is rounded to an integer to obtain a count value; the score difference is the difference obtained by subtracting the score from 60; Accumulate a specified step length to a preset variable; the variable is initially 0; Determine whether the variable is equal to the count value; if so, complete the waiting for the specified target duration; if not, wait for a unit duration and return to execute the accumulation of the preset variable for a specified step length; the unit duration is the product of the score and the preset reference time.

4. The method according to claim 1, characterized in that The downloading of the power outage event list in the preset marketing system includes: Read the address, directory and user information from the locally preset configuration file; Loading the address to access the marketing system; Log in to the marketing system using the user information; If the login is completed, a list of power outage events within a specified time range is searched in the directory of the marketing system; Determine whether the file in the directory exists locally; If yes, delete the file, wait for a preset dwell time, and return to execute the step of determining whether the file in the directory exists locally; If not, download the power outage event list from the directory to the local computer.

5. The method according to claim 4, characterized in that The downloading of the power outage event list in the preset marketing system also includes: Reading a row number in the power outage event list; If the number of rows is less than 1, it is determined that the power outage event list is invalid, and the process returns to executing the process of searching the directory of the marketing system for a power outage event list within a specified time range; If the number of rows is greater than 1, it is determined that the power outage event list is valid.

6. The method according to any one of claims 1 to 5, characterized in that The power outage parameters include the power outage ticket number, the number of power outage customers, the number of notified customers, the power outage status, and the power outage category; The power outage monitoring object includes a power outage notification reissue object; The step of selecting a power outage monitoring object from the power outage event list according to the power outage parameter includes: Filter out the rows in the power outage event list where the number of power outage customers is greater than 1 as objects to be inspected; Screen out the objects to be inspected that meet the first condition as the objects for reissuing the power outage notice; the first condition includes that the number of notified customers is 0 or empty, the power outage status is in progress or pending, and the power outage type is not a planned or adjusted power outage; If the number of objects to be reissued the power outage notice is greater than 0, reissuing the power outage notice in the marketing system according to the power outage order number of the object to be inspected that meets the first condition; If the number of objects to which the power outage notification is reissued is equal to 0, other power outage monitoring objects are screened out from the objects to be inspected according to the power outage parameters.

7. The method according to claim 6, characterized in that The power outage parameters also include the planned power outage time, the expected power restoration time, the delayed power restoration time, the actual start time of the power outage, and the number of important customers; the power outage monitoring objects also include objects that are expected to be restored soon, objects that have not been restored within the time limit, objects with long-term power outages, objects with large-scale power outages, important customers, and key customers; The step of selecting other power outage monitoring objects from the objects to be inspected according to the power outage parameters includes: In the object to be inspected, taking the maximum value among the planned power outage time, the estimated power restoration time and the delayed power restoration time as the maximum power restoration time; Screen out the objects to be inspected that meet the second condition as the objects expected to be restored to power soon; the second condition includes that the difference between the current time and the maximum restoration time is greater than 0 and less than the first time threshold, the number of power outage customers is not 0, the power outage status is power outage in progress or pending power outage, and the power outage category is not a planned or adjusted power outage; Filter out the objects to be inspected that meet the third condition as objects that have not been restored to power due to timeout; the third condition includes that the difference between the maximum restoration time and the current time is greater than 0, the number of power outage customers is not 0, the power outage status is power outage in progress or pending power outage, and the power outage type is not a planned or adjusted power outage; Screen out the objects to be inspected that meet the fourth condition as long-term fault power outage objects; the fourth condition includes that the difference between the actual start time of the power outage and the current time is greater than or equal to the second time threshold, the power outage category is fault, the number of power outage customers is greater than 0, and the power outage status is power outage in progress or to be powered off; Screen out the objects to be inspected that meet the fifth condition as objects of large-scale power outage; the fifth condition includes that the number of customers with power outage is greater than or equal to the quantity threshold, the power outage category is fault or loss of voltage, and the power outage status is power outage in progress or to be powered off; Screening out the objects to be inspected that meet the sixth condition as important customer objects; the sixth condition includes that the number of important customers is greater than 0, the power outage status is in progress or pending, and the power outage type is not a planned or adjusted power outage; The objects to be inspected that meet the seventh condition are screened out as key customer objects; the seventh condition includes that the number of key customers is greater than 0, the power outage status is in progress or pending, and the power outage type is not a planned or adjusted power outage.

8. The method according to any one of claims 1 to 5 and 7, characterized in that: The power outage parameter includes a power outage unit; the performing a power outage monitoring prompt operation on the power outage monitoring object in a preset power outage monitoring group includes: Generating power outage monitoring prompt information for the power outage monitoring object; Calling the interface provided by the instant messaging tool to send the power outage monitoring prompt information to a preset power outage monitoring group; In the power outage monitoring group, the power outage unit responsible for the power outage monitoring object is prompted to browse the power outage monitoring prompt information.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the power outage monitoring method according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the power outage monitoring method according to any one of claims 1 to 8 is implemented.