Version 3.1 by Hera Guo on 2024/11/29 16:39

Hide last authors
Hera Guo 2.1 1 **Table of Contents:**
2
3 {{toc/}}
4
Hera Guo 1.1 5 If you want to see the status of your gateway within your own dashboard, you can use the method in this post to add a dashboard status display widget for yourself
6
7 = 1.Import rulechain/deviceprofile/widget =
8
9 == 1.1 Get the json files ==
10
11 where to get:[[https:~~/~~/github.com/ThingsEye-io/te-platform/tree/main/Devices/Gateway/Gateway%20in%20TE>>url:https://github.com/ThingsEye-io/te-platform/tree/main/Devices/Gateway/Gateway%20in%20TE]]
12
13 what files to get:Download the three json files with the suffixes Widget, Deviceprofile, and Rulechain.
14
15 [[image:1732852638724-480.png]]
16
17 == 1.2 Import rulechain ==
18
19 Firstly, we need to import the rule chain. The rule chain tells platform how we should handel the uplink and downlink for this device.
20
21 Open rule chains, click on the "+" in the upper right corner,
22
23 select "import rule chain", and then drag the downloaded JSON file with the suffix "_rule_chain" into the text box
24
Hera Guo 3.1 25 [[image:1732859076539-935.png||height="592" width="1477"]]
Hera Guo 1.1 26
27 == 1.3 Import deviceprofile ==
28
29 At this step, we need to import the device profile first, as shown in the figure.
30
31 First, we need to open the device profiles, click on the "+" in the upper right corner, select "import device profile",
32
33 and then select the file with the suffix "_device_defiles" that we have already downloaded. Drag it into the text box.
34
Hera Guo 3.1 35 [[image:1732859403197-298.png||height="600" width="1483"]]
Hera Guo 1.1 36
37 == 1.4 Import widget ==
38
Hera Guo 3.1 39 First we need to open the dashboard we want to put in to show the gateway status, click "Edit mode“
Hera Guo 1.1 40
Hera Guo 3.1 41 Then click “Add widget”
Hera Guo 1.1 42
Hera Guo 3.1 43 [[image:1732859936817-432.png||height="142" width="535"]][[image:Arrow.png]][[image:1732860065652-745.png]]
Hera Guo 1.1 44
Hera Guo 3.1 45 Then you need to click “Add widgts” and drag and drop the downloaded json file into it, as shown in the picture:
46
47 [[image:1732860398452-167.png||height="785" width="1532"]]
48
Hera Guo 1.1 49 = 2.Create gateway devices =
50
Hera Guo 3.1 51 Since a gateway can't transmit packets like a device, so we need to create a virtual gateway device ourselves in the following steps:
52
53 First of all, we need to open the device interface, click the upper right corner of the “+” and then click “Add device”, fill in the device information as shown in the figure
54
55
Hera Guo 1.1 56 = 3.Modify the rule chain =
57
58 = 4.Check if the widget is displayed correctly =