通过使用UbiHTTP,可以实现将预警消息推送至企业微信群内。
UbiHTTP交互服务相关连接:
https://www.ubibot.cn/platform-api/2960/http-interaction/
操作教程:
一、在企业微信群中选择“添加群机器人”,点击“添加机器人”。


二、添加机器人,设置机器人名称并复制生成的webhook地址,之后我们会将预警消息发送至该地址。



三、新建一个UbiHTTP,将刚才复制的webhook粘贴到网址栏中,方法选择“post”,内容类型为“application/json”,在body里按照以下示例填写。 其中text部分为消息。
举例:
{
"msgtype": "text",
"text": {
"content": "预警提醒-编号为%%channel_id%%的设备(%%name%%)已超出警戒范围。
传感器:%%trigger_field%%, 报警瞬间值:%%trigger%%。"
}
}
四、选择设备,在报警方式中选择设置好的UbiHTTP。

五、预警触发时,预警消息将会推送至企业微信群内。
