环境天气数据上传

建议上传频率

每5分钟进行一次数据上传

Http接口方式上传

- 请求方式:post
- 接口地址:/dw/environment/environments/v2

数据协议

{
    "orgId": 123123123123,
    "systemKey": "XXX-environment",
    "data": [
        {
            "sourceTypeKey": "02",
            "dataTypeKey": "pm10",
            "value": "89",
            "deviceNo": "0099210",
            "deviceName": "扬尘检测02",
            "date": 1530997218000,
            "longitude": 104.2,
            "latitude": 45.6,
            "isOnline": true,
            "isRemoved": false
        }
    ]
}
字段名称 数据类型 是否可以为空 字段描述
orgId long 梦诚系统项目id
systemKey string 数据来源系统编码
sourceTypeKey string 数据来源key 见表1
dataTypeKey string 数据类型 见表2
value string
deviceNo string 设备编号
deviceName string 设备名称
date long 时间
longitude string 经度
latitude string 纬度
isOnline boolean 是否在线
isRemoved boolean 是否删除

表1 安全风险等级枚举值定义

sourceTypeKey
01 网络-实时数据
02 网络-未来天气
03 硬件-实时数据

表2 隐患状态枚举值定义

dataTypeKey
temperature 温度
weather_code 天气情况编码,用于和天气状态图片对应
weather_description 天气情况描述
air_pressure 气压
humidity 相对湿度(%)
precipitation 降水量
wind_direct 风向
wind_power 风力
wind_speed 风速
sunrise_time 日出时间
sunset_time 日落时间
weather_day_code 白天天气情况编码
weather_night_code 夜间天气情况编码
weather_day_description 白天天气描述
weather_night_description 夜间天气描述
max_temperature 最高温度
min_temperature 最低温度
probability_precipitation 降水概率
aqi 空气质量指数,AQI和PM25的关系
main_pollutants 主要污染物
pm10 pm10
pm25 pm25
tsp 总悬浮颗粒物
noise 噪声
air_quality 空气质量
Copyright © 北京梦诚科技有限公司 2020 all right reserved,powered by Gitbook该文件修订时间: 2022-08-25 11:05:18

results matching ""

    No results matching ""