Wiki source code of Smart Irrigation

Last modified by Hera Guo on 2024/12/11 15:08

Show last authors
1 **Table of Contents:**
2
3 {{toc/}}
4
5
6
7 = 1. About this demo =
8
9 This template is a display template forIrrigation Management , It has **Two Level DashBoard **as decribe below.
10
11 The [["Irrigation Management">>https://thingseye.io/dashboard/0a1c6600-b045-11ef-9a99-19e40fc9a6b0?publicId=d5341ab0-b20f-11ef-bc88-6d847ef93a10]] dashboard is designed to provision fields and related devices. It has multiple states:
12
13 * **Main** state allows you to list the fields and display them on the map. We assume that you might have multiple fields with various sensors for each field. We have provisioned two "fake" fields with number of devices for demonstration purposes.
14 ** Click the "+" button in the top right corner of the fields table to create a new field. You may input the crop type and soil moisture thresholds;
15 ** Click the field polygon on the map to open the field state;
16 * **Field** state allows you to manage irrigation schedule and devices. You may provision new schedule items. The schedule dialog will create scheduler events on the background. Click on the "Alarms" button to browse all alarms. You may also add sensors to the field if needed.
17
18 [[image:1733295949257-158.png||height="502" width="923"]][[image:Arrow.png]][[image:1733295993883-555.png||height="501" width="912"]]
19
20 * To use this dashboard, in the first level screen, you need to manually add land and enter the desired temperature and humidity thresholds, crop type, etc.As shown below:
21
22 [[image:1733900341288-737.png||height="548" width="1041"]][[image:Arrow.png]][[image:1733900163584-483.png||height="552" width="854"]]
23
24 * After creating the land you can set the irrigation schedule for the land, you need to set the irrigation time and irrigation thresholds (including water usage and irrigation time, optional) as follows
25
26 [[image:1733900630722-338.png||height="606" width="939"]][[image:Arrow.png]][[image:1733900700722-983.png]]
27
28 = 2.Import Solution Template =
29
30 == 2.1 Get the json files ==
31
32 where to get:[[https:~~/~~/github.com/ThingsEye-io/te-platform/tree/main/Solution%20Template/Irrigation%20Management>>https://github.com/ThingsEye-io/te-platform/tree/main/Solution%20Template/Irrigation%20Management]]
33
34 what files to get:Download the three json files with the suffixes dashboard, deviceprofile, and rulechain.
35
36 [[image:1733899866102-335.png||height="184" width="1396"]]
37
38 == 2.2 Import rulechain/deviceprofile/dashboard ==
39
40 * **You will need to download and import the appropriate files**
41
42 === 2.2.1 Import rulechain ===
43
44 Firstly, we need to import the rule chain. The rule chain tells platform how we should handel the uplink and downlink for this device.
45
46 Open rule chains, click on the "+" in the upper right corner,
47
48 select "import rule chain", and then drag the downloaded JSON file with the suffix "_rule_chain" into the text box
49
50 [[image:https://wiki.thingseye.io/xwiki/bin/download/Main/Fuel%20Level%20Monitoring/WebHome/%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE%202024-11-26%20174215.png?width=1542&height=785&rev=1.1||alt="屏幕截图 2024-11-26 174215.png" height="785" width="1542"]]
51
52 === 2.2.2 Import deviceprofile ===
53
54 At this step, we need to import the device profile first, as shown in the figure.
55
56 First, we need to open the device profiles, click on the "+" in the upper right corner, select "import device profile",
57
58 and then select the file with the suffix "_device_defiles" that we have already downloaded. Drag it into the text box.
59
60 [[image:https://wiki.thingseye.io/xwiki/bin/download/Main/Fuel%20Level%20Monitoring/WebHome/%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE%202024-11-26%20175041.png?width=1545&height=745&rev=1.1||alt="屏幕截图 2024-11-26 175041.png" height="745" width="1545"]]
61
62 === 2.2.3 Import dashboard ===
63
64 Firstly, we need to open the dashboard module,
65
66 click on the "+" in the upper right corner, select "import dashboard",
67
68 then we shoud drag the downloaded _dashboard file into the text box.
69
70 [[image:https://wiki.thingseye.io/xwiki/bin/download/Main/Fuel%20Level%20Monitoring/WebHome/%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE%202024-11-26%20175723.png?width=1548&height=759&rev=1.1||alt="屏幕截图 2024-11-26 175723.png" height="759" width="1548"]]
71
72 = 3.Connecting devices to thingseye =
73
74 Click the link below to connect the server to the platform:
75
76 [[https:~~/~~/wiki.thingseye.io/xwiki/bin/view/Main/How%20to%20connect%20my%20devices%20to%20ThingsEye%3>>url:https://wiki.thingseye.io/xwiki/bin/view/Main/How%20to%20connect%20my%20devices%20to%20ThingsEye%3F/]]
77
78 = 4.Change the deviceproflie of device =
79
80 When our import is complete, we need to replace the deviceprofile of the device we want to show with our newly imported deviceprofile.
81
82 [[image:https://wiki.thingseye.io/xwiki/bin/download/Main/Fuel%20Level%20Monitoring/WebHome/%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE%202024-11-26%20180544.png?width=1551&height=772&rev=1.1||alt="屏幕截图 2024-11-26 180544.png" height="772" width="1551"]]
83
84 = 5.Check to see if the device is displaying properly on the dashboard =
85
86 [[image:1733296532960-131.png||height="734" width="1553"]]