IoT Starter Kit - How to reassign the starter kit to an existing account - TeamViewer Support
<main>
<article class="userContent">
<p><em>This article explains how to move the Teamviewer Starter Kit from the preassigned account to another Teamviewer account.</em></p><p><a href="https://community.teamviewer.com/t5/TeamViewer-IoT-Knowledge-Base-EN/IoT-Starter-Kit-How-to-reassign-the-starter-kit-to-an-existing/ta-p/61502#toc-hId--1328693636" rel="nofollow noreferrer ugc"><em>Step 1: Find out the IP address of the gateway in the local network</em><em>Step 2: Install SSH client</em><em>Step 3: Unmanage the gateway</em><em>Step 4: Create a new TeamViewer IoT account</em><em>Step 5: Provision the gateway to the newly created account.</em><em>Step 6: Configure the TeamViewer IoT Agent to receive measurements from Bosch XDK sensors</em><em>Step 7 - Configure the digital input and output (DIO) pins</em><em>Step 8</em><em>Step 9: Restart the service for the GPIOs</em><em>Step 10: Check if the DIOs are working</em></a></p><h2 data-id="step-1%3A-find-out-the-ip-address-of-the-gateway-in-the-local-network">Step 1: Find out the IP address of the gateway in the local network</h2><p><strong>Option 1: </strong>Ask your network administrator to connect the gateway to the network and provide you with IP address</p><p><strong>Option 2: </strong>You can remotely access the gateway from TeamViewer desktop client application as it is already assigned to the predefined account.</p><ol><li>Open TeamViewer desktop client application</li><li>Login with the provided account credentials</li><li>From the Contacts and Computers tab connect to your gateway</li><li>Switch to the “Remote Terminal” tab</li><li>In the Remote SSH window type “ifconfig” command and write down the IP address of the eth0 interface</li><li>Close TeamViewer remote connection session</li></ol><h2 data-id="step-2%3A-install-ssh-client">Step 2: Install SSH client</h2><p>Install SSH client on your desktop computer (e.g Putty).</p><p>Open SSH connection to the gateway in the local network using the IP address obtained in Step 1.</p><h2 data-id="step-3%3A-unmanage-the-gateway">Step 3: Unmanage the gateway</h2><p>Use the bellow Linux command to unmanage the TV Agent from the current account</p><pre class="code codeBlock" spellcheck="false" tabindex="0">$ sudo teamviewer-iot-agent unmanage
</pre><h2 data-id="step-4%3A-create-a-new-teamviewer-iot-account">Step 4: Create a new TeamViewer IoT account</h2><ol><li>Open your web browser and navigate to <a href="https://teamviewer-iot.com" rel="nofollow noreferrer ugc">https://teamviewer-iot.com.</a></li><li>Click “Sign Up” and follow the instructions to create a new TeamViewer IoT account.</li><li>Remember your E-Mail and Password that has been used for the account creation.</li></ol><h2 data-id="step-5%3A-provision-the-gateway-to-the-newly-created-account.">Step 5: Provision the gateway to the newly created account.</h2><p>In your SSH session use the below command to provision the gateway to your new account using the E-Mail and Password obtained in Step 4 and follow the instruction.</p><pre class="code codeBlock" spellcheck="false" tabindex="0">$ sudo teamviewer-iot-agent setup
</pre><p>Upon successful provisioning of the gateway, you will have a new device in the TeamViewer desktop client application as well as in your cloud dashboard under the “Devices” tab. Its name will be the hostname of the gateway.</p><h2 data-id="step-6%3A-configure-the-teamviewer-iot-agent-to-receive-measurements-from-bosch-xdk-sensors">Step 6: Configure the TeamViewer IoT Agent to receive measurements from Bosch XDK sensors</h2><p>Disable TeamViewer Monitoring Agent</p><pre class="code codeBlock" spellcheck="false" tabindex="0">$ sudo teamviewer-iot-agent disable system-health
</pre><p>Restore the configurations for the Monitoring Agent</p><pre class="code codeBlock" spellcheck="false" tabindex="0">$ sudo su
$ sudo cat /var/lib/teamviewer-iot-agent/system_monitors_kit.conf > /var/lib/teamviewer-iot-agent/system_monitors.conf
</pre><p>Enable TeamViewer Monitoring Agent</p><pre class="code codeBlock" spellcheck="false" tabindex="0">$ sudo teamviewer-iot-agent enable system-health
</pre><h2 data-id="step-7-configure-the-digital-input-and-output-(dio)-pins">Step 7 - Configure the digital input and output (DIO) pins</h2><p>To use the DIOs of the Dell gateway with TV Agent first you need to create corresponding Sensors/Metrics.</p><p>Open your web browser and type the IP address obtained in Step 1 to open the Edge Management application.</p><p>Navigate to the “API Clients” tab and create a new client.</p><p><br></p><p> </p><p> </p><p> </p><p>Enter "Digital Out" as a client name and push the "Create" button then "Manage API Client".</p><p><br></p><p> </p><p> </p><p> </p><p> </p><p>Create "New Sensor" (name "Digital Outputs") with 8 metrics (names "Out 0...7") according to the screenshot below (Value Type: Bool, Display Unit: I/O).</p><p><br></p><p><em> </em></p><p> </p><p> </p><p> </p><p> </p><p> </p><p><em>After Pushing the “Create” button you will be provided with the Connector, Sensor and Metric IDs which will be required to edit “teamviewer_gpio.py” file in the next step.</em></p><p><br></p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><h2 data-id="step-8">Step 8</h2><p>Open the “teamviewer_gpio.py” file</p><pre class="code codeBlock" spellcheck="false" tabindex="0">$ sudo nano teamviewer_gpio.py
</pre><p>Replace the “client_id”, “sensor_id” and “Out0_id” to “Out7_id” on the top of the file with corresponding IDs obtained in the previous Step 7.</p><p>Example:</p><pre class="code codeBlock" spellcheck="false" tabindex="0">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"
</pre><div class="embedExternal embedImage display-large float-none">
<div class="embedExternal-content">
<a class="embedImage-link" href="https://us.v-cdn.net/6032394/uploads/lithium_attachments/9029i8837DD2C43BAE6B4.jpg" rel="nofollow noreferrer noopener ugc" target="_blank">
<img class="embedImage-img" src="https://us.v-cdn.net/6032394/uploads/lithium_attachments/9029i8837DD2C43BAE6B4.jpg" alt="image2019-4-1_18-57-27.png" height="180" width="320" loading="lazy" data-display-size="large" data-float="none"></img></a>
</div>
</div>
<h2></h2><h2 data-id="-1"> </h2><h2 data-id="-2"> </h2><h2 data-id="-3"> </h2><h2 data-id="-4"> </h2><h2 data-id="step-9%3A-restart-the-service-for-the-gpios">Step 9: Restart the service for the GPIOs</h2><pre class="code codeBlock" spellcheck="false" tabindex="0">$ sudo service teamviewer_gpio restart
</pre><h2 data-id="step-10%3A-check-if-the-dios-are-working">Step 10: Check if the DIOs are working</h2><p>To control the DIOs from the dashboard user needs to pin the "Out 0..7" metric from the "Metrics" tab to the dashboard and configure it as a "Control" with "Toggle-Switch" function. Use "true" and "false" for the control values as presented in the below screenshot.</p><p><br></p><p> </p><div class="embedExternal embedImage display-large float-none">
<div class="embedExternal-content">
<a class="embedImage-link" href="https://us.v-cdn.net/6032394/uploads/lithium_attachments/9030iFC5AFC380B9AB4C3.jpg" rel="nofollow noreferrer noopener ugc" target="_blank">
<img class="embedImage-img" src="https://us.v-cdn.net/6032394/uploads/lithium_attachments/9030iFC5AFC380B9AB4C3.jpg" alt="image2019-4-1_19-2-55.png" height="180" width="320" loading="lazy" data-display-size="large" data-float="none"></img></a>
</div>
</div>
<p><br></p><div class="embedExternal embedImage display-large float-none">
<div class="embedExternal-content">
<a class="embedImage-link" href="https://us.v-cdn.net/6032394/uploads/lithium_attachments/9028i7E119525063D781D.jpg" rel="nofollow noreferrer noopener ugc" target="_blank">
<img class="embedImage-img" src="https://us.v-cdn.net/6032394/uploads/lithium_attachments/9028i7E119525063D781D.jpg" alt="image2019-4-1_18-54-49.png" height="180" width="320" loading="lazy" data-display-size="large" data-float="none"></img></a>
</div>
</div>
<p><br></p><div class="embedExternal embedImage display-large float-none">
<div class="embedExternal-content">
<a class="embedImage-link" href="https://us.v-cdn.net/6032394/uploads/lithium_attachments/9027i1B40B2AC6EB8B33E.jpg" rel="nofollow noreferrer noopener ugc" target="_blank">
<img class="embedImage-img" src="https://us.v-cdn.net/6032394/uploads/lithium_attachments/9027i1B40B2AC6EB8B33E.jpg" alt="Step4.PNG" height="180" width="320" loading="lazy" data-display-size="large" data-float="none"></img></a>
</div>
</div>
<p><br></p><div class="embedExternal embedImage display-large float-none">
<div class="embedExternal-content">
<a class="embedImage-link" href="https://us.v-cdn.net/6032394/uploads/lithium_attachments/9026i0B02A2925560642A.jpg" rel="nofollow noreferrer noopener ugc" target="_blank">
<img class="embedImage-img" src="https://us.v-cdn.net/6032394/uploads/lithium_attachments/9026i0B02A2925560642A.jpg" alt="Step2.PNG" height="180" width="320" loading="lazy" data-display-size="large" data-float="none"></img></a>
</div>
</div>
<p><br></p><div class="embedExternal embedImage display-large float-none">
<div class="embedExternal-content">
<a class="embedImage-link" href="https://us.v-cdn.net/6032394/uploads/lithium_attachments/9025i2F9C5DE362C75787.jpg" rel="nofollow noreferrer noopener ugc" target="_blank">
<img class="embedImage-img" src="https://us.v-cdn.net/6032394/uploads/lithium_attachments/9025i2F9C5DE362C75787.jpg" alt="Step1.PNG" height="180" width="320" loading="lazy" data-display-size="large" data-float="none"></img></a>
</div>
</div>
<p><br></p>
</article>
</main>