Read this article in Chinese | GermanJapanese | 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
    $ cd /home/$USER
    $ wget https://download.teamviewer-iot.com/connectors/teamviewer-iot-node-red-plugin/1.0.1/teamviewer_iot_node-red_plugin-1.0.1.zip
  3. Unpack the package
    $ unzip /home/$USER/teamviewer_iot_node-red_plugin-1.0.1.zip
  4. Go to your node-red directory and install the plugin
    $ cd /home/$USER/.node-red
    & npm install /home/$USER/teamviewer_iot_node-red_plugin-1.0.1
  1. Start the Node-Red application
    $ node-red-start

Application development

Open the node-red web interface from your web browser and in the left panel you will find the "teamviewer iot" node. Configure it as described in the help window.

Capture.PNG Capture1.PNG

 

 

 

 

 

 

 

 

Connect a data source to the node and run the program. Use {"name":value} JSON format to push numeric data with not less than 1 second interval.

Examine the results

Open TeamViewer-IoT dashboard and make sure that a new sensor and metric are created with the name that specified in JSON string. Pin the metric to the dashboard to visualize the values.

Version history
Revision #:
22 of 22
Last update:
Thursday
Updated by:
 
Labels (1)
Tags (1)