Wiki source code of How to view gateway status in your own dashboard
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | 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 | ||
2 | |||
3 | = 1.Import rulechain/deviceprofile/widget = | ||
4 | |||
5 | == 1.1 Get the json files == | ||
6 | |||
7 | 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]] | ||
8 | |||
9 | what files to get:Download the three json files with the suffixes Widget, Deviceprofile, and Rulechain. | ||
10 | |||
11 | [[image:1732852638724-480.png]] | ||
12 | |||
13 | == 1.2 Import rulechain == | ||
14 | |||
15 | Firstly, we need to import the rule chain. The rule chain tells platform how we should handel the uplink and downlink for this device. | ||
16 | |||
17 | Open rule chains, click on the "+" in the upper right corner, | ||
18 | |||
19 | select "import rule chain", and then drag the downloaded JSON file with the suffix "_rule_chain" into the text box | ||
20 | |||
21 | |||
22 | |||
23 | == 1.3 Import deviceprofile == | ||
24 | |||
25 | At this step, we need to import the device profile first, as shown in the figure. | ||
26 | |||
27 | First, we need to open the device profiles, click on the "+" in the upper right corner, select "import device profile", | ||
28 | |||
29 | and then select the file with the suffix "_device_defiles" that we have already downloaded. Drag it into the text box. | ||
30 | |||
31 | |||
32 | == 1.4 Import widget == | ||
33 | |||
34 | Firstly, we need to open the dashboard module, | ||
35 | |||
36 | click on the "+" in the upper right corner, select "import dashboard", | ||
37 | |||
38 | then we shoud drag the downloaded _dashboard file into the text box. | ||
39 | |||
40 | = 2.Create gateway devices = | ||
41 | |||
42 | = 3.Modify the rule chain = | ||
43 | |||
44 | = 4.Check if the widget is displayed correctly = |