GithubHelp home page GithubHelp logo

fiware / node-red-contrib-fiware_official Goto Github PK

View Code? Open in Web Editor NEW
14.0 12.0 9.0 503 KB

FIWARE-Node-Red integration supporting NGSI-LD

Home Page: https://nodered.org/

License: Apache License 2.0

JavaScript 57.42% HTML 42.28% Dockerfile 0.30%
node-red fiware ngsi ngsi-ld integration data smart city processing industry agriculture engineering visual programming iot context information etsi isg cim

node-red-contrib-fiware_official's Introduction

node-red-contrib-FIWARE_official

Official Node-RED FIWARE integration

License badge NGSI v2 NGSI LD
CI

Supported Nodes:

  • NGSI(v2,LD) Entity
  • NGSI(v2,LD) Dataset
  • NGSI(v2,LD) Update
  • NGSI(v2,LD) Subscription
  • NGSI(v2) v2ToLD

How to install

You can install this module into an environment running Node-RED by running one of the following commands:

npm install node-red-contrib-fiware_official

or

npm install https://github.com/FIWARE/node-red-contrib-FIWARE_official.git#master

How to run Node-RED and Orion Context Broker with Docker

Please clone the repository. Create the necessary images and start up a series of containers by running the commands as shown below:

git clone https://github.com/FIWARE/node-red-contrib-FIWARE_official.git
cd node-red-contrib-FIWARE_official/docker
docker-compose up -d

Once the containers have started, Open the portal page of Node-READ on http://{ip address of your machine}:1880/.

ℹ️ Note: Everything you do with Node-RED and Orion Context Broker when dockerized is non-persistent. You will lose all your data if you turn off the containers.

Securing Node-RED with Keyrock

You can protect the Node-RED editor and admin API with Keyrock and Passport-FIWARE-OAuth. Register node-red as an application in Keyrock and get clientID and clientSecret. Then, Add the following config to setting.js. You should change serverURL, clientID, clientSecret and callbackURL to suit your system environment. Please See http://nodered.org/docs/security.html for details about setting.js.

adminAuth: {
    type:"strategy",
    strategy: {
        name: "fiware",
        label: 'Sign in with Keyrock',
        strategy: require("passport-fiware-oauth").OAuth2Strategy,
        options: {
            serverURL: "https://keyrock",
            clientID: "00000000-0000-0000-0000-000000000000",
            clientSecret: "00000000-0000-0000-0000-000000000000",
            callbackURL: "https://node-red/auth/strategy/callback",
            isLegacy: false,
            verify: function(accessToken, refreshToken, profile, done) {
              // console.log(profile);
              done(null, profile._json);
            },
            state: true
        }
    },
    users: [
       { username: "admin",permissions: ["*"]}
    ]
},

ℹ️ Note: This configuration was verified in a environment installed Node-RED 1.2.9, Keyrock 7.8 and Passport-FIWARE-OAuth 0.3.0.

node-red-contrib-fiware_official's People

Contributors

aarranz avatar bjarkehou avatar dependabot[bot] avatar drazair avatar fisuda avatar jason-fox avatar jmcanterafonseca avatar kosgobakis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-red-contrib-fiware_official's Issues

ContextBroker Node not created

Installing the latest component to with latest NodeRED seems not create ContextBroker node. Only Nodes visible are NGSI Entity, NGSI Dataset, NGSI Update, NGSI Subscription and NGSI v2toLD. ContextBroker is referred in details of NGSI Subscription but such entity is not visible on design view. It is possible to set ContextBroker settings via Subscription node, but deploying Subscription node does not make subscription to Orion so I am thinking that ContextBorker node actually does not get deployed. Any idea what could be wrong, is there something in latest NodeRED that brakes compatibility and if so, what is the latest compatible versions?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.