机器云


3、设置时间段

<p><strong>请求URL:</strong> </p> <ul> <li><code>http://120.77.72.190:8082/api/MachineCtl/setTimes</code></li> </ul> <p><strong>参数:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明说明说明说明说明说明说明说明说明说明说明说明说明说明端口9018</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">macno</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>设备号</td> </tr> <tr> <td style="text-align: left;">times</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>热控系统开关时间段</td> </tr> <tr> <td style="text-align: left;">sign</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>签名 md5(&quot;dlc&quot;)</td> </tr> </tbody> </table> <pre><code>时间段参数说明: 1、格式为json数据。 2、数据为一周每天的时间段,星期天为第一个天,每天4个时间段 3、数据格式如下: "times": [ [// 星期天时间段 { // 第一段 "status": 1, // 是否启用:0 不启用,非0 启用 "stime": "08:00:00", //开始时间 "etime": "09:00:00" // 结束时间 }, { "status": 1, "stime": "10:15:00", "etime": "10:30:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" } ], [// 星期一时间段 { "status": 0, "stime": "00:00:00", "etime": "00:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" } ], [ { "status": 0, "stime": "00:00:00", "etime": "00:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" } ], [ { "status": 0, "stime": "00:00:00", "etime": "00:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" } ], [ { "status": 1, "stime": "18:00:00", "etime": "19:00:00" }, { "status": 1, "stime": "11:00:00", "etime": "11:25:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" } ], [ { "status": 0, "stime": "00:00:00", "etime": "00:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" } ], [ { "status": 1, "stime": "16:30:00", "etime": "17:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" } ] ] </code></pre> <p><strong>返回示例</strong></p> <pre><code>{ "code": 1, "data": { "macno": "DE42462505701457", "times": [ [ { "status": 1, "stime": "08:00:00", "etime": "09:00:00" }, { "status": 1, "stime": "10:15:00", "etime": "10:30:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" } ], [ { "status": 0, "stime": "00:00:00", "etime": "00:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" } ], [ { "status": 0, "stime": "00:00:00", "etime": "00:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" } ], [ { "status": 0, "stime": "00:00:00", "etime": "00:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" } ], [ { "status": 1, "stime": "18:00:00", "etime": "19:00:00" }, { "status": 1, "stime": "11:00:00", "etime": "11:25:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" } ], [ { "status": 0, "stime": "00:00:00", "etime": "00:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" } ], [ { "status": 1, "stime": "16:30:00", "etime": "17:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" }, { "status": 0, "stime": "00:00:00", "etime": "00:00:00" } ] ] }, "msg": "发送成功" } </code></pre>

页面列表

ITEM_HTML