Comments (3)
i have same kind of problem in tb-gateway 1.4.1, where my second filter expression seems to be ignored, and only first is applied to incoming data.
i try to test this on 1.4.0, but that branch is impossible to build. gateway needs thingsboard 1.4 to be built, and thingsboard 1.4 build gets stuck with these:
2018-05-17 15:39:53,253 [Akka-akka.actor.default-dispatcher-5] INFO akka.event.slf4j.Slf4jLogger - Slf4jLogger started
2018-05-17 15:39:53,258 [main] ERROR o.t.s.s.c.rpc.ClusterGrpcService - Failed to start RPC server!
i'll let you know if i get this working
from thingsboard-gateway.
I am with same problem.
from thingsboard-gateway.
@quirosaur I resolved like this:
I created only one entrie for the two values: humidity and temperature, like this:
{
"topicFilter": "v1/usr/openhouse/down",
"converter": {
"type": "json",
"filterExpression": "",
"deviceNameJsonExpression": "${$.cmdId}",
"deviceTypeJsonExpression": "SF_TempHumi",
"timeseries": [
{
"type": "double",
"key": "humidity",
"value": "${$.humidity[1]}"
},
{
"type": "double",
"key": "temperature",
"value": "${$.temperature[1]}"
}
]
}
}
Then I modified the source code in this class BasicJsonConverter in method getTsKvEntries:
String key = eval(document, mapping.getKey());
String strVal = eval(document, mapping.getValue());
if (strVal.contains("${")) {
continue;
}
With this, when humidity has value but temperature not, temperature will be ignored and will not send the literal value to thingsboard(
For me works, I know this is not the best solution, but for now helped me :)
from thingsboard-gateway.
Related Issues (20)
- [BUG] 100% CPU usuage of thingsboard-gateway HOT 5
- When The gateway runs for a long time, RuntimeError: Message publish failed: The client is not currently connected.
- Potential [BUG] MQTT connector not honoring client attribute requests , only shared attribute requests
- [HELP] RuntimeError: Message publish failed: The client is not currently connected.
- [HELP] Can't get the latest telemtry data HOT 1
- Cannot load GRPC connector!Gateway Shell HOT 1
- Can't correctly setup the rest.json configuration file [HELP] HOT 7
- How to connect my gateway to thingsboard Community Edition(Thingsboard CE) HOT 2
- ThingsBoard IoT Gateway not sending all the parameters configured in SNMP connector to ThingsBoard PE server - Help Wanted
- [HELP]: make Dynamic dashboard for 'Markers Placement' HOT 1
- [HELP] Ubuntu 24.04 LTS installation HOT 1
- [HELP] IoT Gateway as modbus slave to send TS data to PLC HOT 1
- thingsboard gateway installation problem
- [HELP] Is there an easy way to read same timeseries from multiple devices Modbus TCP? HOT 1
- [BUG] SNMP Connectors only updates one parameter. HOT 1
- [BUG] Enabling or disabling the linker through platform gateway configuration causes devices under other linkers to be unable to communicate normally.
- [HELP] Getting error when I am trying to run the Thingsboard IoT gateway using Jetson Nano
- [Modbus RTU error] Port [ttyUSB0] Permission denied: '/dev/ttyUSB0' HOT 3
- Issue while installing Thingsboard IoT Gateway on Raspberry Pi OS [HELP]
- Issue while getting data from multiple BLE beacons (working in advertisement mode) to Thingsboard platform using Thingsboard Gateway stack.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thingsboard-gateway.