Пример проекта NodeRED на Dashboard (линк генерируется по url проекта + "/ui", например, http://bmstu.eu-gb.mybluemix.net/ui)
[{"id":"91e0ac73.63a57","type":"ibmiot in","z":"deb0d57.1c46528","authentication":"quickstart","apiKey":"ec096bd5.03d408","inputType":"evt","deviceId":"28916afb8584","applicationId":"","deviceType":"+","eventType":"+","commandType":"","format":"json","name":"raspi","service":"quickstart","allDevices":"","allApplications":"","allDeviceTypes":true,"allEvents":true,"allCommands":"","allFormats":"","qos":"0","x":182,"y":1414,"wires":[["c1ac10be.aa96e8"]]},{"id":"bec87b0d.b8d348","type":"ui_chart","z":"deb0d57.1c46528","name":"","group":"586e8c54.1287ac","order":0,"width":0,"height":0,"label":"chart","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":"5","removeOlderPoints":"","removeOlderUnit":"60","cutout":"","useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":true,"x":537,"y":1415,"wires":[[],[]]},{"id":"c1ac10be.aa96e8","type":"function","z":"deb0d57.1c46528","name":"transform","func":"return {payload:msg.payload.d.temp};","outputs":1,"noerr":0,"x":352,"y":1415,"wires":[["bec87b0d.b8d348","cf16d123.c73cf8"]]},{"id":"cf16d123.c73cf8","type":"debug","z":"deb0d57.1c46528","name":"","active":true,"console":"false","complete":"false","x":554.5,"y":1474,"wires":[]},{"id":"ec096bd5.03d408","type":"ibmiot","z":"deb0d57.1c46528","name":"raspi"},{"id":"586e8c54.1287ac","type":"ui_group","z":"deb0d57.1c46528","name":"Default","tab":"13e24c9f.e689ab","disp":true,"width":"6"},{"id":"13e24c9f.e689ab","type":"ui_tab","z":"deb0d57.1c46528","name":"Home","icon":"dashboard"}]
Последнее изменение: Суббота, 28 октября 2017, 22:22