简体   繁体   English

如何在IBM-watson-IoT仪表板中查看网关连接的单个设备数据?

[英]How can I see the gateway connected individual device data in the IBM-watson-IoT dashboard?

How can I see the gateway connected individual device data in the IBM-watson-IoT dashboard ? 如何在IBM-watson-IoT仪表板中查看网关连接的单个设备数据? Is there any specific way see that? 有什么具体办法可以看到吗? Right now I am sending data as: 现在,我将数据发送为:

//publishing device events with deviceType 'Raspi' and deviceId 'pi01' using the default quality of service
gatewayClient.publishDeviceEvent("Raspi","pi01", "status","json",'{"d" : { "cpu" : 60, "mem" : 50 }}');
console.log('event published');

But I am not able to see this data stream anywhere in the IBM-watson-IoT dashboard. 但是我无法在IBM-watson-IoT仪表板的任何地方看到此数据流。 It's showing the event as received but no data stream of device "pi01". 它显示事件已接收,但没有设备“ pi01”的数据流。

When data is sent as: 当数据发送为:

gatewayClient.publishGatewayEvent("status","json",'{"d" : { "cpu" : 40, "mem" : 50 }}');

this means as gateway. 这意味着作为网关。 It shows "received data" when I am creating the card. 创建卡时,它显示“收到的数据”。 But I dont want this, I have a different device connected with the gateway, so I want the new device data in a different data stream. 但是我不希望这样,我有与网关连接的其他设备,因此我希望新设备中的数据位于不同的数据流中。

Please let me know if I am doing it right, and if yes then where can I see all that data. 请让我知道我是否做对了,如果是,那么我在哪里可以看到所有这些数据。

The only way to do this in the Dashboard is in a Card. 在仪表板上执行此操作的唯一方法是在卡片中。 No other way in the Dashboard (though there are other ways outside of the dashboard). 仪表板中没有其他方法(尽管仪表板之外还有其他方法)。 Your code looks fine. 您的代码看起来不错。 If you select your device in a Device centric card you can see the stream of values for just that gw-device in the properties or make graphs etc if they would help. 如果您在以设备为中心的卡中选择设备,则可以在属性中看到该gw-device的值流,或者制作图表等(如果有帮助的话)。 It is its own stream of data; 它是自己的数据流; should not be mixed up with any other device even if they share the same gateway. 即使它们共享同一网关,也不应与任何其他设备混在一起。 Here is one gateway sending data for 2 devices using: 这是一个网关使用以下命令发送2个设备的数据:

gatewayClient.publishDeviceEvent('SenseHat','sen-pi-xxx-gw' ,'event', 'json', '{"sugar":5, "salt":2}', 1);
gatewayClient.publishDeviceEvent('SenseHat','xx-gw-device' ,'event', 'json', '{"sugar":9, "salt":12}', 1);

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在NodeRed中,如何将值与Watson IoT Platform发送的JSON数据分开 - In NodeRed, how can I separate values from JSON data sent by the Watson IoT Platform 在IBM Watson IoT NodeJS客户端上捕获错误 - Catch error on IBM Watson IoT NodeJS client 如何在Watson Conversation中保存数据? - How can I save a data in Watson Conversation? IBM Watson Assistant:如何处理来自对话框的上下文变量? - IBM Watson Assistant: How can i handle context variable coming from the dialog? 我如何从 twilios AddOn 的“IBM Watson”中的回调响应中获取 call-sid - How can i get the call-sid from response of callback in twilios AddOn's "IBM Watson" 如何在ASP.net应用程序中查看IBM Watson Assistant对话日志? - How can I view IBM Watson Assistant conversation logs in my ASP.net application? 我如何对IBM Watson Assistance用户界面充满信心? - How can I get intent confidence in the IBM Watson Assistance user interface? 我如何在Node.js中保留每个连接的客户端特定的变量值 - How can I keep variable values specific for each individual connected clients in Nodejs 如何将客户令牌传递到 IBM Watson Assistant - How to passg customer token into IBM Watson Assistant 如何在IBM Watson Conversation中调用外部API - How to call external API in IBM Watson Conversation
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM