Reassign the Starter Kit to another TeamViewer Account

Reassign the Starter Kit to another TeamViewer Account

October 9, 2020
TeamViewer IoT Documentation

Use this procedure to move the TeamViewer Starter Kit from the preassigned account to another TeamViewer Account.

This procedure contains 3 basic steps:

  1. Unmanage and Reassign the Starter Kit
  2. Reconfigure the Digital Inputs/Outputs
  3. Apply the Reconfiguration and Restart

What you will need

Make sure that you have prepared the following points:

Unmanage and Reassign the Starter Kit

When unmanaging the Starter Kit, it is no longer available for your old TeamViewer Account.
  1. Log in to the Starter Kit and use your credentials by using a ssh-tool.
  2. Unmanage the Starter Kit. In the terminal type in the following command and press return.
sudo teamviewer-iot-agent unmanage
  1. Assign the Starter Kit to the new TeamViewer Account. In the terminal, type in the following command and press return. Use your new TeamViewer Account credentials when prompted.
sudo teamviewer-iot-agent setup
  1. Restore the configuration of the Monitoring Agent for the Bosch XDK sensors. In the terminal type in the following commands and press return.
sudo teamviewer-iot-agent disable system-health
sudo su
sudo cat /var/lib/teamviewer-iot-agent/system_monitors_kit.conf > /var/lib/teamviewer-iot-agent/system_monitors.conf
sudo teamviewer-iot-agent enable system-health

Reconfigure the Digital Inputs/Outputs

To use the Digital Inputs/Outputs (DIOs) of the Starter Kit with the TeamViewer IoT Agent, you need to create corresponding Sensors/Metrics.

  1. To log in to the IoT Management Console, open a web browser. Navigate to the IP address of the Starter Kit (obtained by Get the IP Address of the Edge Device / IoT Agent).
  2. From the left menu select API Clients.
  1. As client name type in Digital Out then click Create.
  1. Click Manage API Client.
  2. Click New Sensor and name it Digital Outputs.
  3. Click to add 8 metrics. Name the metrics Out 0 to Out 7. Set each Value Type to Bool and set each Display Unit to I/O. For example:
  1. Optional: When a metric becomes superfluous, click  to remove it.
  2. To finish click Create.

You will be provided with new connector, sensor and metric Ids. For example:

Keep this window open. You need these Ids in the step Apply the Reconfiguration and Restart.

Apply the Reconfiguration and Restart

You need the provided Ids from the step Unmanage and Reassign the Starter Kit.

  1. Access the Starter Kit remotely (Access the Edge Device via Remote Terminal).
  2. Open the teamviewer_gpio.py file with the editor nano. In the terminal type in the following command and press return.
sudo nano teamviewer_gpio.py
  1. Replace the client_id, sensor_id and Out0_id to Out7_id on the top of the file with corresponding Ids obtained in step Unmanage and Reassign the Starter Kit. For example:
client_id = "5385da5e6c854abc8d65c0c80b5d79e9"
sensor_id = "e6218136a1144c8e9d117dc55a24297c"
Out0_id = "4ee43a05e70a4a97a20fe13e6baf286e"
Out1_id = "58f38038ea0b48519332a190688a325e"
Out2_id = "cf1aceeb62f3479fb07d81213dd21269"
Out3_id = "05f12c7970704172a374f777bedc83ef"
Out4_id = "d67d349dba2347699096bc0989f638c8"
Out5_id = "8dac154dfeef4d5aa4ec33b39a675ee4"
Out6_id = "cefdd235b1c243a2b6f7d89a6ce639e3"
Out7_id = "50835cca2df34f19bb13b8a5e0873ed2"
  1. Save the file and close the nano editor.
  2. Restart the service for the General Purpose Inputs/Outputs (GPIOs). In the terminal, type in the following command and press return.
sudo service teamviewer_gpio restart
  1. Verify that the DIOs are configured correctly. In the IoT Management Console navigate to Dashboard.
  2. Pin (see Add a Widget) the Out0_id to Out7_id metrics to the dashboard. Configure each as a Control with Toggle-Switch function. Use true and false for the control values. For example:

Related posts

Want more? Exclusive deals, the latest news: Our Newsletter!