• Stars
    star
    122
  • Rank 292,031 (Top 6 %)
  • Language
    JavaScript
  • License
    Apache License 2.0
  • Created almost 8 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Documentation repository

Instructions for Contributing to the Docs/Website

Deployment of the site locally

The below commands set up your environment for running GitHub pages locally. Any edits you make will be viewable on a lightweight webserver that runs on your local machine.

Install Ruby 3.0.x. If you're on Ubuntu, run this commands:

sudo apt-get install ruby-full build-essential zlib1g-dev
sudo gem install github-pages jekyll bundler
Or you can use Ruby 2.7.x. (Click to Open)

If you're on Ubuntu 20.04 LTS, run these commands:

    sudo apt-get install software-properties-common
    sudo apt-add-repository ppa:brightbox/ruby-ng
    sudo apt-get update
    sudo apt-get install make ruby ruby-dev libffi-dev g++ zlib1g-dev
    sudo gem install github-pages
    sudo gem install jekyll bundler
  • If you're on a Mac, follow these instructions and choose a Ruby version (3.0.x or 2.7.6).
  • If you're on a Windows machine you can use the Ruby Installer. During the installation make sure to check the option for Add Ruby executables to your PATH.

Clone our site:

git clone https://github.com/thingsboard/thingsboard.github.io.git

Make any changes you want. Then, to see your changes locally:

cd thingsboard.github.io
bundle install
bundle exec jekyll serve --host 0.0.0.0

In case you change the layout or website structure you might need to execute following command:

rm -rf _site .jekyll-metadata && bundle exec jekyll serve --host 0.0.0.0

or execute the below script from the project root directory:

./restart.sh

Your copy of the site will then be viewable at: http://localhost:4000 (or wherever Jekyll tells you).

Deployment of the site in docker

These instructions will help to run the thingsboard/thingsboard.github.io project in the docker. You do not need to install additional dependencies and packages, everything is already built into the docker image.

If you do not have docker installed, you need to install it. You can do this by following the installation instructions: Docker Engine installation overview

If you do not have a local thingsboard.github.io repository, you need to clone project into the "website" directory.

git clone https://github.com/thingsboard/thingsboard.github.io.git website

Deploy the site using the docker run command

Please replace the THINGSBOARD_WEBSITE_DIR with the full path to your local thingsboard.github.io repository.

docker run --rm -d -p 4000:4000 --name thingsboard_website --volume="THINGSBOARD_WEBSITE_DIR:/website" thingsboard/website

Deploy the site using the docker-compose file

Please replace the THINGSBOARD_WEBSITE_DIR with the full path to your local thingsboard.github.io repository and create docker-compose.yml file:

cat <<EOT | sudo tee docker-compose.yml
version: '3.1'
services:
  thingsboard_website:
    container_name: thingsboard_website
    restart: always
    image: "thingsboard/website"
    ports:
      - "4000:4000"
    volumes:
      - THINGSBOARD_WEBSITE_DIR:/website
EOT

To start the docker container with docker-compose, run the command:

docker compose up

In about 2 minutes (depending on PC performance), your copy of the site will be available for viewing at http://localhost:4000

Image preview generator

For new *.png images preview is required along with original images.

To create a previews use the script

#run once
#install mogrify utility to perform resize 
sudo apt install graphicsmagick-imagemagick-compat

Usage:

./generate-previews.sh path file_mask*.png

Example:

./generate-previews.sh images/solution-templates *.png

Image preview generator in docker

Usage:

docker exec thingsboard_website bash -c "./generate-previews.sh path file_mask*.png"

Example:

docker exec thingsboard_website bash -c "./generate-previews.sh images/solution-templates *.png"

NOTE: This command must be executed with the running container

Linkchecker

Use the following command to check the broken links.

docker run -it --rm --network=host ghcr.io/linkchecker/linkchecker --check-extern http://0.0.0.0:4000/

