Wiki source code of Water metering
Last modified by Hera Guo on 2024/12/03 09:09
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | **Table of Contents:** | ||
2 | |||
3 | {{toc/}} | ||
4 | |||
5 | = 1. About this demo = | ||
6 | |||
7 | This case is the display interface of the water meter, using this case you can analyze the water consumption, including daily water consumption, weekly water consumption, whether the water leakage and so on. It has 7 display screens described as follows: | ||
8 | |||
9 | * **First Screen - TOTAL:** This dashboard includes information on all metered devices, water usage analysis, device activity, number of low battery devices, alarms, etc. | ||
10 | |||
11 | [[image:1732676159360-564.png||height="757" width="1461"]] | ||
12 | |||
13 | * **second Screen - ANALYTICS:** This dashboard is an analysis of the water use situation | ||
14 | |||
15 | [[image:1732676203292-795.png||height="747" width="1460"]] | ||
16 | |||
17 | * **third Screen-DEVICES:**This dashboard shows all water meters and their alarms. | ||
18 | |||
19 | [[image:1732676234856-600.png||height="759" width="1461"]] | ||
20 | |||
21 | * **fourth Screen-CUSTOMERS:**This dashboard is an overview of all customers | ||
22 | |||
23 | [[image:1732676273563-896.png||height="756" width="1466"]] | ||
24 | |||
25 | * **fifth Screen-ALARMS:**This dashboard displays all alert messages | ||
26 | |||
27 | [[image:1732676305413-205.png||height="752" width="1465"]] | ||
28 | |||
29 | * **sixth Screen-SETTINGS:**This dashboard allows you to set alarm thresholds and whether to send alarm messages to Email or SMS. | ||
30 | |||
31 | [[image:1732676367273-261.png||height="758" width="1463"]] | ||
32 | |||
33 | * **Seventh Screen-DEVICE DETAIL:**This dashboard is detailed for a single device | ||
34 | |||
35 | [[image:屏幕截图 2024-11-27 104148.png||height="760" width="1464"]] | ||
36 | |||
37 | = 2.Import Solution Template = | ||
38 | |||
39 | == 2.1 Get the json files == | ||
40 | |||
41 | where to get:[[https:~~/~~/github.com/ThingsEye-io/te-platform/tree/main/Solution%20Template/Water%20metering>>https://github.com/ThingsEye-io/te-platform/tree/main/Solution%20Template/Water%20metering]] | ||
42 | |||
43 | what files to get:Download the three json files with the suffixes dashboard, deviceprofile, and rulechain. | ||
44 | |||
45 | == 2.2 Import rulechain/deviceprofile/dashboard == | ||
46 | |||
47 | * **You will need to download and import the appropriate files** | ||
48 | * **In this solution, there are 3 rulechains, all of which need to be downloaded and imported** | ||
49 | |||
50 | [[image:屏幕截图 2024-11-27 101602.png]] | ||
51 | |||
52 | [[image:屏幕截图 2024-11-27 101909.png]] | ||
53 | |||
54 | === 2.2.1 Import rulechain === | ||
55 | |||
56 | Firstly, we need to import the rule chain. The rule chain tells platform how we should handel the uplink and downlink for this device. | ||
57 | |||
58 | Open rule chains, click on the "+" in the upper right corner, | ||
59 | |||
60 | select "import rule chain", and then drag the downloaded JSON file with the suffix "_rule_chain" into the text box | ||
61 | |||
62 | [[image:屏幕截图 2024-11-26 174215.png||height="753" width="1481"]] | ||
63 | |||
64 | === 2.2.2 Import deviceprofile === | ||
65 | |||
66 | At this step, we need to import the device profile first, as shown in the figure. | ||
67 | |||
68 | First, we need to open the device profiles, click on the "+" in the upper right corner, select "import device profile", | ||
69 | |||
70 | and then select the file with the suffix "_device_defiles" that we have already downloaded. Drag it into the text box. | ||
71 | |||
72 | [[image:屏幕截图 2024-11-26 175041.png||height="713" width="1478"]] | ||
73 | |||
74 | === 2.2.3 Import dashboard === | ||
75 | |||
76 | Firstly, we need to open the dashboard module, | ||
77 | |||
78 | click on the "+" in the upper right corner, select "import dashboard", | ||
79 | |||
80 | then we shoud drag the downloaded _dashboard file into the text box. | ||
81 | |||
82 | [[image:屏幕截图 2024-11-26 175723.png||height="723" width="1475"]] | ||
83 | |||
84 | |||
85 | = 3.Connecting devices to thingseye = | ||
86 | |||
87 | Click the link below to connect the server to the platform: | ||
88 | |||
89 | [[https:~~/~~/wiki.thingseye.io/xwiki/bin/view/Main/How%20to%20connect%20my%20devices%20to%20ThingsEye%3>>https://wiki.thingseye.io/xwiki/bin/view/Main/How%20to%20connect%20my%20devices%20to%20ThingsEye%3F/]] | ||
90 | |||
91 | Note: The dashboard will display properly only if our device has the key values **pulseCounter** 、 **battery、leakage**、**temperature、Calculate_flag.** | ||
92 | |||
93 | = 4.Change the deviceproflie of device = | ||
94 | |||
95 | When our import is complete, we need to replace the deviceprofile of the device we want to show with our newly imported deviceprofile. | ||
96 | |||
97 | [[image:屏幕截图 2024-11-26 180544.png||height="734" width="1475"]] | ||
98 | |||
99 | = 5.Check to see if the device is displaying properly on the dashboard = | ||
100 | |||
101 | [[image:1732677677740-417.png]] |