read map from config file

This commit is contained in:
quantulr
2024-01-30 17:25:58 +08:00
parent 4e62811f16
commit fca55c5cb8
12 changed files with 46 additions and 114 deletions

View File

@ -1,15 +0,0 @@
device_map = {
"192.168.1.12": "4GB-供油站",
"192.168.1.13": "T2变电所",
"192.168.1.14": "二厂平台~西",
"192.168.1.15": "二厂平台~中o1",
"192.168.1.16": "T1变电所",
"192.168.1.17": "二厂平台~东",
"192.168.1.18": "二厂平台~中o2",
"192.168.1.19": "T3变电所",
"192.168.1.20": "T11变电所",
"192.168.1.21": "4GA-供油站",
"192.168.1.22": "T9-变压器",
"192.168.1.23": "T6-变压器",
"192.168.1.24": "4DB-供油站",
}

View File

@ -1,4 +1,4 @@
mapping = {
event_map = {
131329: '视频丢失',
131330: '视频遮挡',
131331: '移动侦测',

View File

@ -1,17 +0,0 @@
user_map = {
"192.168.1.12": [
],
"192.168.1.13": [],
"192.168.1.14": [],
"192.168.1.15": [],
"192.168.1.16": [],
"192.168.1.17": [],
"192.168.1.18": [],
"192.168.1.19": [],
"192.168.1.20": [],
"192.168.1.21": [],
"192.168.1.22": [],
"192.168.1.23": [],
"192.168.1.24": [],
}