Code Monkey home page Code Monkey logo

thingsboard.github.io's Introduction

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 git
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
sudo 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.

To deploy a fork, you need to replace the environment variable PAGES_REPO_NWO with the name of your repository. As example:
PAGES_REPO_NWO="your_github_nickname/thingsboard.github.io"

docker run --rm -d -p 4000:4000 --name thingsboard_website -e PAGES_REPO_NWO="thingsboard/thingsboard.github.io" --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.

To deploy a fork, you need to replace the environment variable PAGES_REPO_NWO with the name of your repository. As example:
PAGES_REPO_NWO: "your_github_nickname/thingsboard.github.io"

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"
    environment:
      PAGES_REPO_NWO: "thingsboard/thingsboard.github.io"
    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/

Update pages in _includes/docs/pe/user-guide/install directory in accordance with thingsboard/thingsborad-pe repositories:

Use the following command from the project root directory to regenerate configuration pages (first script parameter is TB version: 'ce' or 'pe', second parameter is relative path to TB repository):

python3 generate_config_pages.py ce ../thingsboard

thingsboard.github.io's People

Contributors

alexdoantb avatar andreihoncharuk avatar artemdzhereleiko avatar ashvayka avatar dashevchenko avatar deaflynx avatar dmytro-landiak avatar dmytrokhylko avatar dshcherbyna avatar geronimo-ua avatar ikulikov avatar imbeacon avatar iraznatovskyi avatar karabiy avatar leomorgan113 avatar m-krasikov avatar mp-loki avatar nickas21 avatar rosas-github avatar samson0v avatar shvaykad avatar smatvienko-tb avatar stitenko avatar trikimiki avatar volodymyr-babak avatar vparomskiy avatar vvlladd28 avatar vzikratyi-tb avatar xalt7x avatar yevhenbondarenko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

thingsboard.github.io's Issues

Blacklisted Script

This is a...

  • Feature Request
  • Bug Report

Problem:
I have a script rule that reports the following debug information when it fails occasionally.
javax.script.ScriptException: java.lang.RuntimeException: java.lang.IllegalStateException: Executor thread not set after 100 ms
at delight.nashornsandbox.internal.NashornSandboxImpl$1.invokeFunction(NashornSandboxImpl.java:353)
at org.thingsboard.server.service.script.AbstractNashornJsInvokeService.doInvokeFunction(AbstractNashornJsInvokeService.java:91)
at org.thingsboard.server.service.script.AbstractJsInvokeService.invokeFunction(AbstractJsInvokeService.java:51)
at org.thingsboard.server.service.script.RuleNodeJsScriptEngine.executeScript(RuleNodeJsScriptEngine.java:172)
at org.thingsboard.server.service.script.RuleNodeJsScriptEngine.executeUpdate(RuleNodeJsScriptEngine.java:104)
at org.thingsboard.rule.engine.transform.TbTransformMsgNode.lambda$transform$0(TbTransformMsgNode.java:52)
at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:111)
at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:58)
at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:75)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: Executor thread not set after 100 ms
at delight.nashornsandbox.internal.ThreadMonitor.run(ThreadMonitor.java:130)
at delight.nashornsandbox.internal.JsEvaluator.runMonitor(JsEvaluator.java:47)
at delight.nashornsandbox.internal.NashornSandboxImpl.executeSandboxedOperation(NashornSandboxImpl.java:161)
at delight.nashornsandbox.internal.NashornSandboxImpl.access$000(NashornSandboxImpl.java:36)
at delight.nashornsandbox.internal.NashornSandboxImpl$1.invokeFunction(NashornSandboxImpl.java:349)
... 11 more
Caused by: java.lang.IllegalStateException: Executor thread not set after 100 ms
at delight.nashornsandbox.internal.ThreadMonitor.run(ThreadMonitor.java:91)
... 15 more

And later the script fails completely with the error,
javax.script.ScriptException: Script is blacklisted due to maximum error count 3!
at org.thingsboard.server.service.script.RuleNodeJsScriptEngine.executeScript(RuleNodeJsScriptEngine.java:178)
at org.thingsboard.server.service.script.RuleNodeJsScriptEngine.executeUpdate(RuleNodeJsScriptEngine.java:104)
at org.thingsboard.rule.engine.transform.TbTransformMsgNode.lambda$transform$0(TbTransformMsgNode.java:52)
at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:111)
at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:58)
at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:75)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

