Step1 : Install Node-RED
- Before install Node-Red, you must install Node.js, you can find it here : https://nodejs.org/en/download/
- Open CMD and enter this command line : npm install -g --unsafe-perm node-red
- Enter this command line : node-red
- Enter this URL in your browser : http://localhost:1880
Step2 : get Pilot Things oneM2M admin password
- In Pilot Things , go to Network menu
- Click on Local Domain
- Click on Gateway form configuration properties
- The oneM2M admin password is the password
Step3 : Get oneM2M container name
In order to get the oneM2M container name we must login to the oneM2M admin page:
- Log in in this web site : Use your pilot-Things URL with port 8280 http://xxxxx.pilot-things.com:8280/webpage/welcome/index.html
- User : admin
- Password : Use your oneM2M admin password from step2
You can see the tree of data, this tree is use to set up Node-RED.
The things messages are stored in the uplink oneM2M container.
Step3 : Use case with the NameSensor node
- Click and drag : Inject button
- Click and drag : Debug button
- Click and drag : Debug button
- Link all button
- Click on NamedSensor
- Platform : You must setup the Platform
- SensorName : This is the name of your application in the tree
- Container : You must enter the path of container on tree
- Content Instance : Select Latest
- Name : you can named the button
Platform :
- Click on edit button
- Platform : Enter the name
- URLBase :
- Use your pilot-Things URL with port 8280 http://xxxxx.pilot-things.com:8280/webpage/welcome/index.html
- Username : admin
- Password :Use your oneM2M admin password
- Click on update
SensorName :
- Click on edit button
- SensorName : This is the name of your application in the tree
- Click on update
SensorName :
- You must to enter a path, for example if you want to receive the data of thing_NKelno000 : you must enter thing_Nkelno000/messages/uplink
- Click on done
- Click on Deploy
- Click on the blue button to run application
- Click on the blue button to run application
- Click on msg.playload button
- Click on debug
- You can see the data
Additional information
https://homepages.laas.fr/monteil/drupal/content/node-red-ideom2m#Installation
Comments
0 comments
Please sign in to leave a comment.