Difference between revisions of "土壤温湿度接口"
Ringsaturn (talk | contribs) (Created page with "本接口施工中 ==授权与认证 == 请先至彩云开放平台[https://dashboard.caiyunapp.com/user/sign_up/ 注册],注册后可以获得 token 。 使用本接口...") |
Ringsaturn (talk | contribs) (→返回结构) |
||
Line 16: | Line 16: | ||
== 返回结构 == | == 返回结构 == | ||
<syntaxhighlight lang="json" line="1"> | <syntaxhighlight lang="json" line="1"> | ||
− | + | { | |
+ | "status":"ok", | ||
+ | "result":[ | ||
+ | { | ||
+ | "depth":"0-0.1", | ||
+ | "tsoil":-4.649993896484375, | ||
+ | "soliw":0.287109375 | ||
+ | }, | ||
+ | { | ||
+ | "depth":"0.1-0.4", | ||
+ | "tsoil":-2.649993896484375, | ||
+ | "soliw":0.256103515625 | ||
+ | } | ||
+ | ] | ||
+ | } | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 06:02, 23 December 2021
本接口施工中
授权与认证
请先至彩云开放平台注册,注册后可以获得 token 。
使用本接口,开发者token需要额外开通权限,请联系商务:api@caiyunapp.com
API 地址
http://api.caiyunapp.com/v1/soil?token=TOKEN&lng=116&lat=39
参数说明
目前仅支持中国区域实况数据,逐小时更新
返回结构
1 {
2 "status":"ok",
3 "result":[
4 {
5 "depth":"0-0.1",
6 "tsoil":-4.649993896484375,
7 "soliw":0.287109375
8 },
9 {
10 "depth":"0.1-0.4",
11 "tsoil":-2.649993896484375,
12 "soliw":0.256103515625
13 }
14 ]
15 }