Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Torsten Lauter
    @Collin01_gitlab
    @amber-aw But the question is, how can a Set the Alarm properties in the Script?
    alarm.id Alarm.owner???
    amber-aw
    @amber-aw
    @Collin01_gitlab I think I understand. There is an option 'use message alarm data' under the test details function, but I am not sure if this is only in Thingsboard PE. Otherwise, maybe use the HTTP API saveAlarm?
    Ktysai
    @Ktysai

    @amber-aw > @Ktysai You could add a 'refresh token' step before you make your API GET requests, so you always have a valid token. The MQTT approach does not require this kind of token. For MQTT things are different if using the PE or CE Thingsboard version, as PE has the integrations.

    -

    Ktysai
    @Ktysai
    @amber-aw Thank you! You recommend to stick with REST API, and not work with MQTT? On REST API can I use the 'refresh token' step every minute or so? The things change a lot if I use REST API & HTTPS?
    Hopper-2901
    @Hopper-2901
    Has anyone found a way to send a msg by HTTP POST in an external rule node?
    1 reply
    ArunjitSanasam
    @ArunjitSanasam
    Can Anyone tell me how I can bring THE THINGS NETWORK data to thingsboard community edition and make a dashboard on thingsboard? I have install the thingsboard CE on Ubuntu but not able to configure thingsboard IoT gateway correctly for sending the data from TTN over MQTT.
    Kapil Surendra Shinde
    @kapeel45
    service name is invalid for thingsboard on windows
    can some one resolve this issue on windows
    Joe Hughes
    @joeyconc_twitter
    Is there a known issue with the Azure Appliance for Thingsboard PE? I've followed the guide twice and on both occasions, the key is rejected for SSH.
    I spotted a couple of other people with similar issues.
    Holger Brandl
    @holgerbrandl

    Hi there, is there a way to process more structured data such as

    {
      "site_id": "foo",
      "tool_id": "bar",
      "sensor_id": "osci",
      "timestamp": "34242323",
      "features": {
        "foo": 3.4,
        "bar": 3.0,
        "hu": 12
      }
    }

    in rules and dashboard?I've tried a postproc function value.foo in the datakey definition when building a dashboard, but no luck (yet). Thanks!

    ktannady
    @ktannady
    Hello, i have successfully requested shared attribute via MQTT API, but the response took too long (20sec to 1 min range), I'm going to use the feature on a battery powered application to notif the device that there is an new firmware version. 20sec to 1 min is quite bad for a battery powered application. is there anyway to make the response faster? or someone has this problem too?
    Ktysai
    @Ktysai
    @ktannady if you post telemetry how fast the server updates? Do you use NO SSL MQTT?
    thomasoggiersoprod
    @thomasoggiersoprod
    Hello, I've dashboard functionnality's question.
    I have a system which take some measure each 10ms during a short period (10 seconds) and then stop measure during 1 hour.
    Is it possible to configure a dashboard to see the lasts 10 seconds measures (and not the last real time 10 seconds)?
    If yes how to do it? Someone has already do something like that?
    Niranjoyyengkhom
    @Niranjoyyengkhom
    Can someone help me to integrade mqtt with tb gateway iot
    martaaay
    @martaaay
    I connected chirpstack > thingsboard and can get telemetry in thingsboard, but can't figure out how to get downlinks to work. I get errors like "RPC Error: NO_ACTIVE_CONNECTION". Does anybody have any documentation on setting this up? Or where to go for debug help? I can't even figure out how thingsboard knows where to send the rpc request or by what protocol. Do I need to set up an additional mqtt server as a go between?
    Related - is this even possible in the community edition?
    ktannady
    @ktannady

    @Ktysai Hello thanks for your reply, im using NO SSL MQTT and when i post the telemetry the server update quite fast within a second..

    here is some proof that the response took a long time :

    #1

    10:24:53.580 -> Connecting to ThingsBoard node ...connected
    10:25:42.328 -> Sleep Time = 57
    10:25:42.328 -> Error Sleep Time = 60
    10:25:42.367 -> latest firmware version = 100
    10:25:42.367 -> battery Calibration = 1.08

    #2

    10:26:44.536 -> Connecting to ThingsBoard node ...connected
    10:27:35.030 -> Sleep Time = 57
    10:27:35.072 -> Error Sleep Time = 60
    10:27:35.072 -> latest firmware version = 100
    10:27:35.072 -> battery Calibration = 1.08

    as you can see it took a long time, here is what i do :
    when I connected, I subscribed to the attribute response, and I publish a request and then I wait for the callback to be fired.

    Hopper-2901
    @Hopper-2901
    I update a server attribute on an Asset. In rules, the message type switch is set for 'Attribute Updated' and sees the changed attribute. But the msg data only contains the attribute name & value, not the Asset name. how can I identify the asset that has been updated?
    Ktysai
    @Ktysai
    @ktannady are we talking about Thingsboard Community Edition or Live Demo? In my case using my PC to request attributes status using SSL MQTT the response is less than 1sec. I din not use MQTT onmy mobile device yet, since now it seems it best for me to use REST API. In your case I'll try to use the mosquitto installed on your PC to check Thingsboard parameters and than to port it to your mobile device.
    ktannady
    @ktannady
    @Ktysai Hello, I'm using Thingsboard CE that I install on my VPS, did you mean that I shall try to use mosquitto to perform the request to see if the response faster or not?
    amber-aw
    @amber-aw
    @Hopper-2901 You can grab the Asset details from the metadata and put them in the msg.details using a script. This is an example using the script transform node:

    @Hopper-2901 [ctd]
    if(metadata.myField)
    {
    msg.details.myField = metadata.myField;
    }

    return {msg: msg, metadata: metadata, msgType: msgType};

    2 replies
    Terran
    @Terran68476823_twitter
    您好,请教一个问题,您这边的规则引擎是怎么实现的,用了什么技术;
    image.png
    image.png
    image.png
    image.png
    image.png
    Zeynel Abidin Fincan
    @ZeynelFincan_twitter

    Hello
    I have installed thingsboard on my windows pc successfully. thingsboard service is running. Last line in the log file is "2020-09-21 13:05:52,455 [main] INFO o.t.s.ThingsboardServerApplication - No active profile set, falling back to default profiles: default". "http://localhost:8080/" link does not open a WebUI. When I try the link, the service stops. I see an exception in the log file as below:

    Caused by: java.lang.IllegalArgumentException: No enum constant org.thingsboard.server.common.data.EntityType.RULE_CHA?N
    at java.lang.Enum.valueOf(Unknown Source)
    at org.thingsboard.server.common.data.EntityType.valueOf(EntityType.java:21)
    at org.thingsboard.server.dao.audit.AuditLogLevelFilter.lambda$new$0(AuditLogLevelFilter.java:31)
    at java.util.HashMap.forEach(Unknown Source)
    at org.thingsboard.server.dao.audit.AuditLogLevelFilter.<init>(AuditLogLevelFilter.java:30)
    at org.thingsboard.server.config.ThingsboardSecurityConfiguration.auditLogLevelFilter(ThingsboardSecurityConfiguration.java:233)
    at org.thingsboard.server.config.ThingsboardSecurityConfigurationEnhancerBySpringCGLIBEnhancerBySpringCGLIB4d27f379.CGLIB$auditLogLevelFilter$7(<generated>)
    at org.thingsboard.server.config.ThingsboardSecurityConfigurationEnhancerBySpringCGLIBEnhancerBySpringCGLIB4d27f379FastClassBySpringCGLIBFastClassBySpringCGLIB5c478970.invoke(<generated>)
    at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)
    at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331)
    at org.thingsboard.server.config.ThingsboardSecurityConfigurationEnhancerBySpringCGLIBEnhancerBySpringCGLIB4d27f379.auditLogLevelFilter(<generated>)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
    ... 112 common frames omitted

    What is this about?
    Zeynel Abidin Fincan
    @ZeynelFincan_twitter
    Hopper-2901
    @Hopper-2901
    image.png
    Ktysai
    @Ktysai
    @ktannady , yes! This is my assumption... You have to try it by yourself, the delay you've presented is way to big. It seems like you are using a connection with NB-IOT on your mobile device. Test, test, a lot:) Good luck! I'm a beginner too and testing is what I do the most:)
    HaydenGriffin
    @HaydenGriffin
    Hey all. I have recently installed ThingsBoard CE on my Windows PC. I am looking for the system-wide root rule chain. Does anyone know if this exists? (not on tenant level - system admin level) And if so, how can I see this and configure it?
    CloudOnWings
    @CloudOnWings
    @Terran68476823_twitter Rednode实现的
    Terran
    @Terran68476823_twitter
    @CloudOnWings 感谢
    @CloudOnWings 有没有相关教程呢,我在Google没有收到
    @node-red 相关技术吗
    Terran
    @Terran68476823_twitter
    那后端是使用drools来实现的吗
    CloudOnWings
    @CloudOnWings
    @Terran68476823_twitter yes, node-red
    Terran
    @Terran68476823_twitter
    @CloudOnWings 有没有drools相关教程嘛
    CloudOnWings
    @CloudOnWings
    @Terran68476823_twitter drools没有使用过,抱歉
    Terran
    @Terran68476823_twitter
    @CloudOnWings 规则引擎是怎么实现的呢
    CloudOnWings
    @CloudOnWings
    先看文档吧,我也是刚发现这个项目。
    Terran
    @Terran68476823_twitter
    @CloudOnWings 老哥能不能加个微信
    Torsten Lauter
    @Collin01
    Hi, exist here any example, how can I create a alarm in a rule chain, with the enabled "Use message alarm data". I use a script node to send the right msg to the "create alarm". How is the right structure of the needed message?
    Torsten Lauter
    @Collin01
    "Create Alarm" say success. But I don't see any alarm in the system.