立即试用 商务报价
网关
安装 > Installation from sources (Latest version)

IoT Gateway installation from sources.

Installation from sources

To install ThingsBoard Gateway from sources, you should follow steps below:

1. Install required libraries to the system with apt:

1
sudo apt install python3-dev python3-pip libglib2.0-dev git 

2. Download repository from GitHub:

1
git clone --recurse-submodules https://github.com/thingsboard/thingsboard-gateway.git

3. Move into downloaded directory:

1
cd thingsboard-gateway

4. Install python requirements:

1
pip3 install -r requirements.txt

5. Create “logs” folder:

1
mkdir logs

6. Configure gateway to work with your instance of ThingsBoard platform, using this guide or just run to test result of installation such as in the next step.

7. Run gateway, to check installation result:

1
python3 ./thingsboard_gateway/tb_gateway.py

Hot Reloader

If you are using Gateway for development, you can enable Hot Reloader to restart Gateway every time when you edit any project file.

To run Gateway with Hot Reloader, use the following command:

1
python3 ./thingsboard_gateway/tb_gateway.py true