What you will need
Make sure that you have prepared the following points:
- python 2.7.9 or version 3 is installed on the device (see https://www.python.org/downloads/).
- Access the Edge Device via Remote Terminal.
Setup
- Access the edge device remotely (Access the Edge Device via Remote Terminal).
- Download the SDK files. In the terminal type in the following command and press return.
wget https://download.teamviewer-iot.com/sdks/python/v1.1.0/teamviewer_iot_python_sdk-1.1.0-py3-none-any.whl
- Install the SDK. In the terminal type in the following command and press return.
sudo pip3 install teamviewer_iot_python_sdk-1.1.0-py3-none-any.whl
- Extract the package files. In the terminal type in the following command and press return.
unzip teamviewer_iot_python_sdk-1.1.0-py3-none-any.whl -d
teamviewer_iot_python_sdk
- Optional: Run the SDK example. In the terminal type in the following command and press return.
cd teamviewer_iot_python_sdk
sudo python3 ./examples/create_metric.py