基础 URL: 无线红外数据 https://yusu.tech:9528/API/getYsData 环境温度数据 https://yusu.tech:9528/API/getYsEnvData
API调用:无线红外数据 https://yusu.tech:9528/API/getYsData
{
"msg": 操作成功,
"code": 200,
"data": {
"maxTemp": 31.1
"minTemp": 19.4
"avgTemp": 20.1
"imgMap": { "红外": "data:image/jpeg;base64,......." }
}
}
· msg: 获取请求提示信息,通常为操作成功
· code: 操作状态码(200:成功,500 失败)
· data 返回请求主体数据
· maxTemp 当前测温区域最高温度
· minTemp 当前测温区域最低温度
· avgTemp 当前测温区域平均温度
· imgMap 设备红外截图列表,BASE64位编码
环境温度数据 https://yusu.tech:9528/API/getYsEnvDataJSON格式 ( JSON format API response example )
{
"msg": 操作成功,
"code": 200,
"data": {
"id": 1
"weather": Clouds
"temp": 23.52
"humidity": 58.00
"visibility": 10000
"windSpeed": 1.51
"windDeg": 279
"clouds": 100
"city": 宜昌
"selectCity": Xiaoxita
"createTime": 2025-01-01 08:00:00
"weatherTime": 2025-01-01 08:00:00
}
}
· msg: 获取请求提示信息,通常为操作成功
· code: 操作状态码(200:成功,500 失败)
· data 返回请求主体数据
· id: 数据编号
· weather: 当前天气状况
· temp: 当前环境温度
· humidity: 湿度(%)
· visibility: 能见度(m)
· windSpeed: 风速
· windDeg: 风向
· clouds: 云层覆盖率(%)
· city: 查询城市
· selectCity: 查询具体区域
· createTime: 数据请求时间
· weatherTime: 天气数据生成时间