The only solution that I have found to get the script to run again is to restart the Thingsboard server.

I have looked in the logs on the server, but I couldn't see anything.

Proposed Solution:

Page to Update:
http://thingsboard.io/...

ThingsBoard Version: V2.2.0 running on Ubuntu 18.04.2.

Any plan to open source swagger schemas ?

This is a...

  • Feature Request
  • Bug Report

Problem:
Thanks for your great work on thingsboard product and the detailed documents!
Since the firewall issue, I couldn't access the Administrator REST API online, any plan to open source the swagger schemas ?

Proposed Solution:
Create a new Repo to open source Swagger Schemas or just open source it in this repo.

Page to Update:
https://thingsboard.io/docs/reference/rest-api/
https://pe.thingsboard.io/swagger-ui.html

Installation steps update

Installation steps update for ubuntu

  • Bug Report

Problem:
The current steps mentioned result into build and execution errors due to dependencies.

Proposed Solution:
sudo apt-get install software-properties-common
sudo apt-add-repository ppa:brightbox/ruby-ng
sudo apt-get update
sudo apt-get install ruby2.2
sudo apt-get install ruby2.2-dev
sudo gem install github-pages
sudo gem install jekyll bundler
sudo bundle install

Page to Update:
https://github.com/thingsboard/thingsboard.github.io

can't update device telemetry: HTTP + Demo Thingsboard + Python

This is a...

  • Feature Request
  • Bug Report

Problem:
Setup: Raspberry Pi 3B V1.2 + Python 3 + requests library 2.21.0
I am trying to update telemetry data of a Thingsboard Device from my RPi to demo.thingsboard via HTTP.
For that, I am using the well-known requests library to perform a POST.

snippet:

host ="demo-thingsboard.io"
access_token="AM9-----------------"
url = "http(s)://{}/api/v1/{}/telemetry".format(host, access_token)

payload = data={'key1': 'value1', 'key2': 'value2'}
headers = {'Content-type': 'application/json', 'Accept': 'application/json'}
r = requests.post(url, data=payload, headers=headers)

In the end, the request looks like this:
requests.post('http(s)://demo-thingsboard.io/api/v1/$AM9-----------------/telemetry', data={'key1': 'value1', 'key2': 'value2'}, headers={'Content-type': 'application/json', 'Accept': 'application/json'})

And the result is this:
image

ThingsBoard Demo version: https://demo.thingsboard.io/login

What could be the solution for this issue?

Kind regards

Clarificaion on tenant profile limits

Problem:
https://github.com/thingsboard/thingsboard.github.io/blob/master/docs/user-guide/tenant-profiles.md says

SMS sent means number of sms that are sent from the rule engine using system SMS provider

Proposed Solution:
Clarify during what time.

Is this limit per day or month, or is the limit forever?

The same applies to the number of emails sent.

Page to Update:
https://github.com/thingsboard/thingsboard.github.io/blob/master/docs/user-guide/tenant-profiles.md says

RPI install instructions minor inconsistency

This is a...

  • Feature Request
  • Bug Report

Problem:
https://github.com/thingsboard/thingsboard.github.io/blob/master/docs/user-guide/install/rpi.md#thingsboard-service-installation

# Update ThingsBoard memory usage and restrict it to 150MB in /etc/thingsboard/conf/thingsboard.conf
export JAVA_OPTS="$JAVA_OPTS -Dplatform=rpi -Xms256M -Xmx256M"

Comment asks to allocate 150MB of memory but command allocates 256MB

Proposed Solution:
Make sure comment and command are indicating the correct memory value (If I understand
the git log it is probably 256MB)

Page to Update:
https://github.com/thingsboard/thingsboard.github.io/blob/master/docs/user-guide/install/rpi.md

No 'Access-Control-Allow-Origin' in HTTP GET method

Getting error on HTTP REST Apis.

  • Feature Request

We are fetching data from REST APIS using GET method. We getting error as No 'Access-Control-Allow-Origin'

We want to get thingsboard data from REST APis, but http GET method is not working and we are not able to send headers, but http PUT and POST method has been working fine

The error in details as :

Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8888' is therefore not allowed access. The response had HTTP status code 401.

How we can achive and solve error. I have try to using lot of siltiuon also checked CORS on chrome browser.

Filter Incoming Telemetry from latitude & longitude

This is a...

  • Feature Request

