To install ThingsBoard Gateway as python module, you should follow steps below:
1. Install required libraries to the system with apt:
sudo apt install python3-dev python3-pip libglib2.0-dev
2. Install ThingsBoard Gateway module with pip:
sudo pip3 install thingsboard-gateway
3. Download example of configs, create log folder:
wget https://github.com/thingsboard/thingsboard-gateway/releases/download/2.0/configs.tar.gz
sudo mkdir /etc/thingsboard-gateway
sudo mkdir /var/log/thingsboard-gateway
sudo tar -xvzf configs.tar.gz -C /etc/thingsboard-gateway
4. Check installation you can with command (You will get errors about connection, because you don’t configure gateway for yourself. For configuration please use Configuration guide):
thingsboard-gateway