Merge branch 'master' of https://github.com/thingsboard/thingsboard
This commit is contained in:
commit
9560a65718
@ -20,7 +20,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.thingsboard</groupId>
|
||||
<version>2.0.3-SNAPSHOT</version>
|
||||
<version>2.0.4-SNAPSHOT</version>
|
||||
<artifactId>thingsboard</artifactId>
|
||||
</parent>
|
||||
<artifactId>application</artifactId>
|
||||
|
||||
@ -109,11 +109,15 @@ public class TenantActor extends RuleChainManagerActor {
|
||||
}
|
||||
|
||||
private void onServiceToRuleEngineMsg(ServiceToRuleEngineMsg msg) {
|
||||
if (ruleChainManager.getRootChainActor()!=null)
|
||||
ruleChainManager.getRootChainActor().tell(msg, self());
|
||||
else logger.info("[{}] No Root Chain", msg);
|
||||
}
|
||||
|
||||
private void onDeviceActorToRuleEngineMsg(DeviceActorToRuleEngineMsg msg) {
|
||||
if (ruleChainManager.getRootChainActor()!=null)
|
||||
ruleChainManager.getRootChainActor().tell(msg, self());
|
||||
else logger.info("[{}] No Root Chain", msg);
|
||||
}
|
||||
|
||||
private void onRuleChainMsg(RuleChainToRuleChainMsg msg) {
|
||||
|
||||
@ -10,6 +10,32 @@
|
||||
<executable>java</executable>
|
||||
<startargument>-Dplatform=windows</startargument>
|
||||
<startargument>-Dinstall.data_dir=%BASE%\data</startargument>
|
||||
<startargument>-Xloggc:%BASE%\logs\gc.log</startargument>
|
||||
<startargument>-XX:+HeapDumpOnOutOfMemoryError</startargument>
|
||||
<startargument>-XX:+PrintGCDetails</startargument>
|
||||
<startargument>-XX:+PrintGCDateStamps</startargument>
|
||||
<startargument>-XX:+PrintHeapAtGC</startargument>
|
||||
<startargument>-XX:+PrintTenuringDistribution</startargument>
|
||||
<startargument>-XX:+PrintGCApplicationStoppedTime</startargument>
|
||||
<startargument>-XX:+UseGCLogFileRotation</startargument>
|
||||
<startargument>-XX:NumberOfGCLogFiles=10</startargument>
|
||||
<startargument>-XX:GCLogFileSize=10M</startargument>
|
||||
<startargument>-XX:-UseBiasedLocking</startargument>
|
||||
<startargument>-XX:+UseTLAB</startargument>
|
||||
<startargument>-XX:+ResizeTLAB</startargument>
|
||||
<startargument>-XX:+PerfDisableSharedMem</startargument>
|
||||
<startargument>-XX:+UseCondCardMark</startargument>
|
||||
<startargument>-XX:CMSWaitDuration=10000</startargument>
|
||||
<startargument>-XX:+UseParNewGC</startargument>
|
||||
<startargument>-XX:+UseConcMarkSweepGC</startargument>
|
||||
<startargument>-XX:+CMSParallelRemarkEnabled</startargument>
|
||||
<startargument>-XX:+CMSParallelInitialMarkEnabled</startargument>
|
||||
<startargument>-XX:+CMSEdenChunksRecordAlways</startargument>
|
||||
<startargument>-XX:CMSInitiatingOccupancyFraction=75</startargument>
|
||||
<startargument>-XX:+UseCMSInitiatingOccupancyOnly</startargument>
|
||||
<startargument>-Xms512m</startargument>
|
||||
<startargument>-Xmx1024m</startargument>
|
||||
<startargument>-jar</startargument>
|
||||
<startargument>%BASE%\lib\${pkg.name}.jar</startargument>
|
||||
|
||||
</service>
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.thingsboard</groupId>
|
||||
<version>2.0.3-SNAPSHOT</version>
|
||||
<version>2.0.4-SNAPSHOT</version>
|
||||
<artifactId>common</artifactId>
|
||||
</parent>
|
||||
<groupId>org.thingsboard.common</groupId>
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.thingsboard</groupId>
|
||||
<version>2.0.3-SNAPSHOT</version>
|
||||
<version>2.0.4-SNAPSHOT</version>
|
||||
<artifactId>common</artifactId>
|
||||
</parent>
|
||||
<groupId>org.thingsboard.common</groupId>
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.thingsboard</groupId>
|
||||
<version>2.0.3-SNAPSHOT</version>
|
||||
<version>2.0.4-SNAPSHOT</version>
|
||||
<artifactId>thingsboard</artifactId>
|
||||
</parent>
|
||||
<groupId>org.thingsboard</groupId>
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.thingsboard</groupId>
|
||||
<version>2.0.3-SNAPSHOT</version>
|
||||
<version>2.0.4-SNAPSHOT</version>
|
||||
<artifactId>common</artifactId>
|
||||
</parent>
|
||||
<groupId>org.thingsboard.common</groupId>
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.thingsboard</groupId>
|
||||
<version>2.0.3-SNAPSHOT</version>
|
||||
<version>2.0.4-SNAPSHOT</version>
|
||||
<artifactId>thingsboard</artifactId>
|
||||
</parent>
|
||||
<artifactId>dao</artifactId>
|
||||
|
||||
@ -19,12 +19,12 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.thingsboard</groupId>
|
||||
<version>2.0.3-SNAPSHOT</version>
|
||||
<version>2.0.4-SNAPSHOT</version>
|
||||
<artifactId>thingsboard</artifactId>
|
||||
</parent>
|
||||
<groupId>org.thingsboard</groupId>
|
||||
<artifactId>netty-mqtt</artifactId>
|
||||
<version>2.0.3-SNAPSHOT</version>
|
||||
<version>2.0.4-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>Netty MQTT Client</name>
|
||||
|
||||
2
pom.xml
2
pom.xml
@ -20,7 +20,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.thingsboard</groupId>
|
||||
<artifactId>thingsboard</artifactId>
|
||||
<version>2.0.3-SNAPSHOT</version>
|
||||
<version>2.0.4-SNAPSHOT</version>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<name>Thingsboard</name>
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.thingsboard</groupId>
|
||||
<version>2.0.3-SNAPSHOT</version>
|
||||
<version>2.0.4-SNAPSHOT</version>
|
||||
<artifactId>thingsboard</artifactId>
|
||||
</parent>
|
||||
<artifactId>rule-engine</artifactId>
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.thingsboard</groupId>
|
||||
<version>2.0.3-SNAPSHOT</version>
|
||||
<version>2.0.4-SNAPSHOT</version>
|
||||
<artifactId>rule-engine</artifactId>
|
||||
</parent>
|
||||
<groupId>org.thingsboard.rule-engine</groupId>
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.thingsboard</groupId>
|
||||
<version>2.0.3-SNAPSHOT</version>
|
||||
<version>2.0.4-SNAPSHOT</version>
|
||||
<artifactId>rule-engine</artifactId>
|
||||
</parent>
|
||||
<groupId>org.thingsboard.rule-engine</groupId>
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.thingsboard</groupId>
|
||||
<version>2.0.3-SNAPSHOT</version>
|
||||
<version>2.0.4-SNAPSHOT</version>
|
||||
<artifactId>thingsboard</artifactId>
|
||||
</parent>
|
||||
<groupId>org.thingsboard</groupId>
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.thingsboard</groupId>
|
||||
<version>2.0.3-SNAPSHOT</version>
|
||||
<version>2.0.4-SNAPSHOT</version>
|
||||
<artifactId>transport</artifactId>
|
||||
</parent>
|
||||
<groupId>org.thingsboard.transport</groupId>
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.thingsboard</groupId>
|
||||
<version>2.0.3-SNAPSHOT</version>
|
||||
<version>2.0.4-SNAPSHOT</version>
|
||||
<artifactId>transport</artifactId>
|
||||
</parent>
|
||||
<groupId>org.thingsboard.transport</groupId>
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.thingsboard</groupId>
|
||||
<version>2.0.3-SNAPSHOT</version>
|
||||
<version>2.0.4-SNAPSHOT</version>
|
||||
<artifactId>transport</artifactId>
|
||||
</parent>
|
||||
<groupId>org.thingsboard.transport</groupId>
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.thingsboard</groupId>
|
||||
<version>2.0.3-SNAPSHOT</version>
|
||||
<version>2.0.4-SNAPSHOT</version>
|
||||
<artifactId>thingsboard</artifactId>
|
||||
</parent>
|
||||
<groupId>org.thingsboard</groupId>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "thingsboard",
|
||||
"private": true,
|
||||
"version": "2.0.2",
|
||||
"version": "2.0.4",
|
||||
"description": "Thingsboard UI",
|
||||
"licenses": [
|
||||
{
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.thingsboard</groupId>
|
||||
<version>2.0.3-SNAPSHOT</version>
|
||||
<version>2.0.4-SNAPSHOT</version>
|
||||
<artifactId>thingsboard</artifactId>
|
||||
</parent>
|
||||
<groupId>org.thingsboard</groupId>
|
||||
|
||||
@ -146,6 +146,7 @@ export default class AliasController {
|
||||
newDatasource.entityId = resolvedEntity.id;
|
||||
newDatasource.entityType = resolvedEntity.entityType;
|
||||
newDatasource.entityName = resolvedEntity.name;
|
||||
newDatasource.entityDescription = resolvedEntity.entityDescription
|
||||
newDatasource.name = resolvedEntity.name;
|
||||
newDatasource.generated = i > 0 ? true : false;
|
||||
datasources.push(newDatasource);
|
||||
@ -167,6 +168,7 @@ export default class AliasController {
|
||||
datasource.entityType = entity.entityType;
|
||||
datasource.entityName = entity.name;
|
||||
datasource.name = entity.name;
|
||||
datasource.entityDescription = entity.entityDescription;
|
||||
deferred.resolve([datasource]);
|
||||
} else {
|
||||
if (aliasInfo.stateEntity) {
|
||||
|
||||
@ -329,7 +329,7 @@ function EntityService($http, $q, $filter, $translate, $log, userService, device
|
||||
}
|
||||
|
||||
function entityToEntityInfo(entity) {
|
||||
return { name: entity.name, entityType: entity.id.entityType, id: entity.id.id };
|
||||
return { name: entity.name, entityType: entity.id.entityType, id: entity.id.id, entityDescription: entity.additionalInfo?entity.additionalInfo.description:"" };
|
||||
}
|
||||
|
||||
function entityRelationInfoToEntityInfo(entityRelationInfo, direction) {
|
||||
|
||||
@ -60,7 +60,7 @@
|
||||
<div class="tb-color-preview" ng-click="showColorPicker($event, $chip, $index)" style="margin-right: 5px;">
|
||||
<div class="tb-color-result" ng-style="{background: $chip.color}"></div>
|
||||
</div>
|
||||
<div layout="row" flex>
|
||||
<div layout="row">
|
||||
<div class="tb-chip-label">
|
||||
{{$chip.label}}
|
||||
</div>
|
||||
@ -112,7 +112,7 @@
|
||||
<div class="tb-color-preview" ng-click="showColorPicker($event, $chip, $index)" style="margin-right: 5px;">
|
||||
<div class="tb-color-result" ng-style="{background: $chip.color}"></div>
|
||||
</div>
|
||||
<div layout="row" flex>
|
||||
<div layout="row">
|
||||
<div class="tb-chip-label">
|
||||
{{$chip.label}}
|
||||
</div>
|
||||
@ -164,7 +164,7 @@
|
||||
<div class="tb-color-preview" ng-click="showColorPicker($event, $chip, $index)" style="margin-right: 5px;">
|
||||
<div class="tb-color-result" ng-style="{background: $chip.color}"></div>
|
||||
</div>
|
||||
<div layout="row" flex>
|
||||
<div layout="row">
|
||||
<div class="tb-chip-label">
|
||||
{{$chip.label}}
|
||||
</div>
|
||||
|
||||
@ -61,7 +61,7 @@
|
||||
<div class="tb-color-preview" ng-click="showColorPicker($event, $chip, $index)" style="margin-right: 5px;">
|
||||
<div class="tb-color-result" ng-style="{background: $chip.color}"></div>
|
||||
</div>
|
||||
<div layout="row" flex>
|
||||
<div layout="row">
|
||||
<div class="tb-chip-label">
|
||||
{{$chip.label}}
|
||||
</div>
|
||||
@ -112,7 +112,7 @@
|
||||
<div class="tb-color-preview" ng-click="showColorPicker($event, $chip, $index)" style="margin-right: 5px;">
|
||||
<div class="tb-color-result" ng-style="{background: $chip.color}"></div>
|
||||
</div>
|
||||
<div layout="row" flex>
|
||||
<div layout="row">
|
||||
<div class="tb-chip-label">
|
||||
{{$chip.label}}
|
||||
</div>
|
||||
|
||||
@ -59,14 +59,4 @@ md-sidenav.tb-sidenav-details {
|
||||
background-color: $primary-hue-3;
|
||||
}
|
||||
}
|
||||
|
||||
md-tab-content.md-active > div {
|
||||
height: 100%;
|
||||
& > *:first-child {
|
||||
height: 100%;
|
||||
}
|
||||
md-content {
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -187,17 +187,17 @@
|
||||
</div>
|
||||
<div layout='column' layout-align="center" layout-gt-sm='row' layout-align-gt-sm="start center">
|
||||
<div layout="row" layout-padding>
|
||||
<md-checkbox flex aria-label="{{ 'widget-config.display-title' | translate }}"
|
||||
<md-checkbox aria-label="{{ 'widget-config.display-title' | translate }}"
|
||||
ng-model="showTitle">{{ 'widget-config.display-title' | translate }}
|
||||
</md-checkbox>
|
||||
</div>
|
||||
<div layout="row" layout-padding>
|
||||
<md-checkbox flex aria-label="{{ 'widget-config.drop-shadow' | translate }}"
|
||||
<md-checkbox aria-label="{{ 'widget-config.drop-shadow' | translate }}"
|
||||
ng-model="dropShadow">{{ 'widget-config.drop-shadow' | translate }}
|
||||
</md-checkbox>
|
||||
</div>
|
||||
<div layout="row" layout-padding>
|
||||
<md-checkbox flex aria-label="{{ 'widget-config.enable-fullscreen' | translate }}"
|
||||
<md-checkbox aria-label="{{ 'widget-config.enable-fullscreen' | translate }}"
|
||||
ng-model="enableFullscreen">{{ 'widget-config.enable-fullscreen' | translate }}
|
||||
</md-checkbox>
|
||||
</div>
|
||||
|
||||
@ -16,7 +16,8 @@
|
||||
|
||||
-->
|
||||
<div flex layout="column" style="margin-top: -10px;">
|
||||
<div style="text-transform: uppercase; padding-bottom: 10px;">{{vm.item.type}}</div>
|
||||
<div flex>{{vm.item.additionalInfo.description}}</div>
|
||||
<div flex style="text-transform: uppercase; padding-bottom: 10px;">{{vm.item.type}}</div>
|
||||
<div class="tb-small" ng-show="vm.isAssignedToCustomer()">{{'device.assignedToCustomer' | translate}} '{{vm.item.assignedCustomer.title}}'</div>
|
||||
<div class="tb-small" ng-show="vm.isPublic()">{{'device.public' | translate}}</div>
|
||||
</div>
|
||||
|
||||
@ -204,8 +204,13 @@ export default class CanvasDigitalGauge extends canvasGauges.BaseGauge {
|
||||
}
|
||||
|
||||
var valueChanged = false;
|
||||
|
||||
if (!this.elementValueClone.initialized || this.elementValueClone.renderedValue !== this.value || (options.showTimestamp && this.elementValueClone.renderedTimestamp !== this.timestamp)) {
|
||||
if (!this.elementValueClone.initialized || angular.isDefined(this._value) && this.elementValueClone.renderedValue !== this._value || (options.showTimestamp && this.elementValueClone.renderedTimestamp !== this.timestamp)) {
|
||||
if (angular.isDefined(this._value)) {
|
||||
this.elementValueClone.renderedValue = this._value;
|
||||
}
|
||||
if (angular.isUndefined(this.elementValueClone.renderedValue)) {
|
||||
this.elementValueClone.renderedValue = options.minValue;
|
||||
}
|
||||
let context = this.contextValueClone;
|
||||
// clear the cache
|
||||
context.clearRect(x, y, w, h);
|
||||
@ -214,7 +219,7 @@ export default class CanvasDigitalGauge extends canvasGauges.BaseGauge {
|
||||
context.drawImage(canvas.elementClone, x, y, w, h);
|
||||
context.save();
|
||||
|
||||
drawDigitalValue(context, options, this.value);
|
||||
drawDigitalValue(context, options, this.elementValueClone.renderedValue);
|
||||
|
||||
if (options.showTimestamp) {
|
||||
drawDigitalLabel(context, options);
|
||||
@ -222,7 +227,6 @@ export default class CanvasDigitalGauge extends canvasGauges.BaseGauge {
|
||||
}
|
||||
|
||||
this.elementValueClone.initialized = true;
|
||||
this.elementValueClone.renderedValue = this.value;
|
||||
|
||||
valueChanged = true;
|
||||
}
|
||||
|
||||
@ -70,6 +70,10 @@ export default class TbCanvasDigitalGauge {
|
||||
(settings.title && settings.title.length > 0 ?
|
||||
settings.title : dataKey.label) : '');
|
||||
|
||||
if (!this.localSettings.unitTitle && this.localSettings.showTimestamp) {
|
||||
this.localSettings.unitTitle = ' ';
|
||||
}
|
||||
|
||||
this.localSettings.titleFont = {};
|
||||
var settingsTitleFont = settings.titleFont;
|
||||
if (!settingsTitleFont) {
|
||||
@ -206,6 +210,7 @@ export default class TbCanvasDigitalGauge {
|
||||
var value = tvPair[1];
|
||||
if(value !== this.gauge.value) {
|
||||
this.gauge.value = value;
|
||||
this.gauge._value = value;
|
||||
} else if (this.localSettings.showTimestamp && this.gauge.timestamp != timestamp) {
|
||||
this.gauge.timestamp = timestamp;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user