Problem:
I want to filter if latitude & longitude = 0 not display in dashboard, other telemetry (sensor,kmph,temperature) save.
image
what should i code in script rule chain for that function ?
I try this code but not work

if (msg.latitude < 0 && msg.longitude > 0 && msg.temperature > -30 && msg.humidity > 0) {
return true;
} else {
return false;
}

Proposed Solution:

Page to Update:
http://thingsboard.io/...

inconsistency and broken link in `docs/user-guide/certificates/`

This is a...

  • Feature Request
  • Bug Report

Problem:
https://thingsboard.io/docs/user-guide/certificates/

inconsistency in the start of the page

in the first paragraph

Instructions below will describe how to generate a client-side certificate and connect to the server that is running MQTT over SSL. You will need to have the public key of the server certificate in PEM format. See following instructions for more details on server-side configuration.

after checking the client.keygen.sh

the file needed is the server certificate in cer format located in the same folder as client.keygen.sh

also the links below are not working

  • resources/mqtt-ssl-configuration-run-twowaysslmqttclient.sh
  • resources/mqtt-ssl-configuration-twowaysslmqttclient-output.txt
  • resources/MqttSslClient.java

Proposed Solution:

Page to Update:
http://thingsboard.io/...

Trapezoidal Integration or similar feature

This is a ..

  • Feature Request
  • Bug Report

Problem:

Currently we are testing your platform to see if it can be used to replace our own that is aging quite quickly.

We're testing various capabilities, including various types of aggregation.

One use case that i cannot phantom how to execute it is this:

  • Imagine i have a car and an IOT that gives me, every 5 seconds, the car current velocity.

Is it possible to create a rule, using your analytics nodes, to calculate the TOTAL DISTANCE traveled in, for example, 30 mins?

Proposed Solution:

In this case what i would need is an trapezoidal integral, but the aggregations available are only the default (SUM/AVG/COUNT/etc)

How would you guys suggest i approach this issue?

Page to Update:
http://thingsboard.io/...

v3.3.4.1PE

Missing information/config for postgres from docker linux installation guide

This is a...

  • Feature Request
  • Bug Report

Problem:
Documentation for Docker for Linux/Mac is missing information about postgres
https://thingsboard.io/docs/user-guide/install/docker/?ubuntuThingsboardQueue=inmemory

When you are installing based on this documentation you have no idea that there should be postgres installed somewhere, it is missing from "Prerequisites" and there is no mention about it in text. So you end up with org.postgresql.util.PSQLException: FATAL: database "thingsboard" does not exist error.

Proposed Solution:

Based on issue thingsboard/thingsboard#3347 there is example docker-compose.yml that has postgres included which fixes problem with missing postgres.

docker-compose.yml

version: '2.2'
services:
  mytbpe:
    restart: always
    image: "thingsboard/tb-postgres"
    ports:
      - "8080:9090"
      - "1883:1883"
      - "5683:5683/udp"
    environment:
      TB_QUEUE_TYPE: in-memory
      SPRING_DATASOURCE_USERNAME: postgres
      SPRING_DATASOURCE_PASSWORD: postgres
      SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/thingsboard
    volumes:
      - ~/.mytb-data:/data
      - ~/.mytb-logs:/var/log/thingsboard
  postgres:
    restart: always
    image: "postgres:11.6"
    ports:
    - "5432"
    environment:
      POSTGRES_DB: thingsboard
      POSTGRES_PASSWORD: postgres
    volumes:
      - ~/.mytb-data/db:/var/lib/postgresql/data

Page to Update:
https://thingsboard.io/docs/user-guide/install/docker/?ubuntuThingsboardQueue=inmemory

I don't mid creating PR but wasn't sure that this is preferred solution

https://thingsboard.io/docs/pe/reference/dart-client/ is Python REST Client, not Dart API Client

This is a...

  • Feature Request
  • Bug Report

Problem:
https://thingsboard.io/docs/pe/reference/dart-client/ is Python REST Client, not Dart API Client.

Proposed Solution:
Modify thingsboard.github.io/docs/pe/reference/dart-client.md from
{% include docs/pe/reference/python-rest-client.md %}
to
{% include docs/pe/reference/dart-client.md %}

Page to Update:
https://thingsboard.io/docs/pe/reference/dart-client/

the online website version.

Default value of state.defaultInactivityTimeoutInSec: 10 or 600?

Hello

In multiple pages of the documentation, it is stated that state.defaultInactivityTimeoutInSec defaults to 10 seconds:

