Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/343.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ibm cloud Watson IoT平台上的规则后未触发节点红色操作_Ibm Cloud_Node Red_Watson_Watson Iot - Fatal编程技术网

Ibm cloud Watson IoT平台上的规则后未触发节点红色操作

Ibm cloud Watson IoT平台上的规则后未触发节点红色操作,ibm-cloud,node-red,watson,watson-iot,Ibm Cloud,Node Red,Watson,Watson Iot,我目前正在使用Watson IoT平台从我的raspberrypi收集数据 我创建了一个基于阈值的规则,如果该规则被激活,则有三个操作: 第一个是节点红色操作,调用Bluemix上的节点红色节点 第二个是另一个节点RED操作,调用我的raspberry pi上的节点RED节点 第三个是简单的“发送邮件” 电子邮件始终正确发送时,不会触发前两个操作 BlueMix上我的节点红色节点位于以下url处:http端点为/command,因此我配置的url为 这种配置有什么问题 谢谢 Diegohtt

我目前正在使用Watson IoT平台从我的raspberrypi收集数据

我创建了一个基于阈值的规则,如果该规则被激活,则有三个操作:

  • 第一个是节点红色操作,调用Bluemix上的节点红色节点
  • 第二个是另一个节点RED操作,调用我的raspberry pi上的节点RED节点
  • 第三个是简单的“发送邮件”
电子邮件始终正确发送时,不会触发前两个操作

BlueMix上我的节点红色节点位于以下url处:http端点为/command,因此我配置的url为

这种配置有什么问题

谢谢


Diego

http in节点必须使用POST作为方法。下面是一个示例流,它在被触发时写入调试节点

[{"id":"7ad184c7.c898cc","type":"debug","z":"ed48ac5f.aa6c68","name":"","active":true,"console":"false","complete":"false","x":443.9000244140625,"y":289.79998779296875,"wires":[]},{"id":"f269a1cd.d46d5","type":"function","z":"ed48ac5f.aa6c68","name":"","func":"msg.payload= \"Hello from my IoT Platform Rule\";\nreturn msg;\n","outputs":1,"noerr":0,"x":396.90000915527344,"y":201.59999084472656,"wires":[["aa867d6d.2b6518","7ad184c7.c898cc"]]},{"id":"e9a7c24c.2c8128","type":"http in","z":"ed48ac5f.aa6c68","name":"/inventory","url":"/inventory","method":"post","swaggerDoc":"","x":203.90000915527344,"y":206.99998474121094,"wires":[["f269a1cd.d46d5"]]},{"id":"aa867d6d.2b6518","type":"http response","z":"ed48ac5f.aa6c68","name":"","x":578.9000091552734,"y":207.40000915527344,"wires":[]}]

http in节点必须使用POST作为方法。下面是一个示例流,它在被触发时写入调试节点

[{"id":"7ad184c7.c898cc","type":"debug","z":"ed48ac5f.aa6c68","name":"","active":true,"console":"false","complete":"false","x":443.9000244140625,"y":289.79998779296875,"wires":[]},{"id":"f269a1cd.d46d5","type":"function","z":"ed48ac5f.aa6c68","name":"","func":"msg.payload= \"Hello from my IoT Platform Rule\";\nreturn msg;\n","outputs":1,"noerr":0,"x":396.90000915527344,"y":201.59999084472656,"wires":[["aa867d6d.2b6518","7ad184c7.c898cc"]]},{"id":"e9a7c24c.2c8128","type":"http in","z":"ed48ac5f.aa6c68","name":"/inventory","url":"/inventory","method":"post","swaggerDoc":"","x":203.90000915527344,"y":206.99998474121094,"wires":[["f269a1cd.d46d5"]]},{"id":"aa867d6d.2b6518","type":"http response","z":"ed48ac5f.aa6c68","name":"","x":578.9000091552734,"y":207.40000915527344,"wires":[]}]

您的http端点是POST吗?一定是这样。我会运行
bxcf logs-appname
并触发事件,然后查看日志显示的内容。您好@amadain,您说得对,我使用的是GET作为端点。非常感谢!您的http端点是POST吗?一定是这样。我会运行
bxcf logs-appname
并触发事件,然后查看日志显示的内容。您好@amadain,您说得对,我使用的是GET作为端点。非常感谢!嗨,Amadain,我再也不能从Watson IoT调用Web服务到我的Raspberry Pi上的节点http in节点。沃森物联网平台有什么变化吗?如何调试操作?我的操作仍然有效。可能我会重新启动Pi,如果这对记录票据没有帮助的话。或者一篇新帖子。嗨,阿玛丹,我再也不能从Watson IoT调用Web服务到我的Raspberry Pi上的节点http in节点。沃森物联网平台有什么变化吗?如何调试操作?我的操作仍然有效。可能我会重新启动Pi,如果这对记录票据没有帮助的话。或者一个新职位。