node-red-contrib-artik-cloud 0.2.2

Nodes to interface with ARTIK Cloud

npm install node-red-contrib-artik-cloud

node-red-contrib-artik-cloud

These are Node-RED nodes that interface with ARTIK Cloud, writing data to ARTIK Cloud devices and retrieveing data from them. User gets data from any platform and sends it to an ARTIK Cloud device as a payload. ARTIK Cloud stores the data and presents it as a chart. User can retrieve data from ARTIK Cloud device from the in node and process it.

##Pre-requesites

To run these nodes, please ensure the nodes are installed in your environment. Use this command:

     npm install node-red-contrib-artik-cloud

The dependencies 'node-rest-client' and 'ws' will be installed automatically.

##Usage

###ARTIK Cloud out Node

  1. Set up an account at ARTIK Cloud website. Set up a device type instance and obtain its Device ID and Token.
  2. Set Device ID and Token in the ARTIK Cloud out Edit window.
  3. Connect an inject node to ARTIK Cloud out and define payload as below, then deploy the flow.
   {"state":"full"}
  1. Check ARTIK Cloud web portal and you will see the streamed data and chart.

###ARTIK Cloud in Node ARTIK Cloud in Node can receive messages or actions. In order to receive messages:

  1. Click "Receive Messages" box
  2. Get your UID from https://developer.artik.cloud/api-console/. Click GET button and get the UID from /users/self.
  3. Enter UID, Device ID and Token in the ARTIK Cloud in Edit window. The node would retrieve data in real-time.
  4. Connect the output of an ARTIK Cloud in to a debug node and deploy your flow. Set Debug Output as complete msg object.
   { "state": "full", "_msgid": "24edcd1f.db1232" }

To receive actions(e,g actions triggered by Rules Engine):

  1. Click "Receive Actions" box
  2. Enter Device ID and Token in Edit window. The node would receive actions in real-time.
  3. Connect the output of an ARTIK Cloud in to a debug node and deploy your flow. Set Debug output as complete msg object.
  { "actions": ["name":"setOn", "parameters":{}], "_msgid": "4f464d12.b0a9a3" }

Node Info

Version: 0.2.2
Updated 8 years, 1 month ago
Rating: not yet rated

Actions

Rate:

Downloads

6 in the last week

Nodes

  • artik cloud out
  • artik cloud in

Keywords

  • node-red
  • artik
  • cloud
  • samsung
  • iot
  • websocket

Maintainers