Meanwhile, on a fresh install of ThingsBoard 3.1, thingsboard.yaml says:
https://github.com/thingsboard/thingsboard/blob/71324536a30b11a1cdf46af48300686345107ca1/application/src/main/resources/thingsboard.yml#L478

state:
  # Should be greater then transport.sessions.report_timeout
  defaultInactivityTimeoutInSec: "${DEFAULT_INACTIVITY_TIMEOUT:600}"
  defaultStateCheckIntervalInSec: "${DEFAULT_STATE_CHECK_INTERVAL:60}"
  persistToTelemetry: "${PERSIST_STATE_TO_TELEMETRY:false}"

which is 600 seconds.

So I assume that the documentation is wrong. Should I send a pull-request to fix it?

Thanks

thingsboard doesnot show the telemetry values

my arduino code:

`
#include <WiFiEspClient.h>
#include <WiFiEsp.h>
#include <WiFiEspUdp.h>
#include <PubSubClient.h>
#include "SoftwareSerial.h"

#define WIFI_AP "xxxxxxxxx"
#define WIFI_PASSWORD "xxxxxxxxxxxx"

#define TOKEN "zzzzzzzzzz" 



char thingsboardServer[] = "demo.thingsboard.io";

// Initialize the Ethernet client object
WiFiEspClient espClient;



PubSubClient client(espClient);

SoftwareSerial soft(10, 11); // RX, TX

int status = WL_IDLE_STATUS;
float t;
unsigned long lastSend;

void getAndSendTemperatureAndHumidityData()
{
  Serial.println("Collecting temperature data.");

  // Reading temperature or humidity takes about 250 milliseconds!
 t=50;
  
   float h =100;

   Serial.print("Humidity: ");
  Serial.print(h);
  Serial.print(" %\t");
  Serial.print("Temperature: ");
  Serial.print(t);
  Serial.print(" *C ");

  String temperature = String(t);
 String humidity = String(h);


  // Just debug messages
  Serial.print( "Sending temperature  : [" );
  Serial.print( temperature );
  Serial.print( "]   -> " );

  // Prepare a JSON payload string
 String payload = "{";
  payload += "\"temperature\":"; payload += temperature; payload += ",";
  payload += "\"humidity\":"; payload += humidity;
  payload += "}";

  // Send payload
  char attributes[100];
  payload.toCharArray( attributes, 100 );
  client.publish( "v1/devices/me/telemetry", attributes );
  Serial.println( attributes );
}

void InitWiFi()
{
  // initialize serial for ESP module
  soft.begin(115200);
  // initialize ESP module
  WiFi.init(&soft);
  // check for the presence of the shield
  if (WiFi.status() == WL_NO_SHIELD) {
    Serial.println("WiFi shield not present");
    // don't continue
    while (true);
  }

  Serial.println("Connecting to AP ...");
  // attempt to connect to WiFi network
  while ( status != WL_CONNECTED) {
    Serial.print("Attempting to connect to WPA SSID: ");
    Serial.println(WIFI_AP);
    // Connect to WPA/WPA2 network
    status = WiFi.begin(WIFI_AP, WIFI_PASSWORD);
    delay(500);
    
  }
  Serial.println("Connected to AP");
  
  IPAddress ip = WiFi.localIP();
  
  Serial.print("IP Address: ");
  Serial.println(ip);
  
}

void reconnect() {
  // Loop until we're reconnected
  while (!client.connected()) {
    Serial.print("Connecting to Thingsboard node ...");
    // Attempt to connect (clientId, username, password)
    if ( client.connect("arduino", TOKEN, NULL) ) {
      Serial.println( "[DONE]" );
    } else {
      Serial.print( "[FAILED] [ rc = " );
      Serial.print( client.state() );
      Serial.println( " : retrying in 5 seconds]" );
      // Wait 5 seconds before retrying
      delay( 5000 );
    }
  }
}
void setup() {
  // initialize serial for debugging
  Serial.begin(9600);
  
  InitWiFi();
  client.setServer( thingsboardServer, 1883 );
  lastSend = 0;
}

void loop() {
  status = WiFi.status();
  if ( status != WL_CONNECTED) {
    while ( status != WL_CONNECTED) {
      Serial.print("Attempting to connect to WPA SSID: ");
      Serial.println(WIFI_AP);
      // Connect to WPA/WPA2 network
      status = WiFi.begin(WIFI_AP, WIFI_PASSWORD);
      delay(500);
    }
    Serial.println("Connected to AP");
     IPAddress ip = WiFi.localIP();
  
  Serial.print("IP Address: ");
  Serial.println(ip);
  }

  if ( !client.connected() ) {
    reconnect();
     IPAddress ip = WiFi.localIP();
  
  Serial.print("IP Address: ");
  Serial.println(ip);
  }

  if ( millis() - lastSend > 1000 ) { // Update and send only after 1 seconds
    getAndSendTemperatureAndHumidityData();
    lastSend = millis();
  }

  client.loop();
}

`

