Browse Source

update 更新农村公路 配置 和 数据匹配id

dev
lucas 3 weeks ago
parent
commit
29c7d61320
  1. 3
      adaptors/振动to江苏省农村公路桥梁监测.go
  2. 28
      configFiles/config_江苏农村公路桥梁.json

3
adaptors/振动to江苏省农村公路桥梁监测.go

@ -39,7 +39,8 @@ func (the Adaptor_ZD_JSNCGLQL) ZDtoJSNCGLQL(zd models.ZDnew) (result []NeedPush)
sensorDataList := zd.AccValues sensorDataList := zd.AccValues
//获取对方系统 id //获取对方系统 id
sensorCode := the.getSensorCode(strconv.Itoa(zd.SensorId)) sourceId := fmt.Sprintf("%d_%d", zd.SensorId, zd.Channel)
sensorCode := the.getSensorCode(sourceId)
if sensorCode == "" { if sensorCode == "" {
log.Printf("振动 设备[%s] 无匹配的 江苏农村公路桥梁监测系统 测点id,请检查配置文件", zd.Module) log.Printf("振动 设备[%s] 无匹配的 江苏农村公路桥梁监测系统 测点id,请检查配置文件", zd.Module)
return return

28
configFiles/config_江苏农村公路桥梁.json

@ -3,8 +3,8 @@
"ioConfig": { "ioConfig": {
"in": { "in": {
"mqtt": { "mqtt": {
"host": "10.8.30.160", "host": "127.0.0.1",
"port": 30883, "port": 1883,
"userName": "goInOut", "userName": "goInOut",
"password": "", "password": "",
"clientId": "goInOut_JSNCGLQL", "clientId": "goInOut_JSNCGLQL",
@ -15,8 +15,8 @@
}, },
"out": { "out": {
"mqtt": { "mqtt": {
"host": "10.8.30.160", "host": "127.0.0.1",
"port": 30883, "port": 1883,
"userName": "upload", "userName": "upload",
"password": "", "password": "",
"clientId": "goInOut", "clientId": "goInOut",
@ -27,12 +27,26 @@
} }
}, },
"info": { "info": {
"bridgeCode": "G2320281L0012" "bridgeCode": "G2513LR0470320324"
}, },
"sensorInfo": { "sensorInfo": {
"ZDsensorMap": { "ZDsensorMap": {
"35968": "LHTDQ-VIB-C08-001-01234", "11870_1": "SGO-RSG-G03-001-01",
"m1c2": "LHTDQ-VIB-L03-001-01" "11870_2": "SGO-RSG-G03-001-02",
"11870_3": "SGO-RSG-G03-001-03",
"11870_4": "SGO-RSG-G03-001-04",
"11870_5": "SGO-RSG-G03-001-05",
"11870_6": "SGO-RSG-G03-001-06",
"11870_7": "SGO-RSG-G03-001-07",
"11870_8": "SGO-RSG-G03-001-08",
"35968_1": "SGO-RSG-G03-001-09",
"35968_2": "SGO-RSG-G03-001-10",
"35968_3": "SGO-RSG-G03-001-11",
"35968_4": "SGO-RSG-G03-001-12",
"35968_5": "SGO-RSG-G03-001-13",
"35968_6": "SGO-RSG-G03-001-14",
"35968_7": "SGO-RSG-G03-001-15",
"35968_8": "SGO-RSG-G03-001-16"
} }
} }
} }
Loading…
Cancel
Save