当前位置:网站首页>Thingsboard tutorial (21): save data after processing using message types and data processing nodes
Thingsboard tutorial (21): save data after processing using message types and data processing nodes
2022-06-13 09:46:00 【Bring me my Plaid】
Preface
In the last chapter, we learned how to filter telemetry data , And save to database , Which USES script Nodes and save timeseries node . In this article, we will implement a real business scenario .
The scene is like this ,
Our smart thermometer Uploads The data is Chinese temperature , And when we use it , Or you need to use Degrees Celsius to show .
This is the time , We need to process the uploaded data once , Convert Fahrenheit to Celsius . And save it in the database
Among these conditions, we add another condition , Only the telemetry data is converted into temperature .
Let's take a look at how to implement .
Message type node
After carefully understanding the problem , We know that we need a node to send telemetry data from From all the data , Treat them separately .
At this time, we need to use message type switch node . Using this node, telemetry data can be separated for processing , Go through different processes .
Take a look at the node configuration .
take message type switch Drag and drop nodes into the editing area , And configure 
Message data processing node
Due to the need for temperature conversion , So we need one script, Notice the script Is in transformation script
Drag the node into the editing area ,
边栏推荐
- LeetCode 343. integer partition
- LeetCode 5270. Minimum path cost in grid (dynamic programming)
- Leetcode points to offer 30 Stack containing min function
- [51nod p3216] Award [bit operation]
- LeetCode 583. Deleting two strings
- GPIO of hardware schematic diagram
- 多线程 从UE4的无锁队列开始 (线程安全)
- (topological sorting +bfs) acwing 848 Topological sequence of digraph
- A hot MySQL training topic, making you a master of SQL
- Tree and binary tree: operation and storage structure of tree
猜你喜欢
![1-2 24:00 (20 points) [CSP certification true question]](/img/3b/fe2c0e46dca604e5906d9c5ceabbe3.jpg)
1-2 24:00 (20 points) [CSP certification true question]
![[51nod p3395] n-bit gray code [bit operation]](/img/91/e127e68ae2897933b795414d50c70f.jpg)
[51nod p3395] n-bit gray code [bit operation]

Node-RED系列(二七):扩展节点之s7节点的使用说明

WebRTC服务端工程实践和优化探索

index查list 注入的是mysql 执行的是oracle

Consolas-with-Yahei

(tree DP) acwing 285 A dance without a boss
![[51nod p2527] or and sum [bit operation]](/img/50/75ee9ee40ef0ca9b99e6900018b61a.jpg)
[51nod p2527] or and sum [bit operation]

(dp+ memory) acwing 901 skiing

ASCII码值是怎么计算的,怎么计算arccos的值
随机推荐
二叉树简介
Dynamic display of analog clock using digital clock in turtle Library
LeetCode 1. Sum of two numbers
Opencv face recognition of ros2 foxy~galactic~humble
(bfs) acwing 844. Labyrinth
信息文档管理与配置管理
It was so simple to implement system call
ThingsBoard教程(二十):使用规则链过滤遥测数据
LeetCode 72. Edit distance
Memory management -- Viewing memory space from the perspective of executing programs and processes
【 ssl2 ⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶83
GCC compilation process
LeetCode 343. integer partition
【动态规划】入门篇
Britain introduces food security plan to resist food supply crisis
7-3 virus traceability (20 points)
[51nod p3216] Award [bit operation]
LeetCode 322. Change
拜登:希望尽快签署两党枪支安全改革法案
Jenkins integrates LDAP. The problem of login failure of Jenkins users caused by LDAP configuration error is solved