Post on 11-Apr-2017
IoT, APIs und Microservices – alles unter Node-REDLars Gregori / SAP Hybris
AgendaÜberblick Node-RED Flows anlegen Node-Module installieren Build your own Node
Überblick Node-RED
Node-RED
visuelles Tool
graphische Oberfläche: Browser
serverseitig Node.js
Internet of Things (IoT) Prototypen
Node-RED
visuelles Tool
graphische Oberfläche: Browser
serverseitig Node.js
Internet of Things (IoT) Prototypen
Open Source: Apache 2.0 Lizenz
IBM Emerging Technologies
Installation
Node.js + Package-Manager npm
⇨ Installationsanleitung
http://localhost:1880
Installation
Node.js + Package-Manager npm
⇨ Installationsanleitung
http://localhost:1880
Raspberry Pi
Node-RED Oberfläche
3 Hauptbereiche:
• Node-Panel
• Sheets-Panel
• Info- und Debug-Panel
Flows anlegen
msg Objekt
JSON Daten mit payload-Parameter
Nodes
Input-Nodes
Output-Node
Processing-Nodes
Daten verarbeiten, verschiedene Dinge kontrollieren und steuern
Flow Setup
Node-Module installieren
Arduino Node
Arduino Node
Arduino Node
Arduino Twitter Beispiel
Arduino
function-Node
{ topic: ‘tweets/$TWITTER_USER_ID', payload: '$TEXT', lang: 'en', tweet: { created_at: 'Mon Mar 16 16:16:016 +0000 2017', id: 1234, id_str: '1234', text: '$TEXT', display_text_range: [ 0, 90 ], source: '$SOURCE', user: { id: 1234, id_str: '1234', name: '$TWITTER_NAME', screen_name: '$NAME', ...
Arduino Twitter
YaaS
<Screenshot>
Twitter YaaS Beispiel
Twitter Shopping
Build your own Node
Code
AgendaÜberblick Node-RED Flows anlegen Node-Module installieren Build your own Node
“Werbung”
Entwicklermagazin März/April 2.2017
Thank you!@choas
Links
Node-RED: http://nodered.org/
Installation: http://nodered.org/docs/getting-started/installation
Raspberry Pi: http://nodered.org/docs/hardware/raspberrypi
Node-RED Library: https://flows.nodered.org/
Node-RED Arduino Library: https://flows.nodered.org/node/node-red-node-arduino
Node-RED YaaS Library: https://flows.nodered.org/node/node-red-contrib-yaas
Blog posts:
• How to use YaaS with Node-RED: https://labs.hybris.com/2016/08/08/use-yaas-with-node-red/
• Triggering and checkout with Node-RED and YaaS: http://labs.hybris.com/2016/08/09/triggering-checkout-node-red-yaas/
• Order created: http://labs.hybris.com/2016/08/11/order-created/
• 14% OFF – Coupons with Node-RED: https://labs.hybris.com/2016/08/12/14-off-coupons-node-red/