Giter VIP home page Giter VIP logo

Comments (8)

devaskim avatar devaskim commented on May 18, 2024 1

@bodev1406 I can suggest my Login rule chain to get token

from thingsboard.

devaskim avatar devaskim commented on May 18, 2024

You can do almost the same as described, but get list of attributes via corresponding API call.

from thingsboard.

bodev1406 avatar bodev1406 commented on May 18, 2024

Yes you are right but for the API call i have to do it with an external service and not with thingsboard. Or is there a way to do it in thingsboard?

from thingsboard.

devdoob avatar devdoob commented on May 18, 2024

You have "REST API node" withing rule chain of Thingsboard, just use that to pull data of devices and then push to kafka.

from thingsboard.

bodev1406 avatar bodev1406 commented on May 18, 2024

Ok, your are right.

To call the API endpoint i have to use the bearer token. How can get such a bearer token in a rule chain?

from thingsboard.

Ultrazombie avatar Ultrazombie commented on May 18, 2024

Hello @bodev1406,
Is this ticket still relevant? Or we can close this?

from thingsboard.

ashaforost avatar ashaforost commented on May 18, 2024

@bodev1406 have you tried the external kafka rule node?
image

from thingsboard.

bodev1406 avatar bodev1406 commented on May 18, 2024

@ashaforost Yes i tried it. So problem was that i need a way to get all attributes of a device or asset and push this information to our kafka instance.
We solved it to use the login rule cain of @devaskim and do a REST API Call to the thingsboard endpoint to get the needed information. After retrieving this information the kafka node is pushing it.

It would be nice to have such a node to query such information

from thingsboard.

Related Issues (20)

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.