Wiki source code of How to view gateway status in your own dashboard
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | **Table of Contents:** | ||
2 | |||
3 | {{toc/}} | ||
4 | |||
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 | |||
25 | |||
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 | |||
35 | |||
36 | == 1.4 Import widget == | ||
37 | |||
38 | Firstly, we need to open the dashboard module, | ||
39 | |||
40 | click on the "+" in the upper right corner, select "import dashboard", | ||
41 | |||
42 | then we shoud drag the downloaded _dashboard file into the text box. | ||
43 | |||
44 | = 2.Create gateway devices = | ||
45 | |||
46 | = 3.Modify the rule chain = | ||
47 | |||
48 | = 4.Check if the widget is displayed correctly = |