Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thingsboard - Rule chain for exceuting a expression and store its output under a device as telemetry #10722

Closed
mubashirp opened this issue May 6, 2024 · 1 comment
Assignees
Labels
question generic question

Comments

@mubashirp
Copy link

I have a widget in my thingsboard dashboard where i input two values. I need to divide these two dashboard inputs and display it in another widget in the same dashboard. How can i achieve this. Is there any specific rule chain for such applications. Or else is it possible to do it directly in the dashboard.

@mubashirp mubashirp added the question generic question label May 6, 2024
@ashaforost
Copy link
Contributor

Hi @mubashirp

In the rule chain, you can catch the 'Attributes Updated' event and perform the calculation based on the two updated attributes.
See the screenshots:
image

image
image
image

Make sure to change the msgType to "POST_ATTRIBUTES_REQUEST"

@ashaforost ashaforost self-assigned this May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question generic question
Projects
None yet
Development

No branches or pull requests

3 participants