Browse Source

add 承德金隅水泥有限责任公司四方洞子沟熔剂用石灰石矿

dev
lucas 11 hours ago
parent
commit
e7b9d5182f
  1. 34
      configFiles/config_承德金隅水泥_河北矿山_四方洞子.json
  2. 0
      configFiles/弃用备份/config_安心云告警双控.yaml
  3. 34
      configFiles/弃用备份/config_承德金隅水泥_河北矿山_东山.json
  4. 16
      consumers/consumerCDJYSN.go

34
configFiles/config_承德金隅水泥_河北矿山_四方洞子.json

@ -0,0 +1,34 @@
{
"consumer": "consumerCDJYSN",
"ioConfig": {
"in": {
"http": {
"url": "https://esproxy.anxinyun.cn/anxincloud_themes/_search"
},
"cronStr": "51 0/1 * * *"
},
"out": {
"file": {
"directory": "D:\\工作记录\\每月任务需求\\202402需求\\河北矿山数据本地数据工具开发\\saveTxts2",
"fileNameExtension": ".txt"
}
}
},
"info": {
"structureId": "3232",
"structUploadCode": "130804030001",
"fileNamePrefix": "130804030001_LTCDSS",
"fileContentHeader": "130804030001;承德金隅水泥有限责任公司四方洞子沟熔剂用石灰石矿;"
},
"sensorMap": {
"GnssSensorMap": {
"WY02-01-P04": "100011",
"WY03-01-P05": "100012",
"WY04-01-P06": "100021",
"WY05-03-P07": "100022"
},
"RainSensorMap": {
"YL02": "200001"
}
}
}

0
configFiles/config_安心云告警双控.yaml → configFiles/弃用备份/config_安心云告警双控.yaml

34
configFiles/弃用备份/config_承德金隅水泥_河北矿山_东山.json

@ -0,0 +1,34 @@
{
"consumer": "consumerCDJYSN",
"ioConfig": {
"in": {
"http": {
"url": "https://esproxy.anxinyun.cn/anxincloud_themes/_search"
},
"cronStr": "32 0/1 * * *"
},
"out": {
"file": {
"directory": "G:\\工作记录\\每月任务需求\\202402需求\\河北矿山数据本地数据工具开发\\saveTxts2",
"fileNameExtension": ".txt"
}
}
},
"info": {
"structureId": "3232",
"structUploadCode": "130804030001",
"fileNamePrefix": "130804030001_LTCDSS",
"fileContentHeader": "130804030001;承德金隅水泥有限责任公司四方洞子沟熔剂用石灰石矿;"
},
"sensorMap": {
"GnssSensorMap": {
"WY01-01-P01": "100011",
"WY01-02-P02": "100012",
"WY01-03-P03": "100021",
"WY01-03-P08": "100022"
},
"RainSensorMap": {
"YL01": "200001"
}
}
}

16
consumers/consumerCDJYSN.go

@ -204,6 +204,22 @@ func (the *consumerCDJYSN) saveConfig() {
"^13028403000102100062;TS212_G6;01;130284030001;0101;02;;mm;;;;;;桃山;118.351561;40.117217;212;2020-08-01;司南导航;15;1;0;2024-09-25 10:00:00" + "^13028403000102100062;TS212_G6;01;130284030001;0101;02;;mm;;;;;;桃山;118.351561;40.117217;212;2020-08-01;司南导航;15;1;0;2024-09-25 10:00:00" +
"^]]]" "^]]]"
contentConfig = contentConfigHead + contentConfigBody contentConfig = contentConfigHead + contentConfigBody
case "3232": //承德金隅水泥有限公司边坡在线监测—东山
contentConfigHead := the.ConfigInfo.Info["fileContentHeader"] + //非煤矿山编码 130804030001,边坡名称 四方洞子沟
"CDJYBPJCXT;" + //系统型号
"承德金隅水泥有限责任公司边坡监测;" + //系统名称
"承德金隅水泥有限公司;" + //生产厂家名称
"2030-12-30;" + //安标有效期
"2022-12-01 10:00:00" //数据上传时间
contentConfigBody := "" +
//测点编码;测点名称;系统编码;露天矿山编码;边坡编号;传感器类型;测点数值类型;测点数值单位;埋深;一级阈值;二级阈值;三级阈值;四级阈值;测点安装位置;位置X;位置Y;位置Z;安装日期;生产厂家;量程;在用状态;故障状态;数据时间
"^13080403000103200001;YL02;01;130804030001;0101;03;;mm;;250;100;50;25;四方洞;117.67197649;40.54578003;532;2022-12-01;武汉新普惠;4;1;0;2022-12-01 10:00:00" +
"^13080403000102100011;WY02-01-P04;01;130804030001;0101;02;;mm;;;;;;四方洞;117.66758607;40.54634132;532;2022-12-01;司南导航;15;1;0;2022-12-01 10:00:00" +
"^13080403000102100012;WY03-01-P05;01;130804030001;0101;02;;mm;;;;;;四方洞;117.67151104;40.54658722;532;2019-10-01;司南导航;15;1;0;2022-12-01 10:00:00" +
"^13080403000102100021;WY04-01-P06;01;130804030001;0101;02;;mm;;;;;;四方洞;117.67730148;40.54652232;540;2019-10-01;司南导航;15;1;0;2022-12-01 10:00:00" +
"^13080403000102100022;WY05-03-P07;01;130804030001;0101;02;;mm;;;;;;四方洞;117.67646438;40.54578003;560;2019-10-01;司南导航;15;1;0;2022-12-01 10:00:00" +
"^]]]"
contentConfig = contentConfigHead + contentConfigBody
} }
fileName := fmt.Sprintf("%s_LTCDJC_%s.txt", the.ConfigInfo.Info["structUploadCode"], time.Now().Format("20060102150405")) fileName := fmt.Sprintf("%s_LTCDJC_%s.txt", the.ConfigInfo.Info["structUploadCode"], time.Now().Format("20060102150405"))
filePath := path.Join(the.ConfigInfo.IoConfig.Out.File.Directory, fileName) filePath := path.Join(the.ConfigInfo.IoConfig.Out.File.Directory, fileName)

Loading…
Cancel
Save