TampereJS Meetup: Node-RED by Mika Karaila, Valmet

Download TampereJS Meetup: Node-RED by Mika Karaila, Valmet

Post on 13-Feb-2017

400 views

Category:

Software

4 download

Embed Size (px)

TRANSCRIPT

  • Building Internet of Things withNode-RED, http://nodered.org/

    Mika KarailaResearch managerValmet Automation

  • Contents

    Visual flow programming: Node-RED

    IoT nodes: Azure, Watson, AWS

    Use cases

    Summary

    1

    2

    3

    4

  • Visual flow programming

  • Node-REDVisual programming: https://www.youtube.com/watch?v=vYreeoCoQPI

    http://nodered.org/31 August, 2016 Valmet | Mika Karaila4

    https://www.youtube.com/watch?v=vYreeoCoQPI

  • Node-RED principlesAdd node, edit parameters

    31 August, 2016 Valmet | Mika Karaila5

    Red triangle: check parameters

    Blue dot: not yet deployed

    Info: description

  • Node-RED exampleNodes: Inject, limit, debug

    31 August, 2016 Valmet | Mika Karaila6

    Status: msg counter valueDebug: timestamp value

  • Server parameters in one nodeConfiguration node

    31 August, 2016 Valmet | Mika Karaila7

    Config: keeps all parameters in onenode like server IP-address &user/passwd

  • IoT nodes:Azure, Watson, AWS

  • Node-red nodes for Azurehttp://flows.nodered.org

    31 August, 2016 Valmet | Mika Karaila9

    http://flows.nodered.org/

  • Node-red nodes for IBM Watson

    31 August, 2016 Valmet | Mika Karaila10

  • Node-red nodes for AWS

    31 August, 2016 Valmet | Mika Karaila11

  • Node-RED IoT nodes

    31 August, 2016 Valmet | Mika Karaila12

  • IoT nodesSimplified view

    Principles:

    Send / receive messages Store / retrieve file(s) Write / read database

    Programming languages: C#, Javascript, Python, Java, Ruby etc.

    depends on provider

    Differences:

    Security implementations: API key Connection string Certificate files

    Protocols: http/https mqtt/mqtts Amqp/amqpWs

    31 August, 2016 Valmet | Mika Karaila13

  • Use cases

    Demo is based onArrowhead service frameworkArtemis research program

  • Demo hardware: Intel Edison + Groove kitSeed Studio: Indoor environment kit for Intel Edison

    1. Intel Edison & base board2. Base board with enclosure3. Adapter for Edison4. Sensors/devices:

    Light, temperature, rotatebutton, buzzer, UV, LCD

    Connectors:Power line + USB-debug

    31 August, 2016 Valmet | Mika Karaila15

  • Simple flow that will register GTW to cloudPublish service & List services

    31 August, 2016 Valmet | Mika Karaila16

  • GTW REST APISwagger documented API

    31 August, 2016 Valmet | Mika Karaila17

  • Test flow to send sensor values to MIMOSABuild message and POST data through REST API to database

    31 August, 2016 Valmet | Mika Karaila18

  • Dashboard UIUI definition

    31 August, 2016 Valmet | Mika Karaila19

  • Dashboard UI3 Tabs: Arrowhead services, Sensor test and MIMOSA DB

    31 August, 2016 Valmet | Mika Karaila20

  • Map viewGTW on map

    31 August, 2016 Valmet | Mika Karaila21

  • HSL Map demo

    2 September, 2016 Valmet | Mika Karaila22

  • HSL Demo flowUpdated mqtt & map parameters

    2 September, 2016 Valmet | Mika Karaila23

  • Demo summary

    Visual program

    Program flow is just 4 tabs (pages) and it is not very complex

    Simple REST APIs

    Effective and very easy to reuse => high productivity

    UI & Map interface (bonus)

    31 August, 2016 Valmet | Mika Karaila24

  • Summary

  • Commercial products using the Node-REDBased on IBMs open source Node-RED

    http://www.multitech.com/brands/multiconnect-conduit

    http://sensetecnic.com/

    https://www.redconnect.io/

    https://flow.att.com/

    http://thethingbox.io/

    31 August, 2016 Valmet | Mika Karaila26

    http://www.multitech.com/brands/multiconnect-conduithttp://sensetecnic.com/https://www.redconnect.io/https://flow.att.com/http://thethingbox.io/

  • Multitech Conduit

    http://www.my-ftm.com/2014/11/multitech-multitech-systems-a-universal-machine-for-the-industrial-internet-of-things/31 August, 2016 Valmet | Mika Karaila27

    http://www.multitech.net/developer/software/aep/node-red-and-rest-api-cloud-service/

    http://www.my-ftm.com/2014/11/multitech-multitech-systems-a-universal-machine-for-the-industrial-internet-of-things/http://www.multitech.net/developer/software/aep/node-red-and-rest-api-cloud-service/

  • AT&T

    https://developer.att.com/campaigns/flow-designer-beta31 August, 2016 Valmet | Mika Karaila28

    https://developer.att.com/campaigns/flow-designer-beta

  • Sensetecnic

    http://developers.sensetecnic.com/article/anomaly-detection-using-node-red/31 August, 2016 Valmet | Mika Karaila29

    http://developers.sensetecnic.com/article/anomaly-detection-using-node-red/

  • Redconnect

    https://www.redconnect.io/31 August, 2016 Valmet | Mika Karaila30

    https://www.redconnect.io/

  • The Thingbox project

    http://thethingbox.io/31 August, 2016 Valmet | Mika Karaila31

    http://thethingbox.io/

  • SummaryHighlights

    Expand node-RED with own nodes Check node-red-contrib-* from GITHUB / npm

    Document REST APIs with Swagger as you program Test immediately Easiness, reuse for productivity Have fun !

    Questions & discussion

    31 August, 2016 Valmet | Mika Karaila32

  • 31 August, 2016 Valmet | Mika Karaila33