More Repositories

1

thingsboard

Open-source IoT Platform - Device management, data collection, processing and visualization.
Java
15,026
star
2

thingsboard-gateway

Open-source IoT Gateway - integrates devices connected to legacy and third-party systems with ThingsBoard IoT Platform using Modbus, CAN bus, BACnet, BLE, OPC-UA, MQTT, ODBC and REST protocols
Python
1,725
star
3

tbmq

Open-source MQTT broker - facilitates MQTT client connectivity, message publishing, and distribution among subscribers.
Java
262
star
4

flutter_thingsboard_app

ThingsBoard Mobile Application
Dart
213
star
5

thingsboard-python-client-sdk

ThingsBoard client Python SDK
Python
111
star
6

thingsboard-edge

Java
101
star
7

flutter_thingsboard_pe_app

ThingsBoard PE Mobile Application
Dart
75
star
8

thingsboard-python-rest-client

ThingsBoard REST API client
Python
66
star
9

dart_thingsboard_client

ThingsBoard API client library for Dart developers.
Dart
59
star
10

thingsboard-ce-k8s

ThingsBoard Community Edition Kubernetes scripts and docs
Shell
57
star
11

esp32-ota

ESP32 OTA based on ThingsBoard Open-source IoT Platform
C
49
star
12

ngx-flowchart

ngx-flowchart is Angular 8 library to enable drag&drop modelling of graphs in web applications
TypeScript
47
star
13

dart_thingsboard_pe_client

ThingsBoard PE API client library for Dart developers.
Dart
46
star
14

performance-tests

Thingsboard performance tests
Java
39
star
15

samples

Thingboard sample applications
Java
32
star
16

thingsboard-rule-config-ui-ngx

TypeScript
27
star
17

thingsboard-rule-config-ui

Configuration UI for ThingsBoard Rule Nodes
HTML
21
star
18

thingsboard-pe-k8s

ThingsBoard Professional Edition Kubernetes scripts and docs
Shell
19
star
19

rule-node-examples

Examples of custom Rule Nodes for ThingsBoard contribution guide
Java
13
star
20

rule-node-examples-ui-ngx

TypeScript
11
star
21

thingsboard-extensions

TypeScript
11
star
22

thingsboard-pe-docker-compose

Docker configuration example for ThingsBoard PE Microservices
Shell
10
star
23

thingsboard-micropython-client-sdk

Python
9
star
24

tb-k8s-perf-tests

ThingsBoard PE performance test scripts
Shell
7
star
25

remote-integration-example

Sample application for custom remote integration
Java
6
star
26

thingsboard-udp-loadbalancer

ThingsBoard UDP Load Balancer designed for CoAP and LwM2M
Java
6
star
27

custom-oauth2-mapper

This project provides a sample of custom mapper of OAuth 2.0 external user into ThingsBoard internal user object
Java
5
star
28

tb-ble-adapter

BLE adapter script for connecting devices to ThingsBoard
Python
4
star
29

tb-ce-rest-client-example

Java
4
star
30

docker

Base docker images that are used by ThingsBoard micro-services architecture deployment scenarios
Dockerfile
4
star
31

gatts_demo

BLE GATT demo using ESP32
C
4
star
32

thingsboard-pe-ui-types

TypeScript
3
star
33

kafka-streams-example

Example of ThingsBoard and Kafka integration
Java
3
star
34

database-migrator

Java
2
star
35

tb-monitoring-tool

This is tool to monitor TB instances
Java
2
star
36

python_tb_rest_client_generator

Python ThingsBoard Rest Client Generator
Python
2
star
37

thingsboard-ui-help

ThingsBoard UI Help Assets
1
star
38

sparkplug-emulator

Java
1
star
39

rule-node-examples-ui

Examples of UI for custom Rule Nodes for ThingsBoard contribution guide
JavaScript
1
star
40

tb-pe-rest-client-example

Java
1
star