Thingsboard custom query

This is a...

  • Feature Request
  • Bug Report

Is there a way to generate custom SQL's on custom tables in my Postgresql database and display the results on my dashboards?

Rule Node Development Guide - TbContext.getPeContext()

This is a...

  • Feature Request
  • Bug Report
  • Enhancement

Problem:
In the Rule Node Development Guide inside subchapter Using ThingsBoard services is written:

ThingsBoard PE users may get access to additional services using TbContext.getPeContext() method.

However, if property <thingsboard.version></thingsboard.version> inside custom rule engine node's pom.xml is not *PE, the PE context is (obviously) not available.

I had a problem when using ThingsBoard 3.2.1PE, which was not listed in the repository, so I had to type the version as <thingsboard.version>3.2.1</thingsboard.version>, which didn't contain the TbContext.getPeContext() method.

tb-pe-v321
artifacts-tb

I've changed to the next available version (<thingsboard.version>3.2.2PE</thingsboard.version>), and it worked.

I know this problem is not related to documentation (but is rather a problem with the repo). However, it may save developers' time if they are alerted.

Proposed Solution:
Inside docs explicitly write that developers must use *PE version if they want to use TbContext.getPeContext() method. In case of trouble (ex., if no PE edition is found for a specified version in the repo), they may change it to an older/newer *PE version.

Page to Update:
https://thingsboard.io/docs/pe/user-guide/contribution/rule-node-development/

docker-compose: incomplete ThingsBoard PE upgrade

Problem:
When updating ThingsBoard PE cluster setup with Docker compose to a newer version using the procedure described in the documentation, it seems that only the tb-core microservice updates to a newer version, leaving some of the other microservices stuck at the previous version. This may cause errors due to incompatible versions, for example, problems with deserialization of messages used for communication between microservices.

Cause:
Current procedure:

$ ./docker-stop-services.sh
$ ./docker-upgrade-tb.sh --fromVersion=[FROM_VERSION]
$ ./docker-start-services.sh
  • docker-stop-services.sh script stops all containers.
  • docker-upgrade-tb.sh script pulls new version only for tb-core1 microservice, which is used to upgrade ThingsBoard.
  • it seems docker-start-services.sh script just starts all stopped containers - and not recreates them - which causes that containers are using the old version, except for tb-core1 microservice's container which Docker image was explicitly updated in the previous step.

Proposed Solution:
To make sure all containers are properly updated to newer version, the procedure may be changed to:

  • ./docker-stop-services.sh
  • update environment variable TB_VERSION stored in .env to the newer version
  • ./docker-upgrade-tb.sh --fromVersion=[FROM_VERSION]
  • ./docker-update-service.sh
  • reinstall license after rebooting; (1) delete license for affected TB instance at Thingsboard license portal, (2) remove TB license data file from tb-core Docker container(s) (location of this file is defined in the TB_LICENSE_INSTANCE_DATA_FILE environment variable stored in tb-node.env).

Page to Update:
https://thingsboard.io/docs/user-guide/install/pe/cluster/docker-compose-setup/#upgrading

thingsboard-gateway MQTT documentation issues

The MQTT config documentation for thingsboard-gateway (docs/iot-gateway/config/mqtt.md) does not document the attributeRequests section of the configuration.

Also, the attributeUpdates section is listed as optional but removing this from the config file results in the following error:

ERROR - [mqtt_connector.py] - mqtt_connector - 133 - 'attributeUpdates' section missing from configuration

local setup for ui-ngx setup

This is a...

  • Feature Request
  • Bug Report

Problem:
hello, I am from senzary organization and currently using professional edition of thingsboard.
having issue with setup local environment for angular development .facing version issue etc..
Proposed Solution:

step to set up local environment.
Page to Update:
http://thingsboard.io/...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.