Read this article in Japanese | Spanish


This article applies to TeamViewer IoT users who has the data generated in Node-Red environment and need these data to be sent to TeamViewer-IoT cloud dashboard.

General

For Node-Red programming environment TeamViewer provides a node which can be used to interact with TeamViewer IoT agent. The node can be used to create sensors/metrics and to push data to the TeamViewer-IoT cloud.

A basic knowledge of Linux command line and Node-Red environment is required. The article describes the installation process for Raspberry-Pi 3 Model B hardware.

Prerequisites

Download and install the TeamViewer IoT Node-Red plugin

  1. SSH into your device where TeamViewer IoT Agent is installed using your credentials
  2. Download TeamViewer IoT Node-Red plugin      
$ wget https://download.teamviewer-iot.com/connectors/teamviewer-iot-node-red-plugin/1.0.0/teamviewer_iot_node-red_plugin-1.0.0.zip

     3.   Unpack the plugin (It would be better to unpack the directory near to TeamViewer IoT Device SDK for Node.js)

$ unzip [path]/teamviewer_iot_node-red_plugin-1.0.0.zip 
  1. Go to your node-red directory (in our case it is)
$ cd /home/.node-red/
  1. Install the npm
$ npm install [extracted package path]
  1. Run the node-red  
$ node-red-start

Application development

Open the node-red web interface from your web browser.From the left panel choose  datanode and configure as presented in the picture

pic1.jpg

 

Put the TeamViewer node and configure it as described on information panel.

pic2.png

Connect a data source to the node and run the program.

Examine the results

Open TeamViewer-IoT dashboard and make sure you have the data coming from the Agent.

Version history
Revision #:
12 of 12
Last update:
3 weeks ago
Updated by:
 
Labels (1)
Contributors