数据传输-客户端HTTP推送协议

客户端数据推送协议说明

传输地址

监测数据传输地址:http://www.environ.online/receive.action   (提交方式:POST 传输频率:60秒一次)

数据示例

scode=20181116104556&dtime=1543223760&fact01=2.906&fact02=5.184&fact03=0.96&fact04=0.859&fact05=1.32&fact06=4.627&fact07=7.151&fact08=6.254&fact09=0.267&fact10=6.127&fact11=7.8&fact12=0.146&fact13=1.803&fact14=8.169&fact15=6.644&fact16=9.013

数据内容说明

scode		环境监测站点唯一识别码(要求编码系统唯一,最长不能超过50位)
dtime		数据时间(Unix时间戳格式)
fact01		第一个监测因子数据
fact02		第二个监测因子数据
fact03		第三个监测因子数据
……
fact09		第九个监测因子数据
fact10		第十个监测因子数据
……		(建议不超过20个)

客户端站点信息推送协议说明

传输地址

监测因子传输地址:http://www.environ.online/updateCreateStation.action.action		(提交方式:POST 配置时仅需传输一次)

数据示例

{"factors":[{"addcou":false,"addmete":false,"chartColor":"","code":"w01019","comname":"","courate":1,"cover":false,"dataChl":0,"dayRate":1,"dec":1,"devar":"","did":0,"dtype":"Rtd","endPoint":"","fid":0,"field":"Fact01","flaed":"Fact01v","flagChl":0,"formula":false,"hlevel":20,"hourRate":1,"initial":0,"initmod":0,"initmul":1,"length":5,"limit":300,"llevel":4,"lower":0.001,"mark":"","meterate":1,"minRate":1,"modbusId":"","modulus":0,"multiple":1,"name":"CODmn","parent":0,"range":2000,"showimg":false,"sid":0,"startPoint":"","title":"","unified":false,"unit":"mg/L","verify":false},{"addcou":false,"addmete":false,"chartColor":"","code":"w21003","comname":"COM4","courate":1,"cover":false,"dataChl":1,"dayRate":1,"dec":2,"devar":"","did":4,"dtype":"Rtd","endPoint":"0002","fid":2,"field":"Fact02","flaed":"Fact02v","flagChl":1,"formula":false,"hlevel":20,"hourRate":1,"initial":0.001,"initmod":0,"initmul":1,"length":5,"limit":300,"llevel":4,"lower":0.001,"mark":"2","meterate":1,"minRate":1,"modbusId":"04","modulus":0,"multiple":1,"name":"NH3","parent":0,"range":300,"showimg":false,"sid":1,"startPoint":"0000","title":"NH3","unified":false,"unit":"mg/L","verify":false}],"name":"szlven","pass":"szlven","pollute":4,"station":"20181116104556","title":"环境监测站点"}

数据内容说明(加'*'表示为必须字段)

name:		*  系统分配的用户名
pass:		*  系统分配的密码
pollute:	*  监测站点污染源类型(1	.废气监测,2.废水监测,3.空气质量,4.地表水监测)
station:	*  环境监测站点唯一识别码(要求编码系统唯一,最长不能超过50位)
title:		*  环境监测站点名称

addcou:		是否追加排放量
addmete:	是否追加总量
chartColor:	报表曲线颜色
code:		*  监测因子唯一识别码(对应国标212协议)
comname:	串口名称
courate:	排放量进率
cover:		是否用最后一个值代表小时数据
dataChl:	数据通道
dayRate:	日数据进率
dec:		*  小时位长度(四舍五入后保留小数位)
devar:		数据计算公式
did:		监测因子编号
dtype:		*  监测因子数据类型(包括:Rtd,ZsRtd,Cou)
endPoint:	数据结束位置(如:0002)
fid:		因子编号
field:		*  数据库存储字段(对应系统存储的数据库字段)
flaed:		监测因子标签存储字段
flagChl:	监测因子标签通道号
formula:	监测因子系数
hlevel:		监测因子高电位值(如:20mA)
hourRate:	小时均值的进率
initial:	监测因子初始值(如:温度-50~50℃,-50 就是初始值)
initmod:	初始倍数
initmul:	初始系数
length:		数据位长度
limit:		*  报警上限
llevel:		监测因子低电位值
lower:		*  报警下限
mark:		备注
meterate:	流量进率
minRate:	十分钟数据进率
modbusId:	MODBUSID
modulus:	监测因子系数
multiple:	监测因子倍数
name:		*  监测因子名称
parent:		监测因子所属因子的编号
range:		监测因子测量设备最大范围
showimg:	监测因子是否显示报备曲线
sid:		监测因子所属的站点编号
startPoint:	监测因子MODBUS起始地址(如:0000)
title:		监测因子标题
unified:	是否统一标签
unit:		* 监测因子单位
verify:		是否启用验证