Wiki source code of Data PostProcessing Examples

Last modified by Hera Guo on 2025/10/13 14:16

Hide last authors
Hera Guo 6.1 1 == **1. Calcaute Data Delta in different uplink** ==
Hera Guo 2.1 2
Hera Guo 5.1 3 ==== Configuration for Data Delta calculations needs to be set up within the rule chain. ====
4
5 ==== There are two types of nodes to choose from: ====
6
Hera Guo 6.1 7 === **1.1 Use the script node** ===
Hera Guo 2.1 8
9 [[image:1760325448266-905.png]]
10
Hera Guo 3.1 11 [[image:1760325834320-734.png]]
12
Hera Guo 2.1 13 [[image:1760325888128-284.png]]
14
Hera Guo 3.1 15 ==== The calculation code is as follows: ====
16
17 ==== The calculated difference result is saved to State and uploaded to telemetry for display. ====
18
19 ==== If the normal increment occurs without packet loss, State ~= 1; ====
20
21 ==== if packet loss occurs, State ~= 0. ====
22
Hera Guo 2.1 23 [[image:1760325860551-151.png]]
24
Hera Guo 5.1 25 ==== Real-time values for State can be observed in the telemetry data. ====
Hera Guo 2.1 26
27 [[image:1760325531412-428.png]]
28
Hera Guo 5.1 29 ==== Packet loss incidents can be displayed on the dashboard, showing the exact time they occurred. ====
30
31 [[image:1760335990899-383.png]]
32
33 [[image:1760336047448-430.png]]
34
Hera Guo 6.1 35 === **1.2 Use the calculate delta node** ===
Hera Guo 2.1 36
37 [[image:1760326967669-999.png]]
38
Hera Guo 4.1 39 [[image:1760327789972-615.png]]
Hera Guo 3.1 40
41
Hera Guo 